Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 16 of 16) sorted by relevance

/original-bsd/lib/libc/db/recno/
H A Drec_open.c40 int rfd, sverrno; local
43 if (fname != NULL && (rfd = open(fname, flags, mode)) < 0)
88 t->bt_rfd = rfd;
98 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) {
106 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL)
122 if (fstat(rfd, &sb))
138 PROT_READ, MAP_PRIVATE, rfd,
179 (void)close(rfd);
/original-bsd/usr.bin/ranlib/
H A Dbuild.c97 rexec(rfd, wfd) in rexec() argument
98 register int rfd; in rexec()
112 r_off = lseek(rfd, (off_t)0, SEEK_CUR);
116 nr = read(rfd, &ebuf, sizeof(struct exec));
125 if (lseek(rfd, r_off + N_STROFF(ebuf), SEEK_SET) == (off_t)-1)
129 nr = read(rfd, &strsize, sizeof(strsize));
136 nr = read(rfd, strtab, strsize);
186 bad1: (void)lseek(rfd, r_off, SEEK_SET);
/original-bsd/contrib/bib/src/
H A Dlistrefs.c31 FILE *rfd; /* reference file position */ variable
62 rfd = fopen(reffile,"w+");
63 if (rfd == NULL)
65 putc('x', rfd); /* put garbage in first position */
88 fclose(rfd); in cleanup()
H A Dbib.c37 FILE *rfd; /* reference temporary file */ variable
75 rfd = fopen( INDXFILE , "r");
76 if (rfd != NULL) {
78 fclose(rfd);
86 rfd = fopen(reffile,"w+");
87 if (rfd == NULL)
89 putc('x', rfd); /* put garbage in first position (not used) */
140 fclose(rfd); in cleanup()
H A Dbibargs.c69 extern FILE *rfd;
523 rfd = freopen(reffile, ((mode == READ)? "r" : "a"), rfd);
525 if (rfd == NULL)
729 fseek(rfd, p->ri_pos, 0);
730 fread(ref, p->ri_length, 1, rfd);
745 fseek(rfd, p->ri_pos, 0); /* go to end of rfd */
747 fwrite(ref, p->ri_length, 1, rfd);
1387 fseek(rfd, (long)refinfo[i].ri_pos, 0);
1388 while (fgets(line, REFSIZE, rfd) != NULL) {
/original-bsd/usr.bin/ar/
H A Darchive.h32 cf.rfd = from; \
41 int rfd; /* read file descriptor */ member
H A Dmove.c98 cf.rfd = tfd2;
103 cf.rfd = tfd3;
H A Dappend.c56 cf.rfd = fd;
H A Darchive.c188 (void)fstat(cfp->rfd, sb);
261 from = cfp->rfd;
H A Dreplace.c146 cf.rfd = tfd2;
H A Dheader.c121 (void)fstat(cfp->rfd, sb);
/original-bsd/bin/cat/
H A Dcat.c204 raw_cat(rfd) in raw_cat() argument
205 register int rfd; in raw_cat()
220 while ((nr = read(rfd, buf, bsize)) > 0)
/original-bsd/sys/pmax/stand/
H A Dmkboottape.c55 int ifd, ofd, rfd; local
86 if ((rfd = open(argv[2], O_RDONLY, 0)) < 0)
195 if (read(rfd, block, DEV_BSIZE) != DEV_BSIZE)
/original-bsd/games/chess/Xchess/
H A Dprogram.c139 int rfd = (1 << fileno(from)), wfd = 0, xfd = 0; in program_get() local
147 if (!(i = select(32, &rfd, &wfd, &xfd, &notime)) && in program_get()
/original-bsd/usr.bin/f77/libU77/
H A Dtapeio.c251 int rfd; local
287 if ((rfd = open(namebuf, 0)) < 0)
291 close(rfd);
/original-bsd/contrib/emacs-18.57/src/
H A Dsysdep.c3121 int rfd; /* related file descriptor */ in sys_creat() local
3136 rfd = va_arg (list_incrementor, int); in sys_creat()
3142 fstat (rfd, &st_buf); in sys_creat()