xref: /third_party/musl/libc-test/src/api/ndbm.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/libc-test/src/api/
1570af302Sopenharmony_ci#ifdef X_NDBM
2570af302Sopenharmony_ci#include <ndbm.h>
3570af302Sopenharmony_ci#define T(t) (t*)0;
4570af302Sopenharmony_ci#define F(t,n) {t *y = &x.n;}
5570af302Sopenharmony_ci#define C(n) switch(n){case n:;}
6570af302Sopenharmony_cistatic void f()
7570af302Sopenharmony_ci{
8570af302Sopenharmony_ciT(size_t)
9570af302Sopenharmony_ciT(mode_t)
10570af302Sopenharmony_ciT(DBM)
11570af302Sopenharmony_ci{
12570af302Sopenharmony_cidatum x;
13570af302Sopenharmony_ciF(void*, dptr)
14570af302Sopenharmony_ciF(size_t, dsize)
15570af302Sopenharmony_ci}
16570af302Sopenharmony_ciC(DBM_INSERT)
17570af302Sopenharmony_ciC(DBM_REPLACE)
18570af302Sopenharmony_ci{int(*p)(DBM*) = dbm_clearerr;}
19570af302Sopenharmony_ci{void(*p)(DBM*) = dbm_close;}
20570af302Sopenharmony_ci{int(*p)(DBM*,datum) = dbm_delete;}
21570af302Sopenharmony_ci{int(*p)(DBM*) = dbm_error;}
22570af302Sopenharmony_ci{datum(*p)(DBM*,datum) = dbm_fetch;}
23570af302Sopenharmony_ci{datum(*p)(DBM*) = dbm_firstkey;}
24570af302Sopenharmony_ci{datum(*p)(DBM*) = dbm_nextkey;}
25570af302Sopenharmony_ci{DBM*(*p)(const char*,int,mode_t) = dbm_open;}
26570af302Sopenharmony_ci{int(*p)(DBM*,datum,datum,int) = dbm_store;}
27570af302Sopenharmony_ci}
28570af302Sopenharmony_ci#else
29570af302Sopenharmony_cistatic void f(){}
30570af302Sopenharmony_ci#endif
31

Indexes created Thu Nov 07 10:32:03 CST 2024