Home
last modified time | relevance | path

Searched refs:dirfile (Results 1 – 6 of 6) sorted by relevance

/freebsd-13-stable/sbin/restore/
HDdirs.c110 static char dirfile[MAXPATHLEN] = "#"; /* No file */ variable
143 (void) snprintf(dirfile, sizeof(dirfile), "%s/rstdir%jd", tmpdir, in extractdirs()
146 (void) strcat(dirfile, "-XXXXXX"); in extractdirs()
147 fd = mkstemp(dirfile); in extractdirs()
149 fd = open(dirfile, O_RDWR|O_CREAT|O_EXCL, 0666); in extractdirs()
153 warn("%s: cannot create directory database", dirfile); in extractdirs()
188 fail_dirtmp(dirfile); in extractdirs()
189 dirp = opendirfile(dirfile); in extractdirs()
397 fail_dirtmp(dirfile); in putent()
413 fail_dirtmp(dirfile); in flushent()
[all …]
/freebsd-13-stable/contrib/less/
HDcmdbuf.c1373 name = dirfile(lgetenv("XDG_STATE_HOME"), &LESSHISTFILE[1], must_exist); in histfile_find()
1376 char *dir = dirfile(home, ".local/state", 1); in histfile_find()
1379 name = dirfile(dir, &LESSHISTFILE[1], must_exist); in histfile_find()
1384 name = dirfile(lgetenv("XDG_DATA_HOME"), &LESSHISTFILE[1], must_exist); in histfile_find()
1386 name = dirfile(home, LESSHISTFILE, must_exist); in histfile_find()
HDfilename.c240 public char * dirfile(constant char *dirname, constant char *filename, int must_exist) in dirfile() function
282 pathname = dirfile(lgetenv("HOME"), filename, 1); in homefile()
287 pathname = dirfile(lgetenv("INIT"), filename, 1); in homefile()
HDdecode.c1057 filename = dirfile(xdg, &def_filename[1], 1); in add_hometable()
1063 char *cfg_dir = dirfile(home, ".config", 0); in add_hometable()
1064 filename = dirfile(cfg_dir, &def_filename[1], 1); in add_hometable()
HDfuncs.h156 public char * dirfile(constant char *dirname, constant char *filename, int must_exist);
/freebsd-13-stable/contrib/sendmail/src/
HDmap.c1691 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) ||