HomeSort by: relevance | last modified time | path
    Searched defs:tempfile (Results 1 - 7 of 7) sorted by relevancy

  /src/lib/libutil/
pidlock.c 51 char tempfile[MAXPATHLEN]; local in function:pidlock
81 if (snprintf(tempfile, sizeof(tempfile), "%s.%d.%s", lockfile,
82 (int) getpid(), hostname) >= (int)sizeof(tempfile)) {
88 if ((f = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC, 0600)) == -1)
118 while (link(tempfile, lockfile) == -1) {
160 * to our tempfile (reference count is two).
162 if (stat(tempfile, &st) == -1)
167 (void)unlink(tempfile);
176 (void)unlink(tempfile);
    [all...]
  /src/usr.sbin/tpctl/
data.c 260 char *p, tempfile[MAXPATHLEN + 1]; local in function:write_data
267 strncpy(tempfile, filename, MAXPATHLEN);
268 tempfile[MAXPATHLEN] = '\0';
269 if ((p = strrchr(tempfile, '/')) == NULL) {
270 strcpy(tempfile, TPCTL_TMP_FILENAME);
274 p - tempfile + strlen(TPCTL_TMP_FILENAME))
276 strcat(tempfile, TPCTL_TMP_FILENAME);
278 if ((fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0644)) < 0) {
280 getprogname(), tempfile);
307 if (rename(tempfile, filename) < 0)
    [all...]
  /src/usr.bin/rdist/
main.c 62 char tempfile[sizeof _PATH_TMP + sizeof _RDIST_TMP + 1]; variable in typeref:typename:char[]
104 strlcpy(tempfile, _PATH_TMP, sizeof(tempfile));
105 strlcat(tempfile, _RDIST_TMP, sizeof(tempfile));
106 if ((tempname = strrchr(tempfile, '/')) != 0)
109 tempname = tempfile;
201 fd = mkstemp(tempfile);
208 unlink(tempfile);
223 unlink(tempfile);
    [all...]
  /src/sbin/ldconfig/
ldconfig.c 383 char *tempfile; local in function:buildhints
461 tempfile = concat(_PATH_LD_HINTS, ".XXXXXX", "");
462 if ((fd = mkstemp(tempfile)) == -1) {
463 warn("%s", tempfile);
496 if (rename(tempfile, _PATH_LD_HINTS) != 0) {
  /src/bin/pax/
pax.c 113 char *tempfile; /* tempfile to use for mkstemp(3) */ variable in typeref:typename:char *
114 char *tempbase; /* basename of tempfile to use for mkstemp(3) */
290 tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE));
291 if (tempfile == NULL) {
296 memcpy(tempfile, tmpdir, tdlen);
297 tempbase = tempfile + tdlen;
  /src/lib/libedit/
vi.c 1007 char tempfile[] = "/tmp/histedit.XXXXXXXXXX"; local in function:vi_histedit
1020 fd = mkstemp(tempfile);
1044 execlp(editor, editor, tempfile, (char *)NULL);
1069 unlink(tempfile);
1076 unlink(tempfile);
  /src/usr.sbin/lpr/lpd/
printjob.c 116 static char tempfile[] = "errsXXXXXX"; /* file name for filter output */ variable in typeref:typename:char[]
211 if ((fd = mkstemp(tempfile)) != -1) {
213 (void)unlink(tempfile);
316 (void)unlink(tempfile);
733 unlink(tempfile);
734 n = open(tempfile, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0664);
766 if ((fp = fopen(tempfile, "r")) != NULL) {
1171 if (stat(tempfile, &stb) < 0 || stb.st_size == 0 ||
1172 (fp = fopen(tempfile, "r")) == NULL) {
1251 (void)unlink(tempfile);
    [all...]

Completed in 16 milliseconds