/original-bsd/usr.sbin/amd/config/ |
H A D | mtab_file.c | 248 char tmpname[64]; local 255 bcopy(mcp, tmpname, cp - mcp); 256 tmpname[cp-mcp] = '\0'; 259 tmpname[0] = '.'; tmpname[1] = '\0'; 261 strcat(tmpname, "/mtabXXXXXX"); 262 mktemp(tmpname); 270 plog(XLOG_ERROR, "%s: open: %m", tmpname); 278 mfp = setmntent(tmpname, "w"); 292 plog(XLOG_ERROR, "Can't write entry to %s", tmpname); 316 if (rename(tmpname, mtab) < 0) { [all …]
|
/original-bsd/old/dbx/ |
H A D | makedefs.c | 46 String tmpname; variable 78 tmpname = argv[index + 1]; 80 tmpname = mktemp(_PATH_TMP); 82 tmp = freopen(tmpname, "w", stdout); 84 fatal("can't write %s", tmpname); 95 r = call("cmp", stdin, stderr, "-s", tmpname, argv[2], nil); 97 r = call("cp", stdin, stderr, tmpname, argv[2], nil); 102 unlink(tmpname); 198 unlink(tmpname);
|
/original-bsd/libexec/bugfiler/ |
H A D | bugfiler.c | 37 tmpname[sizeof(TMP_BUG) + 5]; /* temp bug file */ variable 99 (void)unlink(tmpname); 115 (void)strcpy(tmpname, TMP_BUG); in make_copy() 116 if (tfd = mkstemp(tmpname)) { in make_copy() 123 error("can't make copy using %s.", tmpname); in make_copy()
|
H A D | gethead.c | 68 if (!freopen(tmpname, "r", stdin)) 69 error("can't read temporary bug file %s.", tmpname);
|
H A D | error.c | 50 fprintf(stderr, "\t%s\n\t", tmpname);
|
H A D | bug.h | 66 tmpname[sizeof(TMP_BUG) + 5]; /* temp bug file */
|
/original-bsd/local/toolchest/ksh/sh/ |
H A D | suid_exec.c | 66 static char tmpname[] = "/tmp/SUIDXXXXXX"; variable 96 mktemp(tmpname); 97 if(strcmp(p,tmpname)==0) 106 if(stat(tmpname,&statb) < 0) 233 unlink(tmpname); in error() 307 if((n=creat(tmpname,mode|SPECIAL)) < 0) in setids() 310 if(chown(tmpname,owner,group) < 0) in setids() 331 if(unlink(tmpname) >= 0) in setids() 341 arglist[0] = tmpname; in setids() 351 execv(tmpname,arglist); in setids()
|
/original-bsd/usr.bin/wall/ |
H A D | wall.c | 108 char *p, *whom, hostname[MAXHOSTNAMELEN], lbuf[100], tmpname[15]; local 111 (void)strcpy(tmpname, _PATH_TMP); 112 (void)strcat(tmpname, "/wall.XXXXXX"); 113 if (!(fd = mkstemp(tmpname)) || !(fp = fdopen(fd, "r+"))) { 117 (void)unlink(tmpname);
|
/original-bsd/bin/pax/ |
H A D | pat_rep.c | 703 char tmpname[PAXPATHLEN+2]; local 719 if (tty_read(tmpname, sizeof(tmpname)) < 0) 721 if (strcmp(tmpname, "..") == 0) { 725 if (strlen(tmpname) > PAXPATHLEN) { 735 if (tmpname[0] == '\0') { 739 if ((tmpname[0] == '.') && (tmpname[1] == '\0')) { 749 tty_prnt("Processing continues, name changed to: %s\n", tmpname); 750 res = add_name(arcn->name, arcn->nlen, tmpname); 751 arcn->nlen = l_strncpy(arcn->name, tmpname, PAXPATHLEN+1);
|
/original-bsd/local/ukc/dump/ |
H A D | dumptape.c | 391 char tmpname[20]; local 393 strcpy(tmpname, "/tmp/dumplockXXXXXX"); 394 mktemp(tmpname); 395 if ((fd[1] = creat(tmpname, 0400)) < 0) { 397 perror(tmpname); 400 if ((fd[0] = open(tmpname, 0)) < 0) { 402 perror(tmpname); 405 unlink(tmpname);
|
/original-bsd/usr.bin/pascal/libpc/ |
H A D | GETNAME.c | 26 static char *tmpname = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; variable 119 sprintf(filep->fname, "#tmp.%c%d", tmpname[filep->fblk],
|