| /src/usr.sbin/kvm_mkdb/ |
| kvm_mkdb.c | 105 static char *dbname = NULL; variable 119 dbname = optarg; 132 if (dbname == NULL) { 133 dbname = _PATH_KVMDB; 135 } else if (strncmp(_PATH_KVMDB, dbname, sizeof(_PATH_KVMDB)) == 0) { 161 (void)snprintf(dbtemp, sizeof(dbtemp), "%s.tmp", dbname); 174 if (rename(dbtemp, dbname)) { 175 warn("rename %s to %s", dbtemp, dbname);
|
| /src/crypto/external/bsd/heimdal/dist/lib/kadm5/ |
| init_s.c | 51 char *dbname; local 60 dbname = realm_params->dbname; 62 dbname = ctx->config.dbname; 69 assert(dbname != NULL); 79 ret = hdb_create(ctx->context, &ctx->db, dbname);
|
| ipropd_slave.c | 502 char *dbname; local 507 ret = asprintf(&dbname, "%s-NEW", server_context->db->hdb_name); 510 ret = hdb_create(context, &mydb, dbname); 513 free(dbname);
|
| admin.h | 228 char *dbname; member in struct:_kadm5_config_params
|
| /src/external/bsd/blocklist/bin/ |
| blocklistctl.c | 69 "Usage: %s dump [-abdnrw] [-D dbname]\n", getprogname()); 85 const char *dbname = _PATH_BLSTATE; local 113 dbname = optarg; 131 db = state_open(dbname, O_RDONLY, 0); 133 err(EXIT_FAILURE, "Can't open `%s'", dbname);
|
| /src/share/examples/puffs/pgfs/ |
| mount.c | 78 const char *dbname = NULL; local 83 { .m_option = "dbname", .m_inverse = 0, 113 dbname = xstrcpy(getmntoptstr(mp, "dbname")); 161 error = pgfs_connectdb(pu, dbname, dbuser, debug, dosync, nconn); 162 free(__UNCONST(dbname));
|
| /src/usr.bin/passwd/ |
| passwd.c | 62 const char *dbname; member in struct:pw_module_s 137 if (pwm->argv0 == NULL && pwm->dbname == NULL && 153 if (ch == 'd' && pwm->dbname != NULL && 154 strcmp(pwm->dbname, optarg) == 0) { 156 * "passwd -d dbname" matches; this is our
|
| /src/usr.sbin/services_mkdb/ |
| services_mkdb.c | 72 const char *dbname = NULL; local 89 dbname = optarg; 125 if (dbname == NULL) 126 dbname = use_db ? _PATH_SERVICES_DB : _PATH_SERVICES_CDB; 133 (void)snprintf(tname, sizeof(tname), "%s.tmp", dbname); 167 if (rename(tname, dbname) == -1) 168 err(1, "Cannot rename `%s' to `%s'", tname, dbname);
|
| /src/crypto/external/bsd/heimdal/dist/kdc/ |
| config.c | 44 char *dbname; member in struct:dbinfo
|
| /src/crypto/external/bsd/heimdal/dist/lib/hdb/ |
| dbinfo.c | 41 char *dbname; member in struct:hdb_dbinfo 60 p = krb5_config_get_string(context, db_binding, "dbname", NULL); 70 di->dbname = strdup(p); 148 if (di->dbname == NULL) { 149 di->dbname = strdup(default_dbname); 154 p = strrchr(di->dbname, '.'); 157 ret = asprintf(&di->mkey_file, "%s.mkey", di->dbname); 162 (int)(p - di->dbname), di->dbname); 200 return dbp->dbname; [all...] |
| keytab.c | 41 char *dbname; member in struct:hdb_data 72 d->dbname = NULL; 74 d->dbname = strdup(name); 75 if(d->dbname == NULL) { 83 d->dbname = malloc(mkey - db + 1); 84 if(d->dbname == NULL) { 89 memmove(d->dbname, db, mkey - db); 90 d->dbname[mkey - db] = '\0'; 94 free(d->dbname); 109 free(d->dbname); 189 const char *dbname = d->dbname; local 274 const char *dbname = d->dbname; local [all...] |
| /src/usr.sbin/netgroup_mkdb/ |
| netgroup_mkdb.c | 93 static const char *dbname = _PATH_NETGROUP_DB; variable 112 dbname = optarg; 162 (void)snprintf(buf, sizeof(buf), "%s.tmp", dbname); 176 if (rename(buf, dbname) == -1) 177 err(1, "Cannot rename `%s' to `%s'", buf, dbname); 190 (void)snprintf(buf, sizeof(buf), "%s.tmp", dbname);
|
| /src/external/ibm-public/postfix/dist/src/global/ |
| dict_mongodb.c | 119 char *dbname; /* Database name */ member in struct:__anon23073 165 dict_mongodb->dbname = cfg_get_str(p, "dbname", NULL, 1, 0); 383 dict_mongodb->dbname, 388 dict_mongodb->collection, dict_mongodb->dbname); 481 myfree(dict_mongodb->dbname);
|
| dict_pgsql.c | 133 char *non_uri_target; /* require dbname to be specified */ 145 char *dbname; member in struct:__anon23079 575 dict_pgsql->dbname, dict_pgsql->username, 633 dict_pgsql->dbname = cfg_get_str(p, "dbname", "", 0, 0); 734 && dict_pgsql->dbname[0] != 0) 735 msg_info("%s:%s table ignores 'dbname' field -- " 738 if (dict_pgsql->pldb->non_uri_target && dict_pgsql->dbname[0] == 0) { 742 "%s:%s host target '%s' requires dbname setting", 831 myfree(dict_pgsql->dbname); [all...] |
| dict_mysql.c | 164 char *dbname; member in struct:__anon23076 642 dict_mysql->dbname, 695 dict_mysql->dbname = cfg_get_str(p, "dbname", "", 1, 0); 879 myfree(dict_mysql->dbname);
|
| /src/external/mpl/bind/dist/lib/isccfg/ |
| aclconf.c | 289 const char *dbname) { 290 if (dbname == NULL) { 296 if (strcasecmp(dbname, "city") == 0) { 298 } else if (strcasecmp(dbname, "country") == 0) { 306 if (strcasecmp(dbname, "city") == 0) { 308 } else if (strcasecmp(dbname, "country") == 0) { 316 if (strcasecmp(dbname, "city") == 0) { 318 } else if (strcasecmp(dbname, "country") == 0) { 326 if (strcasecmp(dbname, "city") == 0) { 328 } else if (strcasecmp(dbname, "country") == 0) 475 const char *dbname = NULL; local [all...] |
| /src/external/mpl/dhcp/bind/dist/lib/isccfg/ |
| aclconf.c | 294 const char *dbname) { 295 if (dbname == NULL) { 301 if (strcasecmp(dbname, "city") == 0) { 303 } else if (strcasecmp(dbname, "country") == 0) { 311 if (strcasecmp(dbname, "city") == 0) { 313 } else if (strcasecmp(dbname, "country") == 0) { 321 if (strcasecmp(dbname, "city") == 0) { 323 } else if (strcasecmp(dbname, "country") == 0) { 331 if (strcasecmp(dbname, "city") == 0) { 333 } else if (strcasecmp(dbname, "country") == 0) 480 const char *dbname = NULL; local [all...] |
| /src/usr.bin/tic/ |
| tic.c | 570 write_database(const char *dbname) 585 easprintf(&tmp_dbname, "%s.XXXXXX", dbname); 600 if (rename(tmp_dbname, dbname)) 601 err(EXIT_FAILURE, "renaming %s to %s failed", tmp_dbname, dbname); 610 char *source, *dbname, *buf, *ofile; local 702 easprintf(&dbname, "%s.cdb", source); 704 dbname = ofile; 705 write_database(dbname); 709 nterm, nalias, dbname); 712 free(dbname); [all...] |
| /src/usr.sbin/pwd_mkdb/ |
| pwd_mkdb.c | 151 char dbname[MAX(MAXPATHLEN, LINE_MAX * 2)]; member in struct:pwddb 199 wr_error(db->dbname); 203 opendb(struct pwddb *db, const char *dbname, const char *username, 208 (void)snprintf(db->dbname, sizeof(db->dbname), "%s%s.tmp", prefix, 209 dbname); 212 (void)snprintf(buf, sizeof(buf), "%s%s", prefix, dbname); 213 cp(buf, db->dbname, perm); 216 db->db = dbopen(db->dbname, flags, perm, DB_HASH, &openinfo); 218 mkpw_error("Cannot open `%s'", db->dbname); [all...] |
| /src/external/bsd/nvi/dist/ex/ |
| ex_cscope.c | 211 const char *dbname; local 260 dbname = CSCOPE_DBFILE; 263 dbname = npp + 1; 265 dbname = np; 282 if (run_cscope(sp, csc, dbname)) 378 run_cscope(SCR *sp, CSC *csc, const char *dbname) 416 CSCOPE_CMD_FMT, csc->dname, dbname);
|
| /src/external/bsd/openldap/dist/libraries/liblmdb/ |
| mplay.c | 347 char *dbname; local 352 dbname = strchr(ptr+SOFF("mdb_dbi_open"), ','); 353 dbname += 2; 354 ptr = strchr(dbname, ','); 356 if (!strcmp(dbname, "(null)")) 357 dbname = NULL; 360 E(mdb_dbi_open(tp->rtxn, dbname, flags, &dbi));
|
| /src/crypto/external/bsd/heimdal/dist/lib/base/ |
| db.c | 128 heim_string_t dbname; member in struct:heim_db_data 257 heim_release(db->dbname); 266 const char *dbname; member in struct:dbtype_iter 285 iter_ctx->dbname, iter_ctx->options, 308 * @param dbname Name of DB (likely a file path) 318 heim_db_create(const char *dbtype, const char *dbname, 344 struct dbtype_iter iter_ctx = { NULL, dbname, options, error}; 395 ret = plug->openf(plug->data, dbtype, dbname, options, &db->db_data, error); 401 dbname); 413 db->dbname = heim_string_create(dbname) 1312 heim_string_t dbname; member in struct:json_db [all...] |
| /src/external/bsd/file/dist/src/ |
| apprentice.c | 3288 char *dbname = NULL; local 3299 dbname = mkdbname(ms, fn, 0); 3300 if (dbname == NULL) 3303 if ((fd = open(dbname, O_RDONLY|O_BINARY)) == -1) 3307 file_error(ms, errno, "cannot stat `%s'", dbname); 3311 file_error(ms, 0, "file `%s' is too %s", dbname, 3321 file_error(ms, errno, "cannot map `%s'", dbname); 3338 if (check_buffer(ms, map, dbname) != 0) { 3343 file_error(ms, errno, "cannot mprotect `%s'", dbname); 3348 free(dbname); 3425 char *dbname; local [all...] |