Home
last modified time | relevance | path

Searched refs:dbname (Results 1 – 25 of 66) sorted by relevance

123

/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hdb/
H A Dkeytab.c41 char *dbname; member
72 d->dbname = NULL; in hdb_resolve()
74 d->dbname = strdup(name); in hdb_resolve()
75 if(d->dbname == NULL) { in hdb_resolve()
83 d->dbname = malloc(mkey - db + 1); in hdb_resolve()
84 if(d->dbname == NULL) { in hdb_resolve()
89 memmove(d->dbname, db, mkey - db); in hdb_resolve()
90 d->dbname[mkey - db] = '\0'; in hdb_resolve()
94 free(d->dbname); in hdb_resolve()
109 free(d->dbname); in hdb_close()
[all …]
H A Ddbinfo.c41 char *dbname; member
70 di->dbname = strdup(p); in get_dbinfo()
148 if (di->dbname == NULL) { in hdb_get_dbinfo()
149 di->dbname = strdup(default_dbname); in hdb_get_dbinfo()
154 p = strrchr(di->dbname, '.'); in hdb_get_dbinfo()
157 ret = asprintf(&di->mkey_file, "%s.mkey", di->dbname); in hdb_get_dbinfo()
162 (int)(p - di->dbname), di->dbname); in hdb_get_dbinfo()
200 return dbp->dbname; in hdb_dbinfo_get_dbname()
236 free (di->dbname); in hdb_free_dbinfo()
/netbsd-src/usr.sbin/kvm_mkdb/
H A Dkvm_mkdb.c105 static char *dbname = NULL; variable
119 dbname = optarg; in main()
132 if (dbname == NULL) { in main()
133 dbname = _PATH_KVMDB; in main()
135 } else if (strncmp(_PATH_KVMDB, dbname, sizeof(_PATH_KVMDB)) == 0) { in main()
161 (void)snprintf(dbtemp, sizeof(dbtemp), "%s.tmp", dbname); in main()
174 if (rename(dbtemp, dbname)) { in main()
175 warn("rename %s to %s", dbtemp, dbname); in main()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/base/
H A Ddb.c128 heim_string_t dbname; member
257 heim_release(db->dbname); in db_dealloc()
266 const char *dbname; member
285 iter_ctx->dbname, iter_ctx->options, in dbtype_iter2create_f()
318 heim_db_create(const char *dbtype, const char *dbname, in heim_db_create() argument
344 struct dbtype_iter iter_ctx = { NULL, dbname, options, error}; in heim_db_create()
395 ret = plug->openf(plug->data, dbtype, dbname, options, &db->db_data, error); in heim_db_create()
401 dbname); in heim_db_create()
413 db->dbname = heim_string_create(dbname); in heim_db_create()
415 if (!db->dbtype || ! db->dbname) { in heim_db_create()
[all …]
H A Dbsearch.c805 stdb_open(void *plug, const char *dbtype, const char *dbname, in stdb_open() argument
814 if (dbname == NULL || *dbname == '\0') { in stdb_open()
821 p = strrchr(dbname, '.'); in stdb_open()
831 ret = _bsearch_file_open(dbname, 0, 0, &bfh, NULL); in stdb_open()
/netbsd-src/external/mpl/bind/dist/lib/isccfg/
H A Daclconf.c291 const char *dbname) { in get_subtype()
292 if (dbname == NULL) { in get_subtype() argument
298 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
300 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
308 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
310 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
318 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
320 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
328 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
330 } else if (strcasecmp(dbname, "countr in get_subtype()
478 const char *dbname = NULL; parse_geoip_element() local
[all...]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isccfg/
H A Daclconf.c294 const char *dbname) { in get_subtype() argument
295 if (dbname == NULL) { in get_subtype()
301 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
303 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
311 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
313 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
321 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
323 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
331 if (strcasecmp(dbname, "city") == 0) { in get_subtype()
333 } else if (strcasecmp(dbname, "country") == 0) { in get_subtype()
[all …]
/netbsd-src/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c152 char dbname[MAX(MAXPATHLEN, LINE_MAX * 2)]; member
200 wr_error(db->dbname); in closedb()
204 opendb(struct pwddb *db, const char *dbname, const char *username, in opendb() argument
209 (void)snprintf(db->dbname, sizeof(db->dbname), "%s%s.tmp", prefix, in opendb()
210 dbname); in opendb()
213 (void)snprintf(buf, sizeof(buf), "%s%s", prefix, dbname); in opendb()
214 cp(buf, db->dbname, perm); in opendb()
217 db->db = dbopen(db->dbname, flags, perm, DB_HASH, &openinfo); in opendb()
219 mkpw_error("Cannot open `%s'", db->dbname); in opendb()
[all...]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dinit_s.c51 char *dbname; in kadm5_s_init_with_context() local
60 dbname = realm_params->dbname; in kadm5_s_init_with_context()
62 dbname = ctx->config.dbname; in kadm5_s_init_with_context()
69 assert(dbname != NULL); in kadm5_s_init_with_context()
79 ret = hdb_create(ctx->context, &ctx->db, dbname); in kadm5_s_init_with_context()
H A Dcontext_s.c164 ctx->config.dbname = strdup(p); in find_db_spec()
165 if (ctx->config.dbname == NULL) in find_db_spec()
196 if (ctx->config.dbname == NULL) { in find_db_spec()
197 ctx->config.dbname = strdup(hdb_default_db(context)); in find_db_spec()
198 if (ctx->config.dbname == NULL) in find_db_spec()
256 (*ctx)->config.dbname = strdup(params->dbname); in _kadm5_s_init_context()
257 if ((*ctx)->config.dbname == NULL) in _kadm5_s_init_context()
/netbsd-src/usr.sbin/services_mkdb/
H A Dservices_mkdb.c72 const char *dbname = NULL; in main() local
89 dbname = optarg; in main()
125 if (dbname == NULL) in main()
126 dbname = use_db ? _PATH_SERVICES_DB : _PATH_SERVICES_CDB; in main()
133 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname); in main()
167 if (rename(tname, dbname) == -1) in main()
168 err(1, "Cannot rename `%s' to `%s'", tname, dbname); in main()
/netbsd-src/external/ibm-public/postfix/dist/src/tls/
H A Dtls_scache.c470 TLS_SCACHE *tls_scache_open(const char *dbname, const char *cache_label, in tls_scache_open() argument
480 msg_info("open %s TLS cache %s", cache_label, dbname); in tls_scache_open()
490 dict = dict_open(dbname, O_RDWR | O_CREAT | O_TRUNC, DICT_FLAGS); in tls_scache_open()
496 msg_fatal("dictionary %s does not support update operations", dbname); in tls_scache_open()
498 msg_fatal("dictionary %s does not support delete operations", dbname); in tls_scache_open()
500 msg_fatal("dictionary %s does not support sequence operations", dbname); in tls_scache_open()
/netbsd-src/external/bsd/blocklist/bin/
H A Dblocklistctl.c82 const char *dbname = _PATH_BLSTATE; in main() local
110 dbname = optarg; in main()
128 db = state_open(dbname, O_RDONLY, 0); in main()
130 err(EXIT_FAILURE, "Can't open `%s'", dbname); in main()
H A Dstate.c75 state_open(const char *dbname, int flags, mode_t perm) in state_open() argument
83 db = dbopen(dbname, flags, perm, DB_HASH, &openinfo); in state_open()
87 (*lfun)(LOG_ERR, "%s: can't open `%s' (%m)", __func__, dbname); in state_open()
/netbsd-src/crypto/external/bsd/heimdal/dist/tests/db/
H A Dkrb5.conf.in13 dbname = @type@@objdir@/label-db
18 dbname = @type@@objdir@/lable2-db
23 dbname = @type@@objdir@/current-db
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Ddict_pgsql.c143 char *dbname; member
330 dict_pgsql->dbname, in dict_pgsql_lookup()
409 static HOST *dict_pgsql_get_active(PLPGSQL *PLDB, char *dbname, char *encoding, in dict_pgsql_get_active() argument
441 plpgsql_connect_single(host, dbname, encoding, username, password); in dict_pgsql_get_active()
470 char *dbname, in plpgsql_query() argument
480 while ((host = dict_pgsql_get_active(PLDB, dbname, encoding, username, password)) != NULL) { in plpgsql_query()
575 static void plpgsql_connect_single(HOST *host, char *dbname, char *encoding, char *username, char *… in plpgsql_connect_single() argument
581 dbname, username, password); in plpgsql_connect_single()
638 dict_pgsql->dbname = cfg_get_str(p, "dbname", "", 1, 0); in pgsql_parse_config()
810 myfree(dict_pgsql->dbname); in dict_pgsql_close()
/netbsd-src/usr.bin/tic/
H A Dtic.c570 write_database(const char *dbname) in write_database() argument
585 easprintf(&tmp_dbname, "%s.XXXXXX", dbname); in write_database()
600 if (rename(tmp_dbname, dbname)) in write_database()
601 err(EXIT_FAILURE, "renaming %s to %s failed", tmp_dbname, dbname); in write_database()
610 char *source, *dbname, *buf, *ofile; in main() local
702 easprintf(&dbname, "%s.cdb", source); in main()
704 dbname = ofile; in main()
705 write_database(dbname); in main()
709 nterm, nalias, dbname); in main()
712 free(dbname); in main()
/netbsd-src/share/examples/puffs/pgfs/
H A Dmount.c78 const char *dbname = NULL; in main() local
113 dbname = xstrcpy(getmntoptstr(mp, "dbname")); in main()
161 error = pgfs_connectdb(pu, dbname, dbuser, debug, dosync, nconn); in main()
162 free(__UNCONST(dbname)); in main()
/netbsd-src/lib/libc/citrus/
H A Dcitrus_aliasname_local.h33 __unaliasname(const char *dbname, const char *alias, in __unaliasname() argument
36 return _lookup_simple(dbname, alias, in __unaliasname()
/netbsd-src/tests/lib/libc/db/
H A Dt_db_hash_seq.c102 state_open(const char *dbname, int flags, mode_t perm) in state_open() argument
106 db = dbopen(dbname, flags, perm, DB_HASH, &openinfo); in state_open()
111 dbname ? dbname : "<memory>"); in state_open()
/netbsd-src/usr.sbin/netgroup_mkdb/
H A Dnetgroup_mkdb.c93 static const char *dbname = _PATH_NETGROUP_DB; variable
112 dbname = optarg; in main()
162 (void)snprintf(buf, sizeof(buf), "%s.tmp", dbname); in main()
176 if (rename(buf, dbname) == -1) in main()
177 err(1, "Cannot rename `%s' to `%s'", buf, dbname); in main()
190 (void)snprintf(buf, sizeof(buf), "%s.tmp", dbname); in cleanup()
/netbsd-src/usr.bin/passwd/
H A Dpasswd.c62 const char *dbname; member
137 if (pwm->argv0 == NULL && pwm->dbname == NULL && in main()
153 if (ch == 'd' && pwm->dbname != NULL && in main()
154 strcmp(pwm->dbname, optarg) == 0) { in main()
/netbsd-src/external/mpl/bind/dist/contrib/dlz/modules/sqlite3/
H A Ddlz_sqlite3_dynamic.c
/netbsd-src/external/bsd/file/dist/src/
H A Dapprentice.c3288 char *dbname = NULL; in apprentice_map() local
3299 dbname = mkdbname(ms, fn, 0); in apprentice_map()
3300 if (dbname == NULL) in apprentice_map()
3303 if ((fd = open(dbname, O_RDONLY|O_BINARY)) == -1) in apprentice_map()
3307 file_error(ms, errno, "cannot stat `%s'", dbname); in apprentice_map()
3311 file_error(ms, 0, "file `%s' is too %s", dbname, in apprentice_map()
3321 file_error(ms, errno, "cannot map `%s'", dbname); in apprentice_map()
3338 if (check_buffer(ms, map, dbname) != 0) { in apprentice_map()
3343 file_error(ms, errno, "cannot mprotect `%s'", dbname); in apprentice_map()
3348 free(dbname); in apprentice_map()
[all …]
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_cscope.c211 const char *dbname; in cscope_add() local
260 dbname = CSCOPE_DBFILE; in cscope_add()
263 dbname = npp + 1; in cscope_add()
265 dbname = np; in cscope_add()
282 if (run_cscope(sp, csc, dbname)) in cscope_add()
378 run_cscope(SCR *sp, CSC *csc, const char *dbname) in run_cscope() argument
416 CSCOPE_CMD_FMT, csc->dname, dbname); in run_cscope()

123