Searched defs:db (Results 1 - 25 of 139) sorted by relevance

123456

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dcopy.c45 sqlite *db = pParse->db; local
54 assert( pTab->iDb<db->nDb );
55 zDb = db->aDb[pTab->iDb].zName;
66 if( db->flags & SQLITE_CountRows ){
95 if( (db->flags & SQLITE_CountRows)!=0 ){
102 if( db->flags & SQLITE_CountRows ){
H A Dattach.c33 sqlite *db; local
39 db = pParse->db;
40 if( db->file_format<4 ){
46 if( db->nDb>=MAX_ATTACHED+2 ){
68 for(i=0; i<db->nDb; i++){
69 if( db->aDb[i].zName && sqliteStrICmp(db->aDb[i].zName, zName)==0 ){
77 if( db->aDb==db
141 sqlite *db; local
195 sqlite *db; local
[all...]
H A Dauth.c77 sqlite *db,
81 db->xAuth = xAuth;
82 db->pAuthArg = pArg;
111 sqlite *db = pParse->db; local
118 if( db->xAuth==0 ) return;
145 assert( pExpr->iDb<db->nDb );
146 zDBase = db->aDb[pExpr->iDb].zName;
147 rc = db->xAuth(db
76 sqlite_set_authorizer( sqlite *db, int (*xAuth)(void*,int,const char*,const char*,const char*,const char*), void *pArg ) argument
177 sqlite *db = pParse->db; local
[all...]
H A Dtable.c129 sqlite *db, /* The database on which the SQL executes */
154 rc = sqlite_exec(db, zSql, sqlite_get_table_cb, &res, pzErrMsg);
128 sqlite_get_table( sqlite *db, const char *zSql, char ***pazResult, int *pnRow, int *pnColumn, char **pzErrMsg ) argument
H A Ddelete.c72 sqlite *db; /* Main database structure */ local
86 db = pParse->db;
105 assert( pTab->iDb<db->nDb );
106 zDb = db->aDb[pTab->iDb].zName;
162 if( db->flags & SQLITE_CountRows ){
171 if( db->flags & SQLITE_CountRows ){
206 if( db->flags & SQLITE_CountRows ){
268 sqliteGenerateRowDelete(db, v, pTab, iCur, pParse->trigStack==0);
306 if( db
339 sqliteGenerateRowDelete( sqlite *db, Vdbe *v, Table *pTab, int iCur, int count ) argument
370 sqliteGenerateRowIndexDelete( sqlite *db, Vdbe *v, Table *pTab, int iCur, char *aIdxUsed ) argument
[all...]
H A Dupdate.c46 sqlite *db; /* The database structure */ local
68 db = pParse->db;
149 pTab->aCol[j].zName, db->aDb[pTab->iDb].zName);
244 if( db->flags & SQLITE_CountRows && !pParse->trigStack ){
385 sqliteGenerateRowIndexDelete(db, v, pTab, iCur, aIdxUsed);
400 if( db->flags & SQLITE_CountRows && !pParse->trigStack){
449 if( db->flags & SQLITE_CountRows && !pParse->trigStack ){
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dcrashtest1.c33 sqlite *db; local
39 if( access("./test.db-journal",0)==0 ){
40 /*printf("pid %d: journal exists. rollback will be required\n",getpid());*/ unlink("test.db-saved");
41 system("cp test.db test.db-saved");
42 unlink("test.db-journal-saved");
43 system("cp test.db-journal test.db-journal-saved");
45 db = sqlite_open("./test.db",
72 sqlite *db; local
[all...]
H A Dthreadtest2.c31 #define DB_FILE "test.db"
59 int integrity_check(sqlite *db){ argument
63 rc = sqlite_exec(db, "pragma integrity_check", check_callback, 0, 0);
68 sqlite_exec(db, "pragma integrity_check", check_callback, 0, 0);
77 sqlite *db; local
82 while( (db = sqlite_open(DB_FILE, 0, 0))==0 ) sched_yield();
83 sqlite_exec(db, "PRAGMA synchronous=OFF", 0, 0, 0);
84 integrity_check(db);
85 if( all_stop ){ sqlite_close(db); break; }
87 rc = sqlite_exec(db, "INSER
98 sqlite *db; local
[all...]
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dshowdb.c17 static int db = -1; variable
30 lseek(db, (iPg-1)*pagesize, SEEK_SET);
31 read(db, aData, pagesize);
52 db = open(argv[1], O_RDONLY);
53 if( db<0 ){
57 fstat(db, &sbuf);
87 close(db);
H A Dshowjournal.c17 static int db = -1; variable
30 read(db, aData, pagesize);
55 db = open(argv[1], O_RDONLY);
56 if( db<0 ){
60 read(db, zBuf, 8);
62 read(db, &u, sizeof(u));
64 read(db, &u, sizeof(u));
67 read(db, zBuf2, sizeof(zBuf2));
70 while( read(db, zBuf2, sizeof(zBuf2))==sizeof(zBuf2) ){
74 read(db,
[all...]
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dyptol_utils.c167 update_timestamp(DBM *db) argument
177 if (SUCCESS != addpair(db, yp_last_modified, time_string))
H A Dshim.c91 shim_dbm_close(DBM *db) argument
96 map = get_map_ctrl(db);
116 shim_dbm_delete(DBM *db, datum key) argument
122 map = get_map_ctrl(db);
152 shim_dbm_fetch(DBM *db, datum key) argument
158 map = get_map_ctrl(db);
191 shim_dbm_fetch_noupdate(DBM *db, datum key) argument
197 map = get_map_ctrl(db);
220 shim_dbm_firstkey(DBM *db) argument
229 map = get_map_ctrl(db);
310 shim_dbm_nextkey(DBM *db) argument
351 shim_dbm_do_nextkey(DBM *db, datum inkey) argument
454 shim_dbm_store(DBM *db, datum key, datum content, int store_mode) argument
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.h38 DB * db; /* DB handle */ member in struct:_krb5_db2_context
H A Dadb_policy.c40 #define OPENLOCK(db, mode) \
43 if (db == NULL) \
45 else if (db->magic != OSA_ADB_POLICY_DB_MAGIC) \
47 else if ((olret = osa_adb_open_and_lock(db, mode)) != OSA_ADB_OK) \
51 #define CLOSELOCK(db) \
54 if ((cl_ret = osa_adb_close_and_unlock(db)) != OSA_ADB_OK) \
62 * Purpose: create a policy entry in the policy db.
72 * creates the entry in the db
75 * the policy db.
79 osa_adb_create_policy(osa_adb_policy_t db, osa_policy_ent_ argument
154 osa_adb_destroy_policy(osa_adb_policy_t db, char *name) argument
207 osa_adb_get_policy(osa_adb_policy_t db, char *name, osa_policy_ent_t *entry, int *cnt) argument
282 osa_adb_put_policy(osa_adb_policy_t db, osa_policy_ent_t entry) argument
349 osa_adb_iter_policy(osa_adb_policy_t db, osa_adb_iter_policy_func func, void *data) argument
[all...]
H A Dpolicy_db.h23 configure script doesn't detect it, it causes db-config.h to have a
24 #define for u_int32_t, so including db.h and then netinet/in.h
31 A better fix might be for db.h to include netinet/in.h if that's
41 #include <db.h>
63 DB *db; member in struct:_osa_adb_db_ent_t
87 krb5_error_code osa_adb_fini_db(osa_adb_db_t db, int magic);
88 krb5_error_code osa_adb_get_lock(osa_adb_db_t db, int mode);
89 krb5_error_code osa_adb_release_lock(osa_adb_db_t db);
90 krb5_error_code osa_adb_open_and_lock(osa_adb_princ_t db, int locktype);
91 krb5_error_code osa_adb_close_and_unlock(osa_adb_princ_t db);
[all...]
H A Dadb_openclose.c41 #include <db.h>
54 DB *db; local
65 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo);
66 if (db == NULL)
68 if (db->close(db) < 0)
71 /* only create the lock file if we successfully created the db */
141 osa_adb_db_t db; local
149 db = (osa_adb_princ_t) malloc(sizeof(osa_adb_db_ent));
150 if (db
253 osa_adb_fini_db(osa_adb_db_t db, int magic) argument
284 osa_adb_get_lock(osa_adb_db_t db, int mode) argument
370 osa_adb_release_lock(osa_adb_db_t db) argument
394 osa_adb_open_and_lock(osa_adb_princ_t db, int locktype) argument
426 osa_adb_close_and_unlock(osa_adb_princ_t db) argument
[all...]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_put.c47 #include "db-int.h"
205 char *dest, db[NOVFLSIZE]; local
216 tdata.data = db;
218 *(db_pgno_t *)db = pg;
219 *(u_int32_t *)(db + sizeof(db_pgno_t)) = data->size;
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dcache_a.out.h65 struct db { /* directory cache database */ struct
83 struct db *dbd_db; /* data base described by this */
88 struct db *dd_db; /* data base described by this */
95 char *ask_db(); /* ask db for highest minor number */
96 struct db *lo_cache(); /* obtain cache for directory name */
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_put.c50 #include "db-int.h"
83 char *dest, db[NOVFLSIZE], kb[NOVFLSIZE]; local
147 tdata.data = db;
149 memmove(db, &pg, sizeof(db_pgno_t));
152 memmove(db + sizeof(db_pgno_t),
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypxfrd_client.c48 static DBM *db; variable
108 (void) lseek64(db->dbm_pagf, where, L_SET);
113 if (write(db->dbm_pagf,
153 (void) lseek64(db->dbm_dirf, where, L_SET);
158 if (write(db->dbm_dirf,
291 db = dbm_open(tempmap, O_RDWR + O_CREAT + O_TRUNC, 0777);
292 if (db == NULL) {
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_cfgfile.c228 char *db, *dbe; local
298 db = c1;
338 rc = _nscd_cfg_get_handle(pname, db, &h, errorp);
/illumos-gate/usr/src/cmd/sendmail/libsmdb/
H A Dsmdb.c39 SMDB_DATABASE *db; local
41 db = (SMDB_DATABASE *) malloc(sizeof(SMDB_DATABASE));
43 if (db != NULL)
44 (void) memset(db, '\0', sizeof(SMDB_DATABASE));
46 return db;
263 ** db_name -- The name of the db.
414 ** SMDB_SETUP_FILE -- Gets db file ready for use.
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_sa.c73 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); local
78 if (bufsz + ZFS_OLD_ZNODE_PHYS_SIZE <= db->db_size) {
79 error = uiomove((caddr_t)db->db_data +
97 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); local
100 VERIFY(dmu_set_bonus(db,
103 bcopy(link, (caddr_t)db->db_data +
136 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); local
148 (caddr_t)db->db_data + ZFS_OLD_ZNODE_PHYS_SIZE,
169 dmu_buf_t *db = sa_get_db(zp->z_sa_hdl); local
176 VERIFY(dmu_set_bonus(db, le
197 dmu_buf_t *db = sa_get_db(hdl); local
[all...]
/illumos-gate/usr/src/uts/sparc/fpu/
H A Dpack.c490 } db; local
492 packdouble(pfpsd, pu, &db.x[0], &db.y[1]);
497 pfpsd->fp_current_write_dreg(&db.ll, DOUBLE(n),
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_sqlite.h50 sqlite_close(sqlite *db) argument
69 sqlite_compile(sqlite *db, const char *zSql, const char **pzTail, argument
83 sqlite_last_insert_rowid(sqlite *db) argument
90 sqlite_busy_timeout(sqlite *db, int ms) argument
96 sqlite_get_table(sqlite *db, const char *zSql, char ***pazResult, int *pnRow, argument
112 sqlite_exec(sqlite *db, const char *zSql, sqlite_callback xCallback, void *pArg, argument

Completed in 205 milliseconds

123456