Searched refs:dirfile (Results 1 – 6 of 6) sorted by relevance
/freebsd/sbin/restore/ |
H A D | dirs.c | 104 static char dirfile[MAXPATHLEN] = "#"; /* No file */ variable 137 (void) snprintf(dirfile, sizeof(dirfile), "%s/rstdir%jd", tmpdir, in extractdirs() 140 (void) strcat(dirfile, "-XXXXXX"); in extractdirs() 141 fd = mkstemp(dirfile); in extractdirs() 143 fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666); in extractdirs() 147 warn("%s: cannot create directory database", dirfile); in extractdirs() 182 fail_dirtmp(dirfile); in extractdirs() 183 dirp = opendirfile(dirfile); in extractdirs() 391 fail_dirtmp(dirfile); in putent() 407 fail_dirtmp(dirfile); in flushent() [all …]
|
/freebsd/contrib/less/ |
H A D | cmdbuf.c | 1373 name = dirfile(lgetenv("XDG_STATE_HOME"), &LESSHISTFILE[1], must_exist); in histfile_name() 1376 char *dir = dirfile(home, ".local/state", 1); in histfile_name() 1379 name = dirfile(dir, &LESSHISTFILE[1], must_exist); in histfile_name() 1384 name = dirfile(lgetenv("XDG_DATA_HOME"), &LESSHISTFILE[1], must_exist); in histfile_name() 1386 name = dirfile(home, LESSHISTFILE, must_exist); in histfile_name()
|
H A D | decode.c | 1057 filename = dirfile(xdg, &def_filename[1], 1); 1063 char *cfg_dir = dirfile(home, ".config", 0); 1064 filename = dirfile(cfg_dir, &def_filename[1], 1);
|
H A D | filename.c | 240 public char * dirfile(constant char *dirname, constant char *filename, int must_exist) in dirfile() 282 pathname = dirfile(lgetenv("HOME"), filename, 1); in homefile() 287 pathname = dirfile(lgetenv("INIT"), filename, 1); 215 public char * dirfile(char *dirname, char *filename, int must_exist) dirfile() function
|
H A D | funcs.h | 156 public char * dirfile(constant char *dirname, constant char *filename, int must_exist);
|
/freebsd/contrib/sendmail/src/ |
H A D | map.c | 1691 char dirfile[MAXPATHLEN]; local 1703 if (sm_strlcpyn(dirfile, sizeof(dirfile), 2, 1704 map->map_file, ".dir") >= sizeof(dirfile) || 1731 ret = safefile(dirfile, RunAsUid, RunAsGid, RunAsUserName, 1787 dirfd = safeopen(dirfile, mode, DBMMODE, sff); 1870 if (filechanged(dirfile, dfd, &std) ||
|