Searched refs:tmpname (Results 1 - 7 of 7) sorted by relevance

/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c86 static char tmpname[] = "/tmp/SUIDXXXXXX"; variable
115 maketemp(tmpname);
116 if(strcmp(p,tmpname)==0)
138 if(stat(tmpname,&statb) < 0 || statb.st_nlink != 1 ||
377 * linked a valuable file to tmpname?
379 unlink(tmpname); /* should normally fail */
381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 ||
382 unlink(tmpname) < 0)
384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) <
[all...]
/ast/src/cmd/ksh93/edit/
H A Dhistory.c464 char *buff, *endbuff, *tmpname=0; local
474 tmpname = (char*)malloc(strlen(name)+14);
478 pathtmp(tmpname,name,"hist",NIL(int*));
482 pathtmp(tmpname,".","hist",NIL(int*));
483 if(rename(name,tmpname) < 0)
485 free(tmpname);
486 tmpname = name;
488 fd = open(tmpname,O_RDONLY);
490 if(tmpname==name)
491 tmpname
[all...]
/ast/src/cmd/nmake/
H A Dmisc.c439 tmpname[0] = dp->fmt;
440 tmpname[1] = 0;
441 value->s = tmpname;
H A Dtrap.c132 sfsprintf(tmpname, MAXNAME, "%lu", t ? (now + t) : t);
H A Dcommand.c1696 sfsprintf(tmpname, MAXNAME, "[%d]%s", job->cojob->id, job->cojob->id > 99 ? null : job->cojob->id > 9 ? " " : " ");
1698 sfsprintf(tmpname, MAXNAME, "[-] ");
1700 , tmpname
H A Dmain.c219 char tmpname[MAXNAME];/* temporary name buffer */ variable
H A Dmake.h913 extern char tmpname[]; /* temporary name buffer */

Completed in 33 milliseconds