/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | ulockf.c | 54 static char *tempfile; in mklock() local 57 tempfile = malloc(MAXNAMESIZE); in mklock() 58 if (tempfile == NULL) in mklock() 66 (void) unlink(tempfile); in mklock() 71 (void) unlink(tempfile); in mklock() 205 (void) unlink(tempfile); in onelock() 213 (void) unlink(tempfile); in onelock() 219 if (link(tempfile, name) < 0) { in onelock() 221 DEBUG(4, "link(%s, ", tempfile); in onelock() 223 if (unlink(tempfile) < 0) { in onelock() [all …]
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | sortbib.c | 75 error(tempfile); in main() 81 (void) unlink(tempfile); in main() 82 error(tempfile); in main() 88 (void) unlink(tempfile); in main() 134 error(tempfile); in sortbib() 150 (void) unlink(tempfile); in sortbib() 157 (void) unlink(tempfile); in sortbib() 173 sprintf(cmd, "sort +4f +0n +1n %s -o %s", tempfile, tempfile); in deliver() 175 (void) unlink(tempfile); in deliver() 185 (void) unlink(tempfile); in deliver() [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ulockf.c | 58 static char tempfile[MAXNAMESIZE]; in mklock() local 78 (void) unlink(tempfile); in mklock() 82 if (onelock(pid, tempfile, name)) { in mklock() 83 (void) unlink(tempfile); in mklock() 285 fd = creat(tempfile, (mode_t)0444); in onelock() 290 (void) unlink(tempfile); in onelock() 297 (void) unlink(tempfile); in onelock() 303 if (link(tempfile, name) < 0) { in onelock() 305 DEBUG(4, "link(%s, ", tempfile); in onelock() 307 if (unlink(tempfile) < 0) { in onelock() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ulockf.c | 64 static char tempfile[MAXNAMESIZE]; local 83 (void) unlink(tempfile); 88 (void) unlink(tempfile); 294 onelock(pid,tempfile,name) in onelock() argument 296 char *tempfile, *name; 306 (void) unlink(tempfile); 313 (void) unlink(tempfile); 319 if(link(tempfile,name)<0){ 321 DEBUG(4, "link(%s, ", tempfile); 323 if(unlink(tempfile)< 0){ [all …]
|
/illumos-gate/usr/src/cmd/tip/ |
H A D | uucplock.c | 83 static char tempfile[NAMESIZE]; in ulockf() local 88 (void) snprintf(tempfile, sizeof (tempfile), in ulockf() 93 (void) unlink(tempfile); in ulockf() 97 if (onelock(pid, tempfile, file)) { in ulockf() 98 (void) unlink(tempfile); in ulockf() 202 fd = creat(tempfile, 0444); in onelock() 218 (void) unlink(tempfile); in onelock() 226 (void) unlink(tempfile); in onelock() 231 if (link(tempfile, name) < 0) { in onelock() 232 (void) unlink(tempfile); in onelock() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | newvers.sh | 34 tempfile=$(mktemp tmp.XXXXXX) || exit 35 trap "rm -f $tempfile" EXIT INT TERM 40 echo "char bootprog_info[] = \"illumos/${3} ${2}, Revision ${r}\\\\n\";" > $tempfile 41 echo "unsigned bootprog_rev = ${r%%.*}${r##*.};" >> $tempfile 42 mv $tempfile vers.c
|
/illumos-gate/usr/src/lib/libmail/common/ |
H A D | maillock.c | 126 lock1(char tempfile[], char name[]) in lock1() argument 131 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600); in lock1() 145 if (link(tempfile, name) < 0) { in lock1() 146 (void) remove(tempfile); in lock1() 149 (void) remove(tempfile); in lock1()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/dtraceUtil/ |
H A D | tst.AddSearchPath.d.ksh | 69 tempfile=/tmp/test.h 70 echo "#define VALUE 1520" > $tempfile 81 /usr/bin/rm -f $tempfile
|
/illumos-gate/usr/src/cmd/man/ |
H A D | makewhatis.c | 84 static char tempfile[MAXPATHLEN]; /* path of temporary file, if any */ variable 195 if (tempfile[0] != '\0') in sbuf_need() 196 (void) unlink(tempfile); in sbuf_need() 293 if (tempfile[0] != '\0') in trap_signal() 294 (void) unlink(tempfile); in trap_signal() 309 (void) snprintf(tempfile, MAXPATHLEN, "%s.tmp", name); in open_output() 310 name = tempfile; in open_output() 346 (void) rename(tempfile, name); in finish_output() 347 (void) unlink(tempfile); in finish_output()
|
/illumos-gate/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 67 static char tempfile[32]; variable 330 temptr = maket(tempfile); in saverest() 348 if ((temptr = fopen(tempfile, "r")) == NULL) { in putsave() 350 "Can not open tempfile ('%s')", tempfile); fatal(Error); in putsave() 358 (void) unlink(tempfile); in putsave() 432 (void) unlink(tempfile); in clean_up()
|
/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | ProcessCheck.py | 34 import tempfile 49 tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+")
|
/illumos-gate/usr/src/cmd/sgs/m4/common/ |
H A D | m4.c | 89 tempfile = mktemp(tmp_name); in main() 90 (void) close(creat(tempfile, 0)); in main() 666 tempfile[7] = 'a'; in delexit() 667 (void) unlink(tempfile); in delexit() 708 tempfile[7] = 'a'+i; in undiv() 711 fp = xfopen(tempfile, "r"); in undiv() 724 (void) unlink(tempfile); in undiv()
|
H A D | m4ext.c | 102 char *tempfile; /* used for diversion files */ variable
|
H A D | m4.h | 125 extern char *tempfile;
|
H A D | m4macs.c | 140 tempfile[7] = 'a'+f; in dodiv() 141 if (ofile[f] || (ofile[f] = xfopen(tempfile, "w"))) { in dodiv()
|
/illumos-gate/usr/src/cmd/diff/ |
H A D | diff.h | 185 char tempfile[2][16]; /* used when comparing against std input */ variable
|
H A D | diff.c | 1949 (void) strcpy(tempfile[whichtemp++], template); in copytemp() 1958 return (tempfile[whichtemp-1]); in copytemp() 2033 if (whichtemp) (void) unlink(tempfile[0]); in done() 2034 if (whichtemp == 2) (void) unlink(tempfile[1]); in done()
|
/illumos-gate/usr/src/tools/scripts/ |
H A D | git-pbchk.py | 36 import tempfile 77 tmpfile = tempfile.TemporaryFile(prefix="git-nits", mode="w+b")
|
H A D | wsdiff.py | 79 import re, resource, select, shutil, signal, string, struct, sys, tempfile 121 import shlex, tempfile 122 f, fpath = tempfile.mkstemp()
|
/illumos-gate/usr/src/test/smbsrv-tests/cmd/ |
H A D | run_smbtorture.py | 28 from tempfile import TemporaryFile
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | default.cfg | 89 export TEMPFILE=${TEST_BASE_DIR%%/}/tempfile$$
|
/illumos-gate/usr/src/grub/grub-0.97/util/ |
H A D | grub-install.in | 46 if test -x /bin/tempfile; then
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_libscf.c | 221 static FILE *tempfile = NULL; variable 743 if (tempfile != NULL) { in remove_tempfile() 744 if (fclose(tempfile) == EOF) in remove_tempfile() 746 tempfile = NULL; in remove_tempfile() 14425 tempfile = fdopen(tmpfd, "r+"); in lscf_editprop() 14426 if (tempfile == NULL) { in lscf_editprop() 14437 if (write_edit_script(tempfile) == -1) { in lscf_editprop()
|
/illumos-gate/usr/src/grub/grub-0.97/ |
H A D | ChangeLog | 2039 * util/grub-install.in: Support using mktemp as well as tempfile 5943 /bin/tempfile if it is executable.
|