Searched refs:dbpath (Results 1 - 5 of 5) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/etc/cnid_dbd/ |
H A D | cmd_dbd.c | 105 static char dbpath[MAXPATHLEN+1]; /* Path to the dbd database */ variable 328 /* Enuser dbpath is there, create if necessary */ 332 dbd_log( LOGSTD, "Can't stat dbpath \"%s\": %s", volinfo.v_dbpath, strerror(errno)); 336 dbd_log( LOGSTD, "Can't create dbpath \"%s\": %s", dbpath, strerror(errno)); 346 strncpy(dbpath, volinfo.v_dbpath, MAXPATHLEN - strlen("/.AppleDB")); 347 strcat(dbpath, "/.AppleDB"); 349 /* Check or create dbpath */ 350 int dbdirfd = open(dbpath, O_RDONLY); 353 if ((mkdir(dbpath, 075 [all...] |
H A D | main.c | 314 char dbpath[MAXPATHLEN+1]; local 319 strncpy(dbpath, volinfo.v_dbpath, MAXPATHLEN - strlen("/.AppleDB")); 320 strcat(dbpath, "/.AppleDB"); 331 LOG(log_debug, logtype_cnid, "db dir: \"%s\"", dbpath); 333 switch_to_user(dbpath); 336 if ((db_locked = get_lock(LOCK_EXCL, dbpath)) == -1) { 350 chdir(dbpath); 352 if ((db_locked = get_lock(LOCK_EXCL, dbpath)) != LOCK_EXCL) { 363 if ((dbp = db_param_read(dbpath)) == NULL) 367 if (NULL == (dbd = dbif_init(dbpath, "cnid [all...] |
H A D | dbif.h | 96 extern int get_lock(int cmd, const char *dbpath);
|
H A D | dbif.c | 337 * @args dbpath (r) path to lockfile, only used on first call, 343 int get_lock(int cmd, const char *dbpath) argument 366 if ( (strlen(dbpath) + strlen(LOCKFILENAME+1)) > (PATH_MAX - 1) ) { 370 strncpy(lockpath, dbpath, PATH_MAX - 1); 379 if ((stat(dbpath, &st)) != 0) {
|
/netgear-R7000-V1.0.7.12_1.2.5/src/router/udev/ |
H A D | udev_db.c | 304 char dbpath[PATH_MAX]; local 307 strlcpy(dbpath, udev_root, sizeof(dbpath)); 308 strlcat(dbpath, "/"DB_DIR, sizeof(dbpath)); 309 dir = opendir(dbpath); 311 info("no udev_db available '%s': %s", dbpath, strerror(errno));
|
Completed in 120 milliseconds