/original-bsd/lib/libc/db/recno/ |
H A D | rec_open.c | 40 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 D | build.c | 97 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 D | listrefs.c | 31 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 D | bib.c | 37 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 D | bibargs.c | 69 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 D | archive.h | 32 cf.rfd = from; \ 41 int rfd; /* read file descriptor */ member
|
H A D | move.c | 98 cf.rfd = tfd2; 103 cf.rfd = tfd3;
|
H A D | append.c | 56 cf.rfd = fd;
|
H A D | archive.c | 188 (void)fstat(cfp->rfd, sb); 261 from = cfp->rfd;
|
H A D | replace.c | 146 cf.rfd = tfd2;
|
H A D | header.c | 121 (void)fstat(cfp->rfd, sb);
|
/original-bsd/bin/cat/ |
H A D | cat.c | 204 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 D | mkboottape.c | 55 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 D | program.c | 139 int rfd = (1 << fileno(from)), wfd = 0, xfd = 0; in program_get() local 147 if (!(i = select(32, &rfd, &wfd, &xfd, ¬ime)) && in program_get()
|
/original-bsd/usr.bin/f77/libU77/ |
H A D | tapeio.c | 251 int rfd; local 287 if ((rfd = open(namebuf, 0)) < 0) 291 close(rfd);
|
/original-bsd/contrib/emacs-18.57/src/ |
H A D | sysdep.c | 3121 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()
|