commit cda075afafe1d615bb416988d3f2d9e3fe24cb51 Author: Alberto Bertogli Date: Sat Sep 1 23:31:14 2007 -0300 Add Haskell references to the README file. Signed-off-by: Alberto Bertogli commit 00cd03e07203f03f72cf2c62c3c98770d88be248 Author: Alberto Bertogli Date: Sat Sep 1 23:22:12 2007 -0300 Move the installation instructions to a new INSTALL file. Signed-off-by: Alberto Bertogli commit 80f92cb9c6060231c5e1f35437c3660b9c2f804f Author: Alberto Bertogli Date: Sat Sep 1 22:32:14 2007 -0300 Move the haskell test to the bindings directory. The "tests/" directory is for proper stress and performance tests, not for the bindings sample code. Move the haskell test where it belongs, inside the bindings directory. Signed-off-by: Alberto Bertogli commit 5db0eda68295e51f313d598f9689ebb881c93ad6 Author: Alberto Bertogli Date: Sat Sep 1 22:26:10 2007 -0300 Simplify the req->reply_* functions. We don't need a reply_X function for each operation, it's misleading and it's not even used properly inside parse.c. This patch removes the per-op reply functions, and use three functions instead: reply_err (already existing, untouched), reply_mini (already existing under the name of mini_reply), and reply_long (like reply_get). No functional changes, everything should be exactly the same. Signed-off-by: Alberto Bertogli commit 4e157bb7b31e8b7c451ac1677e04ac11e2164607 Author: Alberto Bertogli Date: Sat Sep 1 22:02:50 2007 -0300 Add a small Ruby test. Signed-off-by: Alberto Bertogli commit 49258830bf3d0d275928fa98f93525a5b5b7afb8 Author: Alberto Bertogli Date: Sat Sep 1 22:02:32 2007 -0300 Implement incr in the Ruby bindings. Signed-off-by: Alberto Bertogli commit 5dd2e65e9d1565974995b014138db30432c7a8fc Author: Alberto Bertogli Date: Sat Sep 1 22:01:45 2007 -0300 Add nmdb_add_sctp_server() to Ruby bindings. Also fix TCP and UDP server prototypes. Signed-off-by: Alberto Bertogli commit d71878efb34762e2c77529272072b5de91878f5b Author: Alberto Bertogli Date: Sat Sep 1 21:17:56 2007 -0300 Implement incr in NewLISP bindings. Signed-off-by: Alberto Bertogli commit 2f2236c5b055564455ffc41326b5e7cb46ddc4e8 Author: Alberto Bertogli Date: Sat Sep 1 21:06:45 2007 -0300 Add nmdb_add_sctp_server() to the NewLISP bindings. Signed-off-by: Alberto Bertogli commit 32341dc16d8e8657a7a28efec584e962f7545115 Author: Alberto Bertogli Date: Sat Sep 1 21:04:01 2007 -0300 Remove unneeded spaces in newlisp bindings comments. Signed-off-by: Alberto Bertogli commit 439ce6468f1129300ddd667b64c9ea7cacb2ba63 Author: Alberto Bertogli Date: Sat Sep 1 21:02:47 2007 -0300 Implement incr in the Haskell bindings. Signed-off-by: Alberto Bertogli commit ed5cae01d319c931ee22a2adea797a21e713e940 Author: Alberto Bertogli Date: Sat Sep 1 20:54:14 2007 -0300 Add nmdb_add_sctp_server() to the Haskell bindings. Signed-off-by: Alberto Bertogli commit a20c7961ce6cfd206e605fbf56c5628945adf22a Author: Alberto Bertogli Date: Sat Sep 1 20:42:13 2007 -0300 Implement incr in D bindings. Signed-off-by: Alberto Bertogli commit 4bc4501c0be8bd7a781191fdf62084862a76650c Author: Alberto Bertogli Date: Sat Sep 1 20:41:16 2007 -0300 Use D's resize mechanisms instead of an ugly hack. Signed-off-by: Alberto Bertogli commit a791397be7b0d89cad3ee83cd688ee63598e38ac Author: Alberto Bertogli Date: Sat Sep 1 20:40:29 2007 -0300 Fix D bindings' sizeof vs length bug. For arrays, sizeof returns the size of the reference (which is 2 * word size, usually). We want the proper length. Signed-off-by: Alberto Bertogli commit ffc6369cfe465852a61daecc848de80301ee452c Author: Alberto Bertogli Date: Sat Sep 1 20:38:56 2007 -0300 Fix the return value when the get packet has broken sizes. Signed-off-by: Alberto Bertogli commit b010ed3d5407dda8bfdd30838e2d941c5efbd4ae Author: Alberto Bertogli Date: Sat Sep 1 20:37:54 2007 -0300 Make incr take signed longs in Bigloo bindings Signed-off-by: Alberto Bertogli commit 0ea45012f2b96e129616505c9e17dbb892f4cdb3 Author: Alberto Bertogli Date: Sat Sep 1 16:22:15 2007 -0300 Implement nmdb_add_sctp_server() in D bindings. Signed-off-by: Alberto Bertogli commit e5cf22b47b349fb700c5caf7be1b350c1b524cf4 Author: Alberto Bertogli Date: Fri Aug 31 13:28:08 2007 -0300 Implement incr in the Bigloo bindings. Signed-off-by: Alberto Bertogli commit a615324e5332311bc00cd34ec0b310c365b760c1 Author: Alberto Bertogli Date: Fri Aug 31 00:40:11 2007 -0300 Close the SCTP file descriptor. Signed-off-by: Alberto Bertogli commit 2b82b5c687b39df3a04df311b2a25065e444c6ad Author: Alberto Bertogli Date: Tue Aug 28 19:22:19 2007 -0300 Add nmdb_add_sctp_server() to Bigloo bindings. Signed-off-by: Alberto Bertogli commit fd33fd5666d7761a696dd1aa42457ce6e9eec292 Author: Alberto Bertogli Date: Tue Aug 28 04:16:57 2007 -0300 Implement increment in the Python bindings. Signed-off-by: Alberto Bertogli commit ea9d44cc184626baade9695235c2cb9c0521bf0c Author: Alberto Bertogli Date: Tue Aug 28 04:16:37 2007 -0300 Fix the return value for a cache miss in cache_incr(). Signed-off-by: Alberto Bertogli commit 6334531a5292fc7561ea2091b5c655671d49e1c7 Author: Alberto Bertogli Date: Tue Aug 28 03:42:22 2007 -0300 Update nmdb's manpage to reflect the database changes. Since commit 1f3b3f78775582207cfe4ff186b65fb0f032f6f0, databases are created if they don't exist. Update nmdb's manpage to reflect this, and also make it backend-independant. Signed-off-by: Alberto Bertogli commit b504138a1f1386f7a318e15ea6b6d73977cdf11a Author: Alberto Bertogli Date: Tue Aug 28 03:34:29 2007 -0300 Document the increment operation in the network document. Signed-off-by: Alberto Bertogli commit 84448a9f9cd98bdf9cf51db075ab2cd72a63c607 Author: Alberto Bertogli Date: Tue Aug 28 03:30:59 2007 -0300 Fix CAS documentation in the design document. Signed-off-by: Alberto Bertogli commit 5b58d242a9f123b1865f1b79f146555f8a68a616 Author: Alberto Bertogli Date: Tue Aug 28 03:29:49 2007 -0300 Document nmdb_incr() in the design document. Signed-off-by: Alberto Bertogli commit 4f8a300ba66082b51780d166eb72accaba68da38 Author: Alberto Bertogli Date: Tue Aug 28 03:27:17 2007 -0300 Fix wording in nmdb_cas()' documentation. Signed-off-by: Alberto Bertogli commit 19b636acf5e5c85fdbcd2fb435f14221f69d9bf5 Author: Alberto Bertogli Date: Tue Aug 28 03:26:29 2007 -0300 Document incr in libnmdb's manpage. Signed-off-by: Alberto Bertogli commit 93fdc18cb03440378255a68b4e09bd737758a42b Author: Alberto Bertogli Date: Tue Aug 28 03:16:47 2007 -0300 Add missing ';'s in libnmdb manpage. Signed-off-by: Alberto Bertogli commit f8ef82e44a5cc9a71d595992c91572f3da1469f4 Author: Alberto Bertogli Date: Tue Aug 28 03:14:02 2007 -0300 Add a test for the increment operation. Signed-off-by: Alberto Bertogli commit 4cb062b7c3366f05e8f442b87b2460804ac9e253 Author: Alberto Bertogli Date: Tue Aug 28 03:13:40 2007 -0300 Implement the increment operation, C client side. Signed-off-by: Alberto Bertogli commit bc5e2432dec84dc31512a49cc5c6ab2bdefa1c18 Author: Alberto Bertogli Date: Tue Aug 28 03:13:12 2007 -0300 Implement the increment operation, server side. Signed-off-by: Alberto Bertogli commit 0e2f733d3ae2c3d79fac26e7aacdfa282caec97b Author: Alberto Bertogli Date: Tue Aug 28 02:22:24 2007 -0300 Handle the default case in tests/c/make.sh. Signed-off-by: Alberto Bertogli commit 990b9c5d1a05d0a105bf632c55e94a16fdd7b11a Author: Alberto Bertogli Date: Tue Aug 28 02:21:52 2007 -0300 Call the correct req->reply function in dbloop's CAS handling. Actually, we could just remove the unneeded reply functions, but for now just fix this call. Signed-off-by: Alberto Bertogli commit 1796a6c55c62788f716d9b1fe527f4257cc2187e Author: Alberto Bertogli Date: Tue Aug 28 02:20:26 2007 -0300 Make nmdb.h depend on its skeleton file. This makes "make" aware of when to regenerate the header. Signed-off-by: Alberto Bertogli commit bd060449b8fbca1a2be41d12dfa85acd44ef9e45 Author: Alberto Bertogli Date: Tue Aug 28 02:19:38 2007 -0300 Fix some comments' style. Signed-off-by: Alberto Bertogli commit d5aebe1127010f3f0b419c5b94c1cb71ad3c3700 Author: Alberto Bertogli Date: Sun Aug 26 18:57:03 2007 -0300 Remove an extra underscore in the network document. Signed-off-by: Alberto Bertogli commit 7fab12b80d306df9cf59a4e759768a5e3be7bfb8 Author: Alberto Bertogli Date: Sun Aug 26 18:56:44 2007 -0300 Add references to SCTP in the docs. Signed-off-by: Alberto Bertogli commit 61700af42cd60e1bc91a4c05f8490074876314c6 Author: Alberto Bertogli Date: Sat Aug 25 21:15:25 2007 -0300 Add SCTP C tests. Signed-off-by: Alberto Bertogli commit 28cb0099f1cca44887771749e4c982e9bb8d7c27 Author: Alberto Bertogli Date: Sat Aug 25 21:05:21 2007 -0300 Implement SCTP on libnmdb. Signed-off-by: Alberto Bertogli commit 696db4407f15de7b632c7a615f325238d9ebbd03 Author: Alberto Bertogli Date: Sat Aug 25 20:58:00 2007 -0300 Implement SCTP on the server. Pretty much copied from UDP. It lacks documentation, which will come in a later patch. Signed-off-by: Alberto Bertogli commit a8c71c8a34044515ca03eab889831237ac82b17c Author: Alberto Bertogli Date: Sat Aug 25 19:49:47 2007 -0300 Add two missing close() in an error path. They're not really required, but they dont hurt either. Signed-off-by: Alberto Bertogli commit d36c4cb7e821f10298932268c74994c42bb0ce82 Author: Alberto Bertogli Date: Sun Aug 12 16:02:19 2007 -0300 Fix wording of "[LANGUAGE] bindings for nmdb". Somehow I wrote them reversed on some of the bindings. Signed-off-by: Alberto Bertogli commit b1c55dd76e139b702a8c40caaa839b2152ba4e7f Author: Alberto Bertogli Date: Sun Aug 12 15:58:49 2007 -0300 Add Haskell bindings. Signed-off-by: Alberto Bertogli commit eaabf07ed1a7eee3472873cb2b62595e20034a2b Author: Alberto Bertogli Date: Thu Aug 9 04:50:56 2007 -0300 Add some files to .gitignore. The tags file generated by ctags, and libnmdb/nmdb.h because it's now autogenerated. Signed-off-by: Alberto Bertogli commit 4470a6e0dfdfe4490bd7ce93a4a6c20a10790498 Author: Alberto Bertogli Date: Thu Aug 9 04:37:17 2007 -0300 Delete all events properly on shutdown. This fixes a bug reported by Arnaud Connois that caused a libevent assertion to raise on event_del(). That was because we were deleting tipc_evt, but it may not be initialized properly if ENABLE_TIPC=0. It triggered on Fedora Core 5 installs but not on Fedora 7 or Gentoo, probably because of some differences in the build environment. Thanks to Arnaud Connois for all the assistance tracking this down. Signed-off-by: Alberto Bertogli commit b450b7cb0fccf5fb04d2bfd9b9019004797577a0 Author: Alberto Bertogli Date: Thu Aug 9 04:08:16 2007 -0300 Make nmdb's Makefile gmake 3.80 compatible. Using "else ifeq" (on the same line) is only accepted in gmake 3.81 or newer, not on earlier versions. This patch gets rid of it entirely by using a series of ifeq-endif. Signed-off-by: Alberto Bertogli commit d139ab25de20ec7e8e9a29c8f9e424eb166b590c Author: Alberto Bertogli Date: Thu Aug 9 04:06:48 2007 -0300 Improve and fix support for compiling out TIPC, UDP and TCP from libnmdb. The support for compiling out TIPC, UDP and TCP in libnmdb was broken, because while we did not include the code, we still had a dependency on the header, because nmdb.h included the tipc and inet headers regardless of the configuration options. This patch fixes this by generating nmdb.h on build time, and setting some internal constants accordingly. Not the nicest way on earth, but it's not too dirty either, and it works. It also fixes some issues with having UDP in and TCP out or viceversa, because the server comparison function relied on TCP (it worked on UDP just by chance because accesing the data through the TCP union member is ABI compatible). Now there is only one union member for either, named 'in', accordingly to the headers and the sockaddr variant used. Signed-off-by: Alberto Bertogli commit 31e5c9e756f62e975584f22a7900e0e050b88b5f Author: Alberto Bertogli Date: Thu Aug 9 03:55:51 2007 -0300 The stdout logging file descriptor is 1, not 0. Stupid and embarrasing typo. Signed-off-by: Alberto Bertogli commit c91455c113b6e0e24142efd1201faa330c55b651 Author: Alberto Bertogli Date: Wed Aug 8 18:50:04 2007 -0300 Remove remaining printf()s and perror() with the new logging functions. Signed-off-by: Alberto Bertogli commit f31fe4959b5504330508012b1829369a0f5f86b6 Author: Alberto Bertogli Date: Wed Aug 8 18:37:05 2007 -0300 Remove the 'STRICT' build option and add -pedantic as default. The -ansi was wrong, because it set the standard to C90, overriding the earlier -std=c99 option. After we remove it, it makes no sense leaving -pedantic as an option; it should be in the default CFLAGS, as we should be sticking to C99 and not rely on any GNU extensions. Signed-off-by: Alberto Bertogli commit b22586bbd11f12e99870f2f046cc5a40f56a00c7 Author: Alberto Bertogli Date: Wed Aug 8 18:28:50 2007 -0300 Include the time when logging. Use a very simple, standard, parseable time format. Signed-off-by: Alberto Bertogli commit 133b2d45c489cc371e50344977c4ce01d06c4b8f Author: Alberto Bertogli Date: Wed Aug 8 18:16:16 2007 -0300 Make the default log file to be "-" (stdout). If we default to NULL log file, we don't see startup errors, and it can be quite frustrating if you don't know how to enable it by default. This patch fixes this by making the default logging to be stdout, following the principle of the least surprise. Signed-off-by: Alberto Bertogli commit 3d4a89ec47ef1d3468c91d5655abce2fedb6b539 Author: Alberto Bertogli Date: Wed Aug 8 18:09:59 2007 -0300 Reindent some code to correctly wrap at 80 columns. Signed-off-by: Alberto Bertogli commit f2fc630d85b87253999ef4a28551efb1e236426e Author: Alberto Bertogli Date: Wed Aug 8 18:02:37 2007 -0300 Implement a simple logging facility. It supports a normal log (wlog(), because log() was already taken), and an error log like perror() called errlog(). Signed-off-by: Alberto Bertogli commit 9876997b840e93e6092a716557197f1fb4101eec Author: Alberto Bertogli Date: Wed Aug 8 16:48:28 2007 -0300 Split binaries and man installs. In case we just want to install only one of them, they should be split. Signed-off-by: Alberto Bertogli commit f16e9e039258ee5f635e51407b41e65583e1aad1 Author: Alberto Bertogli Date: Mon Jul 30 18:27:32 2007 -0300 Try harder to send() when we get EAGAIN. With big packets, the receiver window might get exhausted and send() would block, but as the fd is set in non-blocking mode, it returns EAGAIN. This patch retries when send() fails in this way. The proper way to fix this would be to add an event so we get notified when the fd is available for writing, and retry the send; but this is complex so leave it for when it's really needed. Signed-off-by: Alberto Bertogli commit 1f3b3f78775582207cfe4ff186b65fb0f032f6f0 Author: Alberto Bertogli Date: Mon Jul 30 13:19:11 2007 -0300 qdbm backend: Create the database if it doesn't exist. Signed-off-by: Alberto Bertogli commit f0976fa2bc4666c00501fad0382fac3d77ff1435 Author: Alberto Bertogli Date: Mon Jul 30 13:18:48 2007 -0300 Add Berkley DB backend. Not much to it, it's just another backend. It still needs documentation, like the "null" one. Signed-off-by: Alberto Bertogli commit a6d3fbcab8ac8ae2999e533e51affb69ce9cb218 Author: Alberto Bertogli Date: Mon Jul 30 13:17:35 2007 -0300 Rename db.* to dbloop.*. db.h conflicts with BDB's header, so we rename db.* to dbloop.* to avoid the clash. Signed-off-by: Alberto Bertogli commit 33fd76934d95cb6735f5a57fcf309864be16afe5 Author: Alberto Bertogli Date: Thu Jul 26 20:23:51 2007 -0300 Add the .gitignore file. It makes sense to include it here because most people who checks out the repo will want to ignore these. Signed-off-by: Alberto Bertogli commit 84513cbe1029c475993ce1dc848efb8f52f12e32 Author: Alberto Bertogli Date: Wed Jul 25 16:56:40 2007 -0300 Add support for a "null" backend. This patch adds support for a new backend called "null" which just accepts all sets, and misses all gets/dels. It is useful if you want to use nmdb without a database, to avoid linking with qdbm. Signed-off-by: Alberto Bertogli commit 825ffc9e5b6e96b0623b5d03ff05a115d39c19b7 Author: Alberto Bertogli Date: Wed Jul 25 16:47:55 2007 -0300 Include missing #include in db.c. Because qdbm's depot.h includes stdlib.h, we didn't notice this before. Signed-off-by: Alberto Bertogli commit dbf58df7ed091c63ca782914a8f4b5e7ff3592fc Author: Alberto Bertogli Date: Wed Jul 25 11:21:42 2007 -0300 Fix getopt() string: add missing parameters. TCP and UDP options were handled in the switch but never added to the getopt string. Fix this by adding them. Signed-off-by: Alberto Bertogli commit bb96201942c188dce840150e2b5b254eb4200978 Author: Alberto Bertogli Date: Tue Jul 24 02:23:01 2007 -0300 Improve wording in several nmdb descriptions. Signed-off-by: Alberto Bertogli commit 4c8503d8d396d6971e2d302f2fb88023406abe0b Author: Alberto Bertogli Date: Sat Jul 21 19:44:08 2007 -0300 Set the number of objects in cache_create(). Today, the numobjs struct member is unused, but it should be properly filled anyway. Signed-off-by: Alberto Bertogli commit 0d5b657c22ff01944b835ba687eabcca90376c0b Author: Alberto Bertogli Date: Sat Jul 14 17:47:47 2007 -0300 Add a cache version of the random1.py test. This test stresses the cache exclusively, and is also useful to test the hash function because it reports misses. Signed-off-by: Alberto Bertogli commit 191200bcb5fb58c55bab30b39003fb870ec70ef5 Author: Alberto Bertogli Date: Tue Jul 10 19:29:27 2007 -0300 Add references to the new mailing list. Signed-off-by: Alberto Bertogli commit 0221f5c195b90b10668e91fe664e8cc9cc4997d6 Author: Alberto Bertogli Date: Tue Jul 10 16:41:36 2007 -0300 Add missing references in the top-level LICENSE file. Ruby and Bigloo bindings were missing. Signed-off-by: Alberto Bertogli commit 1be41929a28e20b2045cd698b3ddc156cde3b432 Author: Alberto Bertogli Date: Tue Jul 10 16:41:09 2007 -0300 Add bigloo in the bindings list in the README file. Signed-off-by: Alberto Bertogli commit 5eb40e912b00e0d5c21e4dbaa6a22d870172d47e Author: Alberto Bertogli Date: Tue Jul 10 16:40:49 2007 -0300 Add the BOLA license to bigloo bindings. Signed-off-by: Alberto Bertogli commit 02f0dcd4feeea045fa2e59422309ba14c1c6b01f Author: Alberto Bertogli Date: Tue Jul 10 16:39:14 2007 -0300 Add bigloo bindings. Very simple and straightforward bindings for Bigloo Scheme. The test was copied from the NewLISP bindings. Signed-off-by: Alberto Bertogli commit 2fc78405891b8855cbf23d014cf7c901ea355c8c Author: Alberto Bertogli Date: Fri Jun 29 11:05:01 2007 -0300 Make Python binding nicer and more generic. Create a GenericDB class, and make it complete, except for the get, set, delete and cas operations, which are created by the subclasses. This is a much nicer approach, equal to the one taken in the Ruby bindings. Signed-off-by: Alberto Bertogli commit 81834a73f8194c16c06f5e8dd87a92ade3515a9f Author: Alberto Bertogli Date: Fri Jun 29 10:29:54 2007 -0300 Implement [], []= and include? in the Ruby GenericDB. Instead of aliasing identical things, assume we will have set and get, and implement [], []= and include? as generic functions. Signed-off-by: Alberto Bertogli commit cdc1ab2d41cf144948725f3a72d7264fee7e0948 Author: Alberto Bertogli Date: Fri Jun 29 10:26:18 2007 -0300 Allow the ruby default value to be parametrized and changed. This mimics the behaviour of the default hash object. It also fixes the automarshal attribute, which should have been attr_accessor (r/w) instead of attr_writer (write only). Signed-off-by: Alberto Bertogli commit f54d724a47ee6673fee016913eee3261988665e9 Author: Alberto Bertogli Date: Fri Jun 29 02:33:07 2007 -0300 Add an UPGRADING doc to note backwards-incompatible changes. Let's hope this doesn't grow too big. Signed-off-by: Alberto Bertogli commit ef5ab8d7f14cf8b9c4074ddba1a327122f68e64e Merge: 2680b4c... d73700e... Author: Alberto Bertogli Date: Fri Jun 29 02:27:55 2007 -0300 Merge branch 'ruby' commit d73700ee47050a45be3b275b0e1ac03859a10bbe Author: Alberto Bertogli Date: Fri Jun 29 02:27:47 2007 -0300 Add a reference to the Ruby bindings in the Makefile. The other documents don't need updating because they don't mention the bindings. Signed-off-by: Alberto Bertogli commit 16364ba024bbed8e9b2715be4b906686884f48c7 Author: Alberto Bertogli Date: Fri Jun 29 02:26:36 2007 -0300 Add BOLA license to the Ruby bindings. Signed-off-by: Alberto Bertogli commit 72ffddfa5a24b567055992045861a845fe7954ea Author: Alberto Bertogli Date: Fri Jun 29 02:24:55 2007 -0300 Implement Ruby bindings. Signed-off-by: Alberto Bertogli commit 2680b4c3b4af34a2f1d7011f0a41d76f788defb7 Author: Alberto Bertogli Date: Fri Jun 29 02:22:38 2007 -0300 Make the test's make.sh more verbose. We use newlines so warnings and errors get properly noticed. Signed-off-by: Alberto Bertogli commit ac406c949cb75bc629c2807e13952c5bc017d6e6 Author: Alberto Bertogli Date: Thu Jun 28 19:51:09 2007 -0300 Make nmdb_*get() return -1 on miss, instead of 0. Breaks the API. Without this patch, it's impossible to tell between a miss and a key with a value of "" (the empty string). This fixes that by returning -1 (instead of 0) when there's a miss, and -2 (instead of -1) when there's an error. It updates all bindings and tests. Too bad it missed the 0.20 release. Signed-off-by: Alberto Bertogli commit 21d53a7a17513f0b75afef9d6d77d794c9998089 Author: Alberto Bertogli Date: Thu Jun 28 18:55:46 2007 -0300 Fix libnmdb.3 nmdb_*get return types. The get functions returns ssize_t, not int. Signed-off-by: Alberto Bertogli