X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fposix%2Fndbm.m4;fp=m4%2Fposix%2Fndbm.m4;h=3d60b06dbf58ef837ae53a6318a6047f7873c320;hb=c9b3436bd51a4dcf7d6cc6817d4c7a8ad99538d4;hp=0000000000000000000000000000000000000000;hpb=09735ea6055f959a9cac481268754f07d6f6eb9f;p=m6w6%2Fext-psi diff --git a/m4/posix/ndbm.m4 b/m4/posix/ndbm.m4 new file mode 100644 index 0000000..3d60b06 --- /dev/null +++ b/m4/posix/ndbm.m4 @@ -0,0 +1,25 @@ +PSI_CHECK_NDBM() { + PSI_CONFIG_POSIX(ndbm, ndbm.h) + + PHP_CHECK_FUNC_LIB(dbm_open, gdbm_compat) + + PSI_STRUCT(datum, [ + void *dptr, + int dsize] + ) + + PSI_OPAQUE_TYPE(DBM) + + PSI_CONST(DBM_INSERT, int) + PSI_CONST(DBM_REPLACE, int) + + PSI_DECL(void dbm_clearerr, [(DBM *db)]) + PSI_DECL(void dbm_close, [(DBM *db)]) + PSI_DECL(int dbm_delete, [(DBM *db, datum key)]) + PSI_DECL(int dbm_error, [(DBM *db)]) + PSI_DECL(datum dbm_fetch, [(DBM *db, datum key)]) + PSI_DECL(datum dbm_firstkey, [(DBM *db)]) + PSI_DECL(datum dbm_nextkey, [(DBM *db)]) + PSI_DECL(DBM *dbm_open, [(char *file, int open_flags, mode_t file_mode)]) + PSI_DECL(int dbm_store, [(DBM *db, datum key, datum content, int store_mode)]) +} \ No newline at end of file