/illumos-gate/usr/src/cmd/refer/ |
H A D | refer0.c | 43 char tfile[NTFILE]; variable
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 88 char *tfile; local 166 tfile = mkname(file); 167 if ((tfd = open(tfile, O_RDWR | O_CREAT, 0600)) == -1) { 346 (void) rename(tfile, file);
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | bindings.c | 107 const char *tfile = NAME(tlmp); local 114 dbg_print(lml, MSG_INTL(MSG_BND_BASIC), ffile, tfile, 144 EC_OFF(foff), EC_XWORD(pltndx), pltstring, tfile, 153 dbg_print(lml, MSG_INTL(MSG_BND_DLSYM), ffile, tfile, 161 EC_OFF(foff), tfile, EC_ADDR(tabs), EC_OFF(toff),
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/ |
H A D | ctime_001_pos.c | 55 static char tfile[BUFSIZ] = { 0 }; variable 253 if ((strlen(tfile) != 0) && (access(tfile, F_OK) == 0)) { 254 (void) unlink(tfile); 293 (void) snprintf(tfile, sizeof (tfile), "%s/%s", penv[0], penv[1]); 298 if (access(tfile, F_OK) == 0) { 299 (void) unlink(tfile); 302 if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) { 303 (void) fprintf(stderr, "open(%s) failed: %d\n", tfile, errn [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uux.c | 89 char tfile[NAMESIZE]; /* temporary file name */ local 716 * tfile is command file for receive from remote. 732 * ===== syspart/C.syspart.... ===== (tfile) 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, " [all...] |
H A D | uuxqt.c | 416 char buf[BUFSIZ], file[MAXNAMESIZE], tfile[MAXNAMESIZE]; local 430 if (sscanf(&buf[1], "%63s%63s", file, tfile) < 2) 432 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); 448 char buf[BUFSIZ], ffile[MAXFULLNAME], tfile[MAXNAMESIZE]; local 459 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) 468 (void) snprintf(tfull, sizeof (tfull), "%s/%s", XQTDIR, tfile); 499 char buf[BUFSIZ], ffile[MAXNAMESIZE], tfile[MAXNAMESIZE]; local 511 if (sscanf(&buf[1], "%63s%63s", ffile, tfile) < 2) 521 (void) snprintf(tfull, MAXFULLNAME, "%s/%s", XQTDIR, tfile);
|
/illumos-gate/usr/src/cmd/csplit/ |
H A D | csplit.c | 344 * fails, the file name is copied to tfile for the error message, the 355 char tfile[15]; local 394 (void) strcpy(tfile, file); 396 fatal("Cannot create %s\n", tfile);
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | plcysubr.c | 252 char tfile[MAXPATHLEN]; local 281 if (strlen(filename) + sizeof (XEND) > sizeof (tfile)) 289 (void) snprintf(tfile, sizeof (tfile), "%s%s", filename, XEND); 292 nfile = mktemp(tfile);
|
/illumos-gate/usr/src/cmd/avs/rdc/ |
H A D | sndrboot.c | 75 char tfile[NSC_MAXPATH]; /* Secondary device */ member in struct:_sd_dual_pair 219 pair_list[pairs].tfile, NSC_MAXPATH); 760 (void) strncpy(pair_list[i].tfile, tofile, NSC_MAXPATH);
|
H A D | sndradm.c | 110 char tfile[NSC_MAXPATH]; /* Secondary device */ member in struct:_sd_dual_pair 138 static void enable_autosync(char *fhost, char *ffile, char *thost, char *tfile); 221 char *tmptofile = pair.tfile; 459 pair->ffile, pair->fbitmap, pair->thost, pair->tfile, 479 pair->thost, pair->tfile); 1261 if (strcmp(pair->tfile, tmpair.tfile) != 0) 1321 strcmp(tofile_arg, pair.tfile) == 0) { 1369 pair.fbitmap, pair.thost, pair.tfile, pair.tbitmap, 1382 pair.thost, pair.tfile, pai 3760 enable_autosync(char *fhost, char *ffile, char *thost, char *tfile) argument [all...] |
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | ex_temp.c | 49 short tfile = -1; variable 65 if (tfile != -1) 66 close(tfile); 95 if ((tfile = mkstemp((char *)tfname)) < 0) 330 lseek(tfile, (long)(unsigned)b * BUFSIZE, 0); 331 if ((*iofcn)(tfile, buf, BUFSIZE) != BUFSIZE) 350 lseek(tfile, (long)0, 0); 351 if (write(tfile, pagrnd(incorb[1]), i * BUFSIZE) != (i * BUFSIZE)) 424 lseek(tfile, (long)(unsigned)*bp * BUFSIZE, 0); 428 if (write(tfile, (cha [all...] |
H A D | exrecover.c | 49 short tfile = -1; /* ditto */ variable 213 (void)lseek(tfile, (long) blocks[b] * BUFSIZE, 0); 216 if (read(tfile, (char *) dot, i) != i) { 489 tfile = bestfd; 491 (void)lseek(tfile, 0l, 0); 497 if (read(tfile, (char *) &H, sizeof H) == sizeof H) 549 bestfd = dup(tfile); 558 (void)close(tfile); 572 tfile = open(name, 2); 573 if (tfile < [all...] |
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_utils.c | 3442 FILE *tfile = NULL; local 3496 if ((tfile = fdopen(fd, "w")) == NULL) { 3515 (void) fputs(comments_buf, tfile); 3530 (void) putvfsent(tfile, &vp); 3568 (void) putvfsent(tfile, &vp); 3576 (void) fclose(tfile); 3577 tfile = NULL; 3612 if (tfile != NULL) 3613 (void) fclose(tfile);
|
/illumos-gate/usr/src/cmd/ed/ |
H A D | ed.c | 237 static int tfile = -1; variable 798 fstat(tfile, &Tf); 1582 close(tfile); 1771 lseek(tfile, (long)b<<9, 0); 1772 if ((*iofcn)(tfile, buf, 512) != 512) { 1784 if (tfile != -1) { 1785 (void) close(tfile); 1800 if ((tfile = open(tfname, O_CREAT|O_EXCL|O_RDWR,
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 612 static FILE *tfile; variable 738 tfile = NULL; 1044 if (cflag && tfile != NULL) 1081 if ((tfile = fdopen(tnum, "w")) == NULL) 1309 if (tfile != NULL) { 1328 (void) fflush(tfile); 1331 (void) freopen(tname, "r", tfile); 1332 (void) fstat(fileno(tfile), &stbuf); 1501 * If tfile is non-null getdir writes the file name and mod date 1502 * to tfile [all...] |