Searched defs:dbm (Results 1 - 8 of 8) sorted by relevance

/ast/src/cmd/INIT/
H A Ddb.c21 * small test for sleepycat dbm compatibility
33 DBM* dbm = 0; local
35 dbm_close(dbm);
H A Dgdbm.c33 DBM* dbm = 0; local
35 dbm_close(dbm);
H A Dgdbm1.c33 DBM* dbm = 0; local
35 dbm_close(dbm);
H A Dgdbm2.c33 DBM* dbm = 0; local
35 dbm_close(dbm);
/ast/src/cmd/kshlib/dbm/
H A Ddbm.c22 * first hack dbm plugin
32 DBM* dbm; member in struct:State_s
50 "[+NAME?dbm_open - open dbm file]"
54 "then the dbm file is truncated.]"
73 if (state.dbm)
75 dbm_close(state.dbm);
76 state.dbm = 0;
121 if (!error_info.errors && !(state.dbm = dbm_open(*argv, flags, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)))
137 "[+NAME?dbm_close - close dbm file]"
172 if (!state.dbm)
[all...]
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c26 "[+NAME?Dbm_t - create an associative array containing contents of a dbm file]"
28 "array corresponding to the dbm file whose name is the value of the "
30 "array with subscripts corresponding to keys in the dbm file.]"
37 "[c:create?Clear the dbm file if it already exists or create it.]"
57 DBM *dbm; member in struct:dbm_array
122 dbm_clearerr(ap->dbm);
123 data = dbm_fetch(ap->dbm,ap->key);
150 if(err=dbm_error(ap->dbm))
152 dbm_clearerr(ap->dbm);
174 dbm_store(ap->dbm,a
[all...]
/ast/src/cmd/cs/
H A Ddbm.c25 * dbm server
48 static const char id[] = "\n@(#)$Id: cs.dbm (AT&T Bell Laboratories) 1995-05-09 $\0\n";
75 typedef struct /* open dbm info */
77 DBM* dbm; /* dbm stream pointer */ member in struct:__anon74
89 Db_t* db; /* open dbm info */
171 if (!--cp->db->ref) dbm_close(cp->db->dbm);
177 val = dbm_fetch(cp->db->dbm, key);
179 else if (dbm_error(cp->db->dbm))
181 dbm_clearerr(cp->db->dbm);
[all...]
/ast/src/cmd/coshell/
H A Devent.c209 DBM* dbm; /* dbm handle */ member in struct:State_s
428 if (!(n = dbm_store(state->dbm, key, val, DBM_INSERT)) || n > 0 && !dbm_store(state->dbm, key, val, DBM_REPLACE))
430 else if (!dbm_error(state->dbm))
434 dbm_clearerr(state->dbm);
439 if (!dbm_delete(state->dbm, key))
444 else if (!dbm_error(state->dbm))
448 dbm_clearerr(state->dbm);
457 if (!(n = dbm_store(state->dbm, ke
[all...]

Completed in 15 milliseconds