Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c55 static char tfile[BUFSIZ] = { 0 }; variable
253 if ((strlen(tfile) != 0) && (access(tfile, F_OK) == 0)) { in cleanup()
254 (void) unlink(tfile); in cleanup()
293 (void) snprintf(tfile, sizeof (tfile), "%s/%s", penv[0], penv[1]); in main()
298 if (access(tfile, F_OK) == 0) { in main()
299 (void) unlink(tfile); in main()
302 if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) { in main()
303 (void) fprintf(stderr, "open(%s) failed: %d\n", tfile, errno); in main()
314 ret = get_file_time(tfile, timetest_table[i].type, &t1); in main()
317 tfile, timetest_table[i].type, ret); in main()
[all …]
/titanic_50/usr/src/cmd/vi/port/
H A Dexrecover.c49 short tfile = -1; /* ditto */ variable
213 (void)lseek(tfile, (long) blocks[b] * BUFSIZE, 0); in main()
216 if (read(tfile, (char *) dot, i) != i) { in main()
489 tfile = bestfd; in findtmp()
491 (void)lseek(tfile, 0l, 0); in findtmp()
497 if (read(tfile, (char *) &H, sizeof H) == sizeof H) 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()
[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()
351 if (write(tfile, pagrnd(incorb[1]), i * BUFSIZE) != (i * BUFSIZE)) in tflush()
424 lseek(tfile, (long)(unsigned)*bp * BUFSIZE, 0); in synctmp()
428 if (write(tfile, (char *)a, cnt) != cnt) { 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.c1069 dup(tfile); in preserve()
/titanic_50/usr/src/cmd/bnu/
H A Duux.c89 char tfile[NAMESIZE]; /* temporary file name */ local
741 if (gtcfile(tfile, syspart) != SUCCESS) {
742 gename(CMDPRE, syspart, 'R', tfile);
744 ASSERT(access(tfile, 0) != 0,
745 Fl_EXISTS, tfile, errno);
746 svcfile(tfile, syspart, Sgrade);
747 (void) close(creat(tfile, CFILEMODE));
749 fp = fopen(tfile, "a");
750 ASSERT(fp != NULL, Ct_OPEN, tfile, errno);
818 if (gtcfile(tfile, syspart) != SUCCESS) {
[all …]
H A Duuxqt.c416 char buf[BUFSIZ], file[MAXNAMESIZE], tfile[MAXNAMESIZE]; in rm_Xfiles() local
430 if (sscanf(&buf[1], "%63s%63s", file, tfile) < 2) in rm_Xfiles()
432 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); in rm_Xfiles()
448 char buf[BUFSIZ], ffile[MAXFULLNAME], tfile[MAXNAMESIZE]; in mv_Xfiles() local
459 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) in mv_Xfiles()
468 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); in mv_Xfiles()
499 char buf[BUFSIZ], ffile[MAXNAMESIZE], tfile[MAXNAMESIZE]; in unmv_Xfiles() local
511 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) in unmv_Xfiles()
521 (void) snprintf(tfull, MAXFULLNAME, "%s/%s", XQTDIR, tfile); in unmv_Xfiles()
/titanic_50/usr/src/cmd/refer/
H A Drefer1.c125 sprintf(tfile, "/tmp/rj%da", getpid()); in main()
126 fo = fopen(tfile, "w"); in main()
192 if (tfile[0]) in cleanup()
193 unlink(tfile); in cleanup()
H A Drefer7.c59 sprintf(comm, "sort -f %s -o %s", tfile, tfile); in dumpold()
62 fi = fopen(tfile, "r"); in dumpold()
94 unlink(tfile); in dumpold()
H A Drefer0.c43 char tfile[NTFILE]; variable
H A Drefer..c47 extern char tfile[];
/titanic_50/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()
/titanic_50/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()
/titanic_50/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()
/titanic_50/usr/src/cmd/csplit/
H A Dcsplit.c355 char tfile[15]; in getfile() local
394 (void) strcpy(tfile, file); in getfile()
396 fatal("Cannot create %s\n", tfile); in getfile()
/titanic_50/usr/src/cmd/avs/rdc/
H A Dsndradm.c110 char tfile[NSC_MAXPATH]; /* Secondary device */ member
138 static void enable_autosync(char *fhost, char *ffile, char *thost, char *tfile);
221 char *tmptofile = pair.tfile; in rdc_print()
459 pair->ffile, pair->fbitmap, pair->thost, pair->tfile, in parse_cfg_buf()
479 pair->thost, pair->tfile); in parse_cfg_buf()
1261 if (strcmp(pair->tfile, tmpair.tfile) != 0) in rewrite_group_diskqueue()
1321 strcmp(tofile_arg, pair.tfile) == 0) { in diskq_subcmd()
1369 pair.fbitmap, pair.thost, pair.tfile, pair.tbitmap, in diskq_subcmd()
1382 pair.thost, pair.tfile, pair.tbitmap, subcmd, 0, in diskq_subcmd()
1401 pair.thost, pair.tfile); in diskq_subcmd()
[all …]
H A Dsndrboot.c75 char tfile[NSC_MAXPATH]; /* Secondary device */ member
219 pair_list[pairs].tfile, NSC_MAXPATH); in sndrboot_lintmain()
760 (void) strncpy(pair_list[i].tfile, tofile, NSC_MAXPATH); in read_libcfg()
/titanic_50/usr/src/lib/libbe/common/
H A Dbe_utils.c3222 FILE *tfile = NULL; in _update_vfstab() local
3276 if ((tfile = fdopen(fd, "w")) == NULL) { in _update_vfstab()
3295 (void) fputs(comments_buf, tfile); in _update_vfstab()
3310 (void) putvfsent(tfile, &vp); in _update_vfstab()
3348 (void) putvfsent(tfile, &vp); in _update_vfstab()
3356 (void) fclose(tfile); in _update_vfstab()
3357 tfile = NULL; in _update_vfstab()
3392 if (tfile != NULL) in _update_vfstab()
3393 (void) fclose(tfile); in _update_vfstab()
/titanic_50/usr/src/cmd/ed/
H A Ded.c237 static int tfile = -1; variable
798 fstat(tfile, &Tf); in commands()
1582 close(tfile); in unixcom()
1771 lseek(tfile, (long)b<<9, 0); in blkio()
1772 if ((*iofcn)(tfile, buf, 512) != 512) { in blkio()
1784 if (tfile != -1) { in init()
1785 (void) close(tfile); in init()
1800 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR, in init()
/titanic_50/usr/src/cmd/tar/
H A Dtar.c612 static FILE *tfile; variable
738 tfile = NULL; in main()
1043 if (cflag && tfile != NULL) in main()
1080 if ((tfile = fdopen(tnum, "w")) == NULL) in main()
1308 if (tfile != NULL) { in dorep()
1327 (void) fflush(tfile); in dorep()
1330 (void) freopen(tname, "r", tfile); in dorep()
1331 (void) fstat(fileno(tfile), &stbuf); in dorep()
1611 if (tfile != NULL && Xhdrflag == 0) { in getdir()
1624 (void) fprintf(tfile, "%s %10ld.%9.9ld\n", in getdir()
[all …]
/titanic_50/usr/src/tools/onbld/hgext/
H A Dcdm.py659 tfile = wslist[repo].filepath('.hgtags')
668 (ptip, tfile, tfile))
/titanic_50/usr/src/test/zfs-tests/tests/functional/acl/cifs/
H A Dcifs_attr_003_pos.ksh561 TESTFILE=/tmp/tfile
/titanic_50/usr/src/tools/scripts/
H A Dwsdiff.py129 with os.fdopen(f, "r") as tfile:
130 output = tfile.read()
/titanic_50/usr/src/cmd/sgs/crle/common/
H A Dcrle.msg67 \tfile, or default search paths. With the -u option, \

12