/titanic_50/usr/src/lib/libc/port/stdio/ |
H A D | tmpfile.c | 59 char tfname[L_tmpnam]; in _common() local 65 (void) strcpy(tfname, P_tmpdir); in _common() 67 (void) strcat(tfname, seed); in _common() 68 (void) strcat(tfname, XS); in _common() 79 if ((mkret = mkstemp64(tfname)) == -1) in _common() 83 if ((mkret = mkstemp(tfname)) == -1) in _common() 86 (void) unlink(tfname); in _common()
|
/titanic_50/usr/src/lib/libbc/libc/stdio/common/ |
H A D | tmpfile.c | 43 char tfname[L_tmpnam]; in tmpfile() local 46 (void) tmpnam(tfname); in tmpfile() 47 if((p = fopen(tfname, "w+")) == NULL) in tmpfile() 50 (void) unlink(tfname); in tmpfile()
|
/titanic_50/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)); in fileinit() 78 if (stat64((char *)tfname, &stbuf)) { in fileinit() 81 filioerr(tfname); in fileinit() 91 CP(tempname, tfname); in fileinit() 94 (void) strcat(tfname, "/ExXXXXXX"); in fileinit() 95 if ((tfile = mkstemp((char *)tfname)) < 0) in fileinit() 145 unlink((char *)tfname); in cleanup() 256 filioerr(tfname); 264 filioerr(tfname); [all …]
|
H A D | ex_unix.c | 393 extern unsigned char tfname[]; in vi_filter() 401 tfile = open(tfname, 2); in vi_filter()
|
/titanic_50/usr/src/cmd/cron/ |
H A D | at.c | 139 static char *tfname; variable 357 tfname = xmalloc(tflen); in main() 358 snprintf(tfname, tflen, "%s/%s%d", ATDIR, TMPFILE, getpid()); in main() 369 if ((fd = open(tfname, O_CREAT|O_EXCL|O_WRONLY, ATMODE)) < 0) in main() 371 if (chown(tfname, user, getgid()) == -1) { in main() 372 unlink(tfname); in main() 387 unlink(tfname); in main() 397 while (rename(tfname, job = mkjobname(when)) == -1) { in main() 400 unlink(tfname); in main() 404 unlink(tfname); in main() [all …]
|
/titanic_50/usr/src/cmd/logadm/ |
H A D | conf.h | 34 int conf_open(const char *cfname, const char *tfname, struct opts *opts);
|
H A D | conf.c | 309 conf_open(const char *cfname, const char *tfname, struct opts *cliopts) in conf_open() argument 316 Timesname = tfname; in conf_open()
|
/titanic_50/usr/src/cmd/ed/ |
H A D | ed.c | 239 static char *tfname; variable 470 if ((tfname = tempnam("", "ea")) == NULL) { in main() 1608 unlink(tfname); in quit() 1786 (void) unlink(tfname); in init() 1800 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR, in init() 2739 p1 = strrchr(tfname, '/'); in mkfunny() 2740 if (strlen(tfname) > (size_t)6) in mkfunny() 2741 p1 = &tfname[strlen(tfname)-6]; in mkfunny()
|
/titanic_50/usr/src/cmd/tar/ |
H A D | tar.c | 620 static char tfname[1024]; variable 9251 (void) rename(tfname, usefile); in compress_back() 9311 (void) strcpy(tfname, usefile); in add_suffix() 9314 strlcat(tfname, gsuffix[0], sizeof (tfname)); in add_suffix() 9319 strlcat(tfname, gsuffix[6], sizeof (tfname)); in add_suffix() 9324 strlcat(tfname, bsuffix[0], sizeof (tfname)); in add_suffix() 9329 strlcat(tfname, xsuffix[0], sizeof (tfname)); in add_suffix() 9346 (void) rename(usefile, tfname); in decompress_file() 9356 tfname, NULL); in decompress_file()
|