/titanic_51/usr/src/lib/libnsl/dial/ |
H A D | ulockf.c | 56 static char *tempfile; in mklock() local 59 tempfile = malloc(MAXNAMESIZE); in mklock() 60 if (tempfile == NULL) in mklock() 63 (void) snprintf(tempfile, MAXNAMESIZE, "%s/LTMP.%ld", X_LOCKDIR, in mklock() 67 if (onelock(pid, tempfile, name) == -1) { in mklock() 68 (void) unlink(tempfile); in mklock() 72 if (onelock(pid, tempfile, name)) { in mklock() 73 (void) unlink(tempfile); in mklock() 189 * tempfile - name of a temporary in the same file system 196 onelock(char *pid, char *tempfile, cha argument [all...] |
/titanic_51/usr/src/cmd/ttymon/ |
H A D | ulockf.c | 66 static char tempfile[MAXNAMESIZE]; local 74 (void) sprintf(tempfile, "%s/LTMP.%ld", X_LOCKDIR, (long) getpid()); 84 if (onelock(pid, tempfile, name) == -1) { 85 (void) unlink(tempfile); 89 if (onelock(pid, tempfile, name)) { 90 (void) unlink(tempfile); 289 * tempfile - name of a temporary in the same file system 296 onelock(pid,tempfile,name) in onelock() argument 298 char *tempfile, *name; 303 fd=creat(tempfile, (mode_ [all...] |
/titanic_51/usr/src/cmd/refer/ |
H A D | sortbib.c | 25 char tempfile[32]; /* temporary file for sorting keys */ variable 75 strcpy(tempfile, "/tmp/SbibXXXXXX"); /* tempfile for sorting keys */ in main() 76 if ((tmpfd = mkstemp(tempfile)) == -1) in main() 77 error(tempfile); in main() 82 if ((tfp = fopen(tempfile, "w")) == NULL) { in main() 83 (void) unlink(tempfile); in main() 84 error(tempfile); in main() 90 (void) unlink(tempfile); in main() 127 (void) unlink(tempfile); in sortbib() [all...] |
/titanic_51/usr/src/cmd/bnu/ |
H A D | ulockf.c | 67 static char tempfile[MAXNAMESIZE]; local 75 (void) sprintf(tempfile, "%s/LTMP.%ld", X_LOCKDIR, (long) getpid()); 85 if (onelock(pid, tempfile, name) == -1) { 86 (void) unlink(tempfile); 90 if (onelock(pid, tempfile, name)) { 91 (void) unlink(tempfile); 290 * tempfile - name of a temporary in the same file system 297 onelock(pid,tempfile,name) in onelock() argument 299 char *tempfile, *name; 304 fd=creat(tempfile, (mode_ [all...] |
/titanic_51/usr/src/cmd/tip/ |
H A D | uucplock.c | 85 static char tempfile[NAMESIZE]; in ulockf() local 90 (void) snprintf(tempfile, sizeof (tempfile), in ulockf() 93 if (onelock(pid, tempfile, file) == -1) { in ulockf() 95 (void) unlink(tempfile); in ulockf() 99 if (onelock(pid, tempfile, file)) { in ulockf() 100 (void) unlink(tempfile); in ulockf() 199 onelock(char *pid, char *tempfile, char *name) in onelock() argument 204 fd = creat(tempfile, 0444); in onelock() 220 (void) unlink(tempfile); in onelock() [all...] |
/titanic_51/usr/src/boot/sys/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
|
/titanic_51/usr/src/lib/libmail/common/ |
H A D | maillock.c | 128 lock1(char tempfile[], char name[]) in lock1() argument 133 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600); in lock1() 147 if (link(tempfile, name) < 0) { in lock1() 148 (void) remove(tempfile); in lock1() 151 (void) remove(tempfile); in lock1()
|
/titanic_51/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
|
/titanic_51/usr/src/cmd/bdiff/ |
H A D | bdiff.c | 69 static char tempfile[32]; variable 332 temptr = maket(tempfile); in saverest() 350 if ((temptr = fopen(tempfile, "r")) == NULL) { in putsave() 352 "Can not open tempfile ('%s')", tempfile); fatal(Error); in putsave() 360 (void) unlink(tempfile); in putsave() 434 (void) unlink(tempfile); in clean_up()
|
/titanic_51/usr/src/cmd/man/ |
H A D | makewhatis.c | 83 static char tempfile[MAXPATHLEN]; /* path of temporary file, if any */ variable 194 if (tempfile[0] != '\0') in sbuf_need() 195 (void) unlink(tempfile); in sbuf_need() 292 if (tempfile[0] != '\0') in trap_signal() 293 (void) unlink(tempfile); in trap_signal() 308 (void) snprintf(tempfile, MAXPATHLEN, "%s.tmp", name); in open_output() 309 name = tempfile; in open_output() 345 (void) rename(tempfile, name); in finish_output() 346 (void) unlink(tempfile); in finish_output()
|
/titanic_51/usr/src/tools/onbld/Checks/ |
H A D | ProcessCheck.py | 34 import tempfile 45 # We use a tempfile for output, rather than a pipe, so we 49 tmpfile = tempfile.TemporaryFile(prefix=command, mode="w+b")
|
/titanic_51/usr/src/cmd/sgs/m4/common/ |
H A D | m4.c | 85 tempfile = mktemp(tmp_name); in main() 86 (void) close(creat(tempfile, 0)); in main() 662 tempfile[7] = 'a'; in delexit() 663 (void) unlink(tempfile); in delexit() 704 tempfile[7] = 'a'+i; in undiv() 707 fp = xfopen(tempfile, "r"); in undiv() 720 (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()
|
/titanic_51/usr/src/cmd/diff/ |
H A D | diff.h | 183 char tempfile[2][16]; /* used when comparing against std input */ variable
|
H A D | diff.c | 1938 (void) strcpy(tempfile[whichtemp++], template); in copytemp() 1947 return (tempfile[whichtemp-1]); in copytemp() 2023 if (whichtemp) (void) unlink(tempfile[0]); in done() 2024 if (whichtemp == 2) (void) unlink(tempfile[1]); in done()
|
/titanic_51/usr/src/tools/scripts/ |
H A D | git-pbchk.py | 33 import tempfile 72 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()
|
/titanic_51/usr/src/grub/grub-0.97/util/ |
H A D | grub-install.in | 45 # look for secure tempfile creation wrappers on this platform 46 if test -x /bin/tempfile; then 47 mklog="/bin/tempfile --prefix=grub" 48 mkimg="/bin/tempfile --prefix=grub"
|
/titanic_51/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_libscf.c | 218 static FILE *tempfile = NULL; variable 740 if (tempfile != NULL) { in remove_tempfile() 741 if (fclose(tempfile) == EOF) in remove_tempfile() 743 tempfile = NULL; in remove_tempfile() 14388 tempfile = fdopen(tmpfd, "r+"); in lscf_editprop() 14389 if (tempfile == NULL) { in lscf_editprop() 14400 if (write_edit_script(tempfile) == -1) { in lscf_editprop()
|
/titanic_51/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.
|