Home
last modified time | relevance | path

Searched refs:tfile (Results 1 – 25 of 25) sorted by relevance

/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c58 static char tfile[BUFSIZ] = { 0 }; variable
256 if ((strlen(tfile) != 0) && (access(tfile, F_OK) == 0)) { in cleanup()
257 (void) unlink(tfile); in cleanup()
296 (void) snprintf(tfile, sizeof (tfile), "%s/%s", penv[0], penv[1]); in main()
301 if (access(tfile, F_OK) == 0) { in main()
302 (void) unlink(tfile); in main()
317 ret = get_file_time(tfile, timetest_table[i].type, &t1); in main()
320 tfile, timetest_table[i].type, ret); in main()
328 (void) timetest_table[i].func(tfile); in main()
333 ret = get_file_time(tfile, timetest_table[i].type, &t2); in main()
[all …]
/illumos-gate/usr/src/cmd/vi/port/
H A Dexrecover.c49 short tfile = -1; /* ditto */ variable
216 if (read(tfile, (char *) dot, i) != i) { in main()
489 tfile = bestfd; in findtmp()
491 (void)lseek(tfile, 0l, 0); in findtmp()
549 bestfd = dup(tfile); in searchdir()
558 (void)close(tfile); in searchdir()
572 tfile = open(name, 2); in yeah()
573 if (tfile < 0) in yeah()
577 (void)close(tfile); in yeah()
589 (void)write(tfile, "LOST", 5); in yeah()
[all …]
H A Dex_temp.c49 short tfile = -1; variable
65 if (tfile != -1) in fileinit()
66 close(tfile); in fileinit()
95 if ((tfile = mkstemp((char *)tfname)) < 0) in fileinit()
330 lseek(tfile, (long)(unsigned)b * BUFSIZE, 0); in blkio()
331 if ((*iofcn)(tfile, buf, BUFSIZE) != BUFSIZE) in blkio()
350 lseek(tfile, (long)0, 0); in tflush()
424 lseek(tfile, (long)(unsigned)*bp * BUFSIZE, 0); in synctmp()
428 if (write(tfile, (char *)a, cnt) != cnt) { in synctmp()
436 lseek(tfile, 0l, 0); in synctmp()
[all …]
H A Dex_unix.c315 if (tfile)
316 close(tfile);
400 close(tfile); in vi_filter()
401 tfile = open(tfname, 2); in vi_filter()
H A Dex.h263 extern short tfile; /* Temporary file unit */
H A Dex_subr.c1076 dup(tfile); in preserve()
/illumos-gate/usr/src/cmd/bnu/
H A Duux.c744 ASSERT(access(tfile, 0) != 0,
745 Fl_EXISTS, tfile, errno);
746 svcfile(tfile, syspart, Sgrade);
749 fp = fopen(tfile, "a");
821 ASSERT(access(tfile, 0) != 0,
822 Fl_EXISTS, tfile, errno);
823 svcfile(tfile, syspart, Sgrade);
826 fp = fopen(tfile, "a");
891 gename(XQTPRE, Myname, Grade, tfile);
895 wfcommit(rxfile, tfile, xsys);
[all …]
H A Duuxqt.c414 char buf[BUFSIZ], file[MAXNAMESIZE], tfile[MAXNAMESIZE]; in rm_Xfiles() local
428 if (sscanf(&buf[1], "%63s%63s", file, tfile) < 2) in rm_Xfiles()
430 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); in rm_Xfiles()
446 char buf[BUFSIZ], ffile[MAXFULLNAME], tfile[MAXNAMESIZE]; in mv_Xfiles() local
457 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) in mv_Xfiles()
466 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); in mv_Xfiles()
497 char buf[BUFSIZ], ffile[MAXNAMESIZE], tfile[MAXNAMESIZE]; in unmv_Xfiles() local
509 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) in unmv_Xfiles()
519 (void) snprintf(tfull, MAXFULLNAME, "%s/%s", XQTDIR, tfile); in unmv_Xfiles()
/illumos-gate/usr/src/cmd/refer/
H A Drefer1.c123 sprintf(tfile, "/tmp/rj%da", getpid()); in main()
124 fo = fopen(tfile, "w"); in main()
190 if (tfile[0]) in cleanup()
191 unlink(tfile); in cleanup()
H A Drefer7.c57 sprintf(comm, "sort -f %s -o %s", tfile, tfile); in dumpold()
60 fi = fopen(tfile, "r"); in dumpold()
92 unlink(tfile); in dumpold()
H A Drefer0.c41 char tfile[NTFILE]; variable
H A Drefer..c45 extern char tfile[];
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dbindings.c107 const char *tfile = NAME(tlmp); in Dbg_bind_global() local
114 dbg_print(lml, MSG_INTL(MSG_BND_BASIC), ffile, tfile, in Dbg_bind_global()
144 EC_OFF(foff), EC_XWORD(pltndx), pltstring, tfile, in Dbg_bind_global()
153 dbg_print(lml, MSG_INTL(MSG_BND_DLSYM), ffile, tfile, in Dbg_bind_global()
161 EC_OFF(foff), tfile, EC_ADDR(tabs), EC_OFF(toff), in Dbg_bind_global()
H A Dliblddbg.msg564 @ MSG_ARG_FILE "arg[%d]\tfile=%s"
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c88 char *tfile; in delete_comment() local
166 tfile = mkname(file); in delete_comment()
167 if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) { in delete_comment()
346 (void) rename(tfile, file); in delete_comment()
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c359 char tfile[15]; in getfile() local
398 (void) strlcpy(tfile, file, sizeof (tfile)); in getfile()
400 fatal("Cannot create %s\n", tfile); in getfile()
/illumos-gate/usr/src/cmd/modload/
H A Dplcysubr.c252 char tfile[MAXPATHLEN]; in delete_one_entry() local
281 if (strlen(filename) + sizeof (XEND) > sizeof (tfile)) in delete_one_entry()
289 (void) snprintf(tfile, sizeof (tfile), "%s%s", filename, XEND); in delete_one_entry()
292 nfile = mktemp(tfile); in delete_one_entry()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/cifs/
H A Dcifs_attr_004_pos.ksh112 TESTFILE=/tmp/tfile
H A Dcifs_attr_003_pos.ksh569 TESTFILE=/tmp/tfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/
H A Dprojectquota.cfg38 export PRJFILE=$TESTDIR/tfile
/illumos-gate/usr/src/cmd/ed/
H A Ded.c236 static int tfile = -1; variable
801 fstat(tfile, &Tf); in commands()
1597 close(tfile); in unixcom()
1788 lseek(tfile, (long)b<<9, 0); in blkio()
1789 if ((*iofcn)(tfile, buf, 512) != 512) { in blkio()
1801 if (tfile != -1) { in init()
1802 (void) close(tfile); in init()
1817 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR, in init()
/illumos-gate/usr/src/lib/libbe/common/
H A Dbe_utils.c3524 FILE *tfile = NULL; in _update_vfstab() local
3578 if ((tfile = fdopen(fd, "w")) == NULL) { in _update_vfstab()
3597 (void) fputs(comments_buf, tfile); in _update_vfstab()
3612 (void) putvfsent(tfile, &vp); in _update_vfstab()
3650 (void) putvfsent(tfile, &vp); in _update_vfstab()
3658 (void) fclose(tfile); in _update_vfstab()
3659 tfile = NULL; in _update_vfstab()
3694 if (tfile != NULL) in _update_vfstab()
3695 (void) fclose(tfile); in _update_vfstab()
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c613 static FILE *tfile; variable
739 tfile = NULL; in main()
1045 if (cflag && tfile != NULL) in main()
1310 if (tfile != NULL) { in dorep()
1329 (void) fflush(tfile); in dorep()
4817 rewind(tfile); in checkupdate()
4820 (void) fseek(tfile, seekp, 0); in checkupdate()
4919 if (tfile != NULL) in done()
4995 (void) fseek(tfile, m, 0); in bsrch()
4997 (void) fread(b+1, 1, N-1, tfile); in bsrch()
[all …]
/illumos-gate/usr/src/tools/scripts/
H A Dwsdiff.py126 with os.fdopen(f, mode="r", errors="ignore") as tfile:
127 output = tfile.read()
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dcrle.msg66 \tfile, or default search paths. With the -u option, \