| /src/lib/libc/db/db/ |
| H A D | Makefile.inc | 4 .PATH: ${.CURDIR}/db/db 6 SRCS+= db.c dbfile.c
|
| /src/tools/db/ |
| H A D | Makefile | 3 HOSTPROGNAME= ${_TOOL_PREFIX}db 4 HOST_SRCDIR= usr.bin/db
|
| /src/lib/libc/compat/db/hash/ |
| H A D | Makefile.inc | 3 .PATH: ${COMPATDIR}/db/hash
|
| /src/lib/libc/db/mpool/ |
| H A D | Makefile.inc | 4 .PATH: ${.CURDIR}/db/mpool
|
| /src/usr.bin/db/ |
| H A D | Makefile | 5 PROG= db
|
| /src/usr.sbin/sa/ |
| H A D | extern.h | 39 #include <db.h> 93 /* some #defines to help with db's stupidity */ 95 #define DB_CLOSE(db) \ 96 ((*(db)->close)(db)) 97 #define DB_GET(db, key, data, flags) \ 98 ((*(db)->get)((db), (key), (data), (flags))) 99 #define DB_PUT(db, key, data, flags) \ 100 ((*(db) [all...] |
| /src/etc/rc.d/ |
| H A D | ipfs | 20 if [ -r /var/db/ipf/ipstate.ipf ] && [ -r /var/db/ipf/ipnat.ipf ] 23 rm -f /var/db/ipf/ipstate.ipf /var/db/ipf/ipnat.ipf 29 if ! [ -d /var/db/ipf ]; then 30 mkdir /var/db/ipf 31 chmod 700 /var/db/ipf 32 chown root:wheel /var/db/ipf
|
| H A D | sysdb | 40 local db="$2" 46 if ! [ -f "$db" ] || [ "$src" -nt "$db" ]; then 55 check_file /etc/services /var/db/services.cdb services_mkdb -q 60 check_file /etc/netgroup /var/db/netgroup.db netgroup_mkdb 65 check_file /dev /var/run/dev.db dev_mkdb 72 check_file $p /etc/spwd.db pwd_mkdb -w $p
|
| /src/sys/net/ |
| H A D | bsd-comp.c | 200 bsd_clear(struct bsd_db *db) argument 202 db->clear_count++; 203 db->max_ent = FIRST-1; 204 db->n_bits = BSD_INIT_BITS; 205 db->ratio = 0; 206 db->bytes_out = 0; 207 db->in_count = 0; 208 db->checkpoint = CHECK_GAP; 225 bsd_check(struct bsd_db *db) argument 229 if (db 267 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_comp_stats 292 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_reset 307 struct bsd_db *db; local in function:bsd_alloc 371 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_free 394 bsd_init(struct bsd_db * db,u_char * options,int opt_len,int unit,int hdrlen,int mru,int debug,int decomp) argument 458 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_compress 668 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_incomp 796 struct bsd_db *db = (struct bsd_db *) state; local in function:bsd_decompress [all...] |
| /src/sys/arch/hp300/dev/ |
| H A D | dvbox.c | 278 volatile struct dvboxfb *db = (struct dvboxfb *)fb->regkva; local in function:dvbox_restore 281 db->regs.id = 0x80; 284 db->regs.interrupt = 0x04; 285 db->en_scan = 0x01; 286 db->fbwen = ~0; 287 db->opwen = ~0; 288 db->fold = 0x01; /* 8bpp */ 289 db->drive = 0x01; /* use FB plane */ 290 db->rep_rule = DVBOX_DUALROP(RR_COPY); 291 db 415 volatile struct dvboxfb *db = (struct dvboxfb *)fb->regkva; local in function:dvbox_windowmove [all...] |
| /src/usr.bin/btkey/ |
| H A D | file.c | 42 static const char *key_file = "/var/db/bthcid.keys"; 50 prop_dictionary_t db, dev; local in function:list_file 57 db = prop_dictionary_internalize_from_file(key_file); 58 if (db == NULL) 61 dev = prop_dictionary_get(db, bt_ntoa(&laddr, NULL)); 88 prop_object_release(db); 98 prop_dictionary_t db, dev; local in function:read_file 102 db = prop_dictionary_internalize_from_file(key_file); 103 if (db == NULL) 106 dev = prop_dictionary_get(db, bt_nto 128 prop_dictionary_t db, dev; local in function:write_file 176 prop_dictionary_t db, dev; local in function:clear_file [all...] |
| /src/usr.sbin/kvm_mkdb/ |
| H A D | kvm_mkdb.c | 81 #include <db.h> 104 static DB *db; variable in typeref:typename:DB * 140 * If the existing db file matches the currently running 163 db = dbopen(dbtemp, O_CREAT | O_EXLOCK | O_TRUNC | O_RDWR, 165 if (db == NULL) 167 create_knlist(nlistpath, db); 168 if (db->close(db)) { 170 db = NULL; 173 db [all...] |
| H A D | testdb.c | 48 #include <db.h> 57 /* Return true if the db file is valid, else false */ 61 DB *db; local in function:testdb 70 db = NULL; 72 if ((db = dbopen(_PATH_KVMDB, O_RDONLY, 0, DB_HASH, NULL)) == NULL) 78 if ((db->get)(db, &rec, &rec, 0)) 100 close: if (db) 101 (void)(db->close)(db); [all...] |
| /src/tests/lib/libc/db/ |
| H A D | t_db_hash_seq.c | 36 #include <db.h> 92 state_close(DB *db) argument 94 if (db == NULL) 96 if ((*db->close)(db) == -1) 97 DO_ERR("%s: can't close db", __func__); 104 DB *db; local in function:state_open 106 db = dbopen(dbname, flags, perm, DB_HASH, &openinfo); 107 if (db == NULL) { 113 return db; 126 state_del(DB * db,const struct conf * c) argument 182 state_put(DB * db,const struct conf * c,const struct dbinfo * dbi) argument 211 state_iterate(DB * db,struct conf * c,struct dbinfo * dbi,unsigned int first) argument 248 DB *db; local in function:testdb [all...] |
| /src/share/examples/refuse/id3fs/ |
| H A D | id3db.sh | 33 id3db=/usr/music/.id3.db 35 db -w -C -E B btree $id3db 54 s = sprintf("db -w -E B btree %s %ca%s/%s%c %c%s%c %cy%s/%s%c %c%s%c %cg%s/%s%c %c%s%c",
|
| /src/lib/libc/db/hash/ |
| H A D | ndbm.c | 45 * package described in db(3). 84 dbm_close(DBM *db) argument 86 (void)(db->close)(db); 90 dbm_error(DBM *db) argument 94 hp = db->internal; 99 dbm_clearerr(DBM *db) argument 103 hp = db->internal; 109 dbm_dirfno(DBM *db) argument 113 hp = db [all...] |
| H A D | ndbmdatum.c | 45 * package described in db(3). 66 dbm_fetch(DBM *db, datum key) argument 74 status = (db->get)(db, &dbtkey, &dbtretdata, 0); 90 dbm_firstkey(DBM *db) argument 96 status = (db->seq)(db, &dbtretkey, &dbtretdata, R_FIRST); 110 dbm_nextkey(DBM *db) argument 116 status = (db->seq)(db, 130 dbm_delete(DBM * db,datum key) argument 151 dbm_store(DBM * db,datum key,datum data,int flags) argument [all...] |
| /src/lib/libc/db/ |
| H A D | db2netbsd | 7 # (e.g. the "db.1.85" directory created by tar xvf), and sets up 10 version=`basename $PWD | sed -e 's/db\.//'` 23 mv test regress/lib/libc/db 26 mkdir -p lib/libc/db 27 mv Makefile.inc README btree changelog db hash man mpool recno lib/libc/db
|
| /src/usr.sbin/makemandb/ |
| H A D | whatis.c | 49 whatis(sqlite3 *db, const char *cmd) argument 60 if (sqlite3_prepare_v2(db, sqlstr, -1, &stmt, NULL) != SQLITE_OK) 61 errx(EXIT_FAILURE, "%s", sqlite3_errmsg(db)); 65 errx(EXIT_FAILURE, "%s", sqlite3_errmsg(db)); 84 sqlite3 *db; local in function:main 103 if ((db = init_db(MANDB_READONLY, manconf)) == NULL) 108 retval |= whatis(db, *argv++); 110 close_db(db);
|
| /src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/marvell/ |
| H A D | Makefile | 3 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-db.dtb 11 dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb 13 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb 17 dtb-$(CONFIG_ARCH_MVEBU) += armada-8080-db.dtb 18 dtb-$(CONFIG_ARCH_MVEBU) += cn9130-db.dtb 19 dtb-$(CONFIG_ARCH_MVEBU) += cn9130-db-B.dtb 20 dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db.dtb 21 dtb-$(CONFIG_ARCH_MVEBU) += cn9131-db-B.dtb 22 dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db.dtb 23 dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db [all...] |
| /src/usr.sbin/ypserv/common/ |
| H A D | ypdb.c | 11 * This code is derived from ndbm module of BSD4.4 db (hash) by 48 #include <db.h> 110 DBM *db = NULL; local in function:ypdb_mktemp 125 if ((db = _ypdb_dbopen(file, O_RDWR, 0644)) == NULL) 128 return db; 148 DBM *db; local in function:_ypdb_dbopen 160 db = (DBM *)dbopen(path, flags, mode, DB_BTREE, (void *)&info); 161 if (db != NULL || errno != EFTYPE) 162 return (db); 164 /* fallback to standard hash (for sendmail's aliases.db) */ 175 ypdb_close(DBM * db) argument 187 ypdb_fetch(DBM * db,datum key) argument 213 ypdb_firstkey(DBM * db) argument 237 ypdb_nextkey(DBM * db) argument 261 ypdb_setkey(DBM * db,datum key) argument 283 ypdb_delete(DBM * db,datum key) argument 305 ypdb_store(DBM * db,datum key,datum content,int flags) argument [all...] |
| /src/lib/libc/citrus/ |
| H A D | citrus_db.c | 64 struct _citrus_db *db; local in function:_citrus_db_open 82 db = malloc(sizeof(*db)); 83 if (db==NULL) 85 db->db_region = *r; 86 db->db_hashfunc = hashfunc; 87 db->db_hashfunc_closure = hashfunc_closure; 88 *rdb = db; 94 _citrus_db_close(struct _citrus_db *db) argument 96 free(db); 100 _citrus_db_lookup(struct _citrus_db * db,struct _citrus_region * key,struct _citrus_region * data,struct _citrus_db_locator * dl) argument 186 _citrus_db_lookup_by_string(struct _citrus_db * db,const char * key,struct _citrus_region * data,struct _citrus_db_locator * dl) argument 198 _citrus_db_lookup8_by_string(struct _citrus_db * db,const char * key,uint8_t * rval,struct _citrus_db_locator * dl) argument 218 _citrus_db_lookup16_by_string(struct _citrus_db * db,const char * key,uint16_t * rval,struct _citrus_db_locator * dl) argument 241 _citrus_db_lookup32_by_string(struct _citrus_db * db,const char * key,uint32_t * rval,struct _citrus_db_locator * dl) argument 264 _citrus_db_lookup_string_by_string(struct _citrus_db * db,const char * key,const char ** rdata,struct _citrus_db_locator * dl) argument 288 _citrus_db_get_number_of_entries(struct _citrus_db * db) argument 301 _citrus_db_get_entry(struct _citrus_db * db,int idx,struct _region * key,struct _region * data) argument [all...] |
| H A D | citrus_esdb.c | 79 struct _citrus_db *db; local in function:conv_esdb 84 /* open db */ 85 ret = _db_open(&db, fr, _CITRUS_ESDB_MAGIC, &_db_hash_std, NULL); 90 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_VERSION, &version, NULL); 104 ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_ENCODING, &str, NULL); 115 ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_VARIABLE, &str, NULL); 127 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_NUM_CHARSETS, 134 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_INVALID, &tmp, NULL); 152 ret = _db_lookup32_by_s(db, buf, &csid, NULL); 159 ret = _db_lookupstr_by_s(db, bu 193 _citrus_esdb_open(struct _citrus_esdb * db,const char * esname) argument 230 _citrus_esdb_close(struct _citrus_esdb * db) argument [all...] |
| H A D | citrus_lc_template.h | 39 struct _citrus_db *db; local in function:_PREFIX 53 ret = _db_open(&db, &file, _CATEGORY_MAGIC, 56 ret = _PREFIX(init_normal)(data, db); 57 _db_close(db);
|
| /src/usr.bin/vgrind/ |
| H A D | Makefile | 11 CLEANFILES+=vgrindefs.src.db 14 FILES= tmac.vgrind vgrindefs.src vgrindefs.src.db 16 FILESNAME_vgrindefs.src.db= vgrindefs.db 25 realall: vfontedpr vgrindefs.src.db 37 vgrindefs.src.db: vgrindefs.src 41 vgrindefs.src.db:
|