This patch imports the unmodified current version of NetBSD libc. The NetBSD includes are in /nbsd_include, while the libc code itself is split between lib/nbsd_libc and common/lib/libc.
31 lines
1,010 B
C
31 lines
1,010 B
C
/* $NetBSD: compat_ndbmdatum.c,v 1.1 2005/09/13 01:44:09 christos Exp $ */
|
|
|
|
/*
|
|
* Written by Klaus Klein <kleink@NetBSD.org>, April 28, 2004.
|
|
* Public domain.
|
|
*/
|
|
|
|
#define __LIBC12_SOURCE__
|
|
#include "namespace.h"
|
|
#include <sys/cdefs.h>
|
|
#include <ndbm.h>
|
|
#include <compat/include/ndbm.h>
|
|
|
|
__warn_references(dbm_delete,
|
|
"warning: reference to compatibility dbm_delete();"
|
|
" include <ndbm.h> for correct reference")
|
|
__warn_references(dbm_fetch,
|
|
"warning: reference to compatibility dbm_fetch();"
|
|
" include <ndbm.h> for correct reference")
|
|
__warn_references(dbm_firstkey,
|
|
"warning: reference to compatibility dbm_firstkey();"
|
|
" include <ndbm.h> for correct reference")
|
|
__warn_references(dbm_nextkey,
|
|
"warning: reference to compatibility dbm_nextkey();"
|
|
" include <ndbm.h> for correct reference")
|
|
__warn_references(dbm_store,
|
|
"warning: reference to compatibility dbm_store();"
|
|
" include <ndbm.h> for correct reference")
|
|
|
|
#define datum datum12
|
|
#include "db/hash/ndbmdatum.c"
|