Searched defs:tfname (Results 1 - 7 of 7) sorted by relevance
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | tmpfile.c | 43 char tfname[L_tmpnam]; local 46 (void) tmpnam(tfname); 47 if((p = fopen(tfname, "w+")) == NULL) 50 (void) unlink(tfname);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | tmpfile.c | 59 char tfname[L_tmpnam]; local 65 (void) strcpy(tfname, P_tmpdir); 67 (void) strcat(tfname, seed); 68 (void) strcat(tfname, XS); 79 if ((mkret = mkstemp64(tfname)) == -1) 83 if ((mkret = mkstemp(tfname)) == -1) 86 (void) unlink(tfname);
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_temp.c | 45 unsigned char tfname[PATH_MAX+1]; variable 77 CP(tfname, svalue(vi_DIRECTORY)); 78 if (stat64((char *)tfname, &stbuf)) { 81 filioerr(tfname); 91 CP(tempname, tfname); 94 (void) strcat(tfname, "/ExXXXXXX"); 95 if ((tfile = mkstemp((char *)tfname)) < 0) 145 unlink((char *)tfname); 256 filioerr(tfname); 264 filioerr(tfname); [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.c | 317 conf_open(const char *cfname, const char *tfname, struct opts *cliopts) argument 324 Timesname = tfname;
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | at.c | 139 static char *tfname; variable 357 tfname = xmalloc(tflen); 358 snprintf(tfname, tflen, "%s/%s%d", ATDIR, TMPFILE, getpid()); 369 if ((fd = open(tfname, O_CREAT|O_EXCL|O_WRONLY, ATMODE)) < 0) 371 if (chown(tfname, user, getgid()) == -1) { 372 unlink(tfname); 387 unlink(tfname); 397 while (rename(tfname, job = mkjobname(when)) == -1) { 400 unlink(tfname); 404 unlink(tfname); [all...] |
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 239 static char *tfname; variable 470 if ((tfname = tempnam("", "ea")) == NULL) { 1608 unlink(tfname); 1786 (void) unlink(tfname); 1800 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR, 2737 * Set p1 to point to basename of tfname. 2739 p1 = strrchr(tfname, '/'); 2740 if (strlen(tfname) > (size_t)6) 2741 p1 = &tfname[strlen(tfname) [all...] |
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 620 static char tfname[1024]; variable 9252 (void) rename(tfname, usefile); 9312 (void) strcpy(tfname, usefile); 9315 strlcat(tfname, gsuffix[0], sizeof (tfname)); 9320 strlcat(tfname, gsuffix[6], sizeof (tfname)); 9325 strlcat(tfname, bsuffix[0], sizeof (tfname)); 9330 strlcat(tfname, xsuffi [all...] |
Completed in 93 milliseconds