Searched defs:tempfile (Results 1 - 14 of 14) sorted by relevance

/illumos-gate/usr/src/tools/onbld/Checks/
H A DProcessCheck.py34 import tempfile namespace
45 # We use a tempfile for output, rather than a pipe, so we
49 tmpfile = tempfile.TemporaryFile(prefix=command)
/illumos-gate/usr/src/lib/libmail/common/
H A Dmaillock.c128 lock1(char tempfile[], char name[]) argument
133 fd = open(tempfile, O_RDWR|O_CREAT|O_EXCL, 0600);
147 if (link(tempfile, name) < 0) {
148 (void) remove(tempfile);
151 (void) remove(tempfile);
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dulockf.c56 static char *tempfile; local
59 tempfile = malloc(MAXNAMESIZE);
60 if (tempfile == NULL)
63 (void) snprintf(tempfile, MAXNAMESIZE, "%s/LTMP.%ld", X_LOCKDIR,
67 if (onelock(pid, tempfile, name) == -1) {
68 (void) unlink(tempfile);
72 if (onelock(pid, tempfile, name)) {
73 (void) unlink(tempfile);
189 * tempfile - name of a temporary in the same file system
196 onelock(char *pid, char *tempfile, cha argument
[all...]
/illumos-gate/usr/src/cmd/refer/
H A Dsortbib.c25 char tempfile[32]; /* temporary file for sorting keys */ variable
75 strcpy(tempfile, "/tmp/SbibXXXXXX"); /* tempfile for sorting keys */
76 if ((tmpfd = mkstemp(tempfile)) == -1)
77 error(tempfile);
82 if ((tfp = fopen(tempfile, "w")) == NULL) {
83 (void) unlink(tempfile);
84 error(tempfile);
90 (void) unlink(tempfile);
127 (void) unlink(tempfile);
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dulockf.c67 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)
299 char *tempfile, *name;
304 fd=creat(tempfile, (mode_
[all...]
/illumos-gate/usr/src/cmd/tip/
H A Duucplock.c85 static char tempfile[NAMESIZE]; local
90 (void) snprintf(tempfile, sizeof (tempfile),
93 if (onelock(pid, tempfile, file) == -1) {
95 (void) unlink(tempfile);
99 if (onelock(pid, tempfile, file)) {
100 (void) unlink(tempfile);
199 onelock(char *pid, char *tempfile, char *name) argument
204 fd = creat(tempfile, 0444);
220 (void) unlink(tempfile);
[all...]
/illumos-gate/usr/src/cmd/ttymon/
H A Dulockf.c66 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)
298 char *tempfile, *name;
303 fd=creat(tempfile, (mode_
[all...]
/illumos-gate/usr/src/tools/scripts/
H A Dgit-pbchk.py30 import tempfile namespace
67 tmpfile = tempfile.TemporaryFile(prefix="git-nits")
H A Dwsdiff.py73 import re, resource, select, shutil, signal, string, struct, sys, tempfile namespace
/illumos-gate/usr/src/cmd/sgs/m4/common/
H A Dm4ext.c102 char *tempfile; /* used for diversion files */ variable
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.h183 char tempfile[2][16]; /* used when comparing against std input */ variable
/illumos-gate/usr/src/cmd/bdiff/
H A Dbdiff.c69 static char tempfile[32]; variable
332 temptr = maket(tempfile);
350 if ((temptr = fopen(tempfile, "r")) == NULL) {
352 "Can not open tempfile ('%s')", tempfile); fatal(Error);
360 (void) unlink(tempfile);
434 (void) unlink(tempfile);
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c83 static char tempfile[MAXPATHLEN]; /* path of temporary file, if any */ variable
194 if (tempfile[0] != '\0')
195 (void) unlink(tempfile);
292 if (tempfile[0] != '\0')
293 (void) unlink(tempfile);
308 (void) snprintf(tempfile, MAXPATHLEN, "%s.tmp", name);
309 name = tempfile;
345 (void) rename(tempfile, name);
346 (void) unlink(tempfile);
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_libscf.c218 static FILE *tempfile = NULL; variable
740 if (tempfile != NULL) {
741 if (fclose(tempfile) == EOF)
743 tempfile = NULL;
14401 tempfile = fdopen(tmpfd, "r+");
14402 if (tempfile == NULL) {
14413 if (write_edit_script(tempfile) == -1) {

Completed in 108 milliseconds