1 /* $NetBSD: compat_ndbmdatum.c,v 1.2 2012/03/13 21:13:31 christos Exp $ */
4 * Written by Klaus Klein <kleink@NetBSD.org>, April 28, 2004.
8 #define __LIBC12_SOURCE__
10 #include <sys/cdefs.h>
12 #include <compat/include/ndbm.h>
14 __warn_references(dbm_delete
,
15 "warning: reference to compatibility dbm_delete();"
16 " include <ndbm.h> for correct reference")
17 __warn_references(dbm_fetch
,
18 "warning: reference to compatibility dbm_fetch();"
19 " include <ndbm.h> for correct reference")
20 __warn_references(dbm_firstkey
,
21 "warning: reference to compatibility dbm_firstkey();"
22 " include <ndbm.h> for correct reference")
23 __warn_references(dbm_nextkey
,
24 "warning: reference to compatibility dbm_nextkey();"
25 " include <ndbm.h> for correct reference")
26 __warn_references(dbm_store
,
27 "warning: reference to compatibility dbm_store();"
28 " include <ndbm.h> for correct reference")
31 #define datum_truncate(a) ((a) > INT_MAX ? INT_MAX : (int)(a))
33 #include "db/hash/ndbmdatum.c"