/PHP-7.3/ext/dba/ |
H A D | dba_qdbm.c | 35 DEPOT *dbf; member 40 DEPOT *dbf; in DBA_OPEN_FUNC() local 44 dbf = dpopen(info->path, DP_OREADER, 0); in DBA_OPEN_FUNC() 47 dbf = dpopen(info->path, DP_OWRITER, 0); in DBA_OPEN_FUNC() 59 if (dbf) { in DBA_OPEN_FUNC() 62 ((dba_qdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC() 74 dpclose(dba->dbf); in DBA_CLOSE_FUNC() 136 dpiterinit(dba->dbf); in DBA_FIRSTKEY_FUNC() 138 value = dpiternext(dba->dbf, &value_size); in DBA_FIRSTKEY_FUNC() 168 dpoptimize(dba->dbf, 0); in DBA_OPTIMIZE_FUNC() [all …]
|
H A D | dba_gdbm.c | 36 GDBM_FILE dbf; member 42 GDBM_FILE dbf; in DBA_OPEN_FUNC() local 60 if(dbf) { in DBA_OPEN_FUNC() 62 memset(info->dbf, 0, sizeof(dba_gdbm_data)); in DBA_OPEN_FUNC() 63 ((dba_gdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC() 75 gdbm_close(dba->dbf); in DBA_CLOSE_FUNC() 86 gval = gdbm_fetch(dba->dbf, gkey); in DBA_FETCH_FUNC() 144 gkey = gdbm_firstkey(dba->dbf); in DBA_FIRSTKEY_FUNC() 163 gkey = gdbm_nextkey(dba->dbf, dba->nextkey); in DBA_NEXTKEY_FUNC() 178 gdbm_reorganize(dba->dbf); in DBA_OPTIMIZE_FUNC() [all …]
|
H A D | dba_ndbm.c | 37 DBM *dbf; in DBA_OPEN_FUNC() local 63 dbf = dbm_open(info->path, gmode, filemode); in DBA_OPEN_FUNC() 65 pinfo->dbf = dbf; in DBA_OPEN_FUNC() 71 dbm_close(info->dbf); in DBA_CLOSE_FUNC() 80 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC() 96 if(!dbm_store(info->dbf, gkey, gval, mode == 1 ? DBM_INSERT : DBM_REPLACE)) in DBA_UPDATE_FUNC() 105 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC() 115 return(dbm_delete(info->dbf, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC() 123 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC() 136 gkey = dbm_nextkey(info->dbf); in DBA_NEXTKEY_FUNC()
|
H A D | dba_flatfile.c | 37 #define FLATFILE_DATA flatfile *dba = info->dbf 42 info->dbf = pemalloc(sizeof(flatfile), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 43 memset(info->dbf, 0, sizeof(flatfile)); in DBA_OPEN_FUNC() 45 ((flatfile*)info->dbf)->fp = info->fp; in DBA_OPEN_FUNC()
|
H A D | dba_dbm.c | 40 #define DBM_DATA dba_dbm_data *dba = info->dbf 83 info->dbf = pemalloc(sizeof(dba_dbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 84 memset(info->dbf, 0, sizeof(dba_dbm_data)); in DBA_OPEN_FUNC() 90 pefree(info->dbf, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
|
H A D | dba_tcadb.c | 32 #define TCADB_DATA dba_tcadb_data *dba = info->dbf 70 info->dbf = pemalloc(sizeof(dba_tcadb_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC() 71 memset(info->dbf, 0, sizeof(dba_tcadb_data)); in DBA_OPEN_FUNC() 72 ((dba_tcadb_data *) info->dbf)->tcadb = tcadb; in DBA_OPEN_FUNC()
|
H A D | dba_inifile.c | 38 inifile *dba = info->dbf 53 info->dbf = inifile_alloc(info->fp, info->mode == DBA_READER, info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 55 return info->dbf ? SUCCESS : FAILURE; in DBA_OPEN_FUNC()
|
H A D | dba_db2.c | 34 #define DB2_DATA dba_db2_data *dba = info->dbf 80 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 81 memset(info->dbf, 0, sizeof(dba_db2_data)); in DBA_OPEN_FUNC() 82 ((dba_db2_data *) info->dbf)->dbp = dbp; in DBA_OPEN_FUNC()
|
H A D | dba_lmdb.c | 39 #define LMDB_IT(it) (((struct php_lmdb_info *)info->dbf)->it) 88 info->dbf = pemalloc(sizeof(struct php_lmdb_info), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC() 89 if (!info->dbf) { in DBA_OPEN_FUNC() 93 memset(info->dbf, 0, sizeof(struct php_lmdb_info)); in DBA_OPEN_FUNC() 98 pefree(info->dbf, info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC() 116 pefree(info->dbf, info->flags & DBA_PERSISTENT); in DBA_CLOSE_FUNC()
|
H A D | dba_db1.c | 36 #define DB1_DATA dba_db1_data *dba = info->dbf 82 info->dbf = dba; in DBA_OPEN_FUNC() 91 pefree(info->dbf, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC()
|
H A D | dba_db3.c | 46 #define DB3_DATA dba_db3_data *dba = info->dbf 105 info->dbf = data;
|
H A D | dba_cdb.c | 46 dba_cdb *cdb = (dba_cdb *) info->dbf 115 pinfo->dbf = cdb; in DBA_OPEN_FUNC()
|
H A D | dba_db4.c | 60 #define DB4_DATA dba_db4_data *dba = info->dbf 134 info->dbf = data;
|
H A D | php_dba.h | 43 void *dbf; /* ptr to private data or whatever */ member
|
/PHP-7.3/ext/fileinfo/tests/ |
H A D | magic | 7611 !:mime application/x-dbf 7614 !:mime application/x-dbf 7617 !:mime application/x-dbf 7619 !:mime application/x-dbf 7621 !:mime application/x-dbf 7624 !:mime application/x-dbf 7627 !:mime application/x-dbf 7633 !:mime application/x-dbf 7639 !:mime application/x-dbf 7642 !:mime application/x-dbf [all …]
|
H A D | magic私はガラスを食べられます | 7611 !:mime application/x-dbf 7614 !:mime application/x-dbf 7617 !:mime application/x-dbf 7619 !:mime application/x-dbf 7621 !:mime application/x-dbf 7624 !:mime application/x-dbf 7627 !:mime application/x-dbf 7633 !:mime application/x-dbf 7639 !:mime application/x-dbf 7642 !:mime application/x-dbf [all …]
|