/macosx-10.10.1/ksh-23/ksh/src/lib/libast/port/ |
H A D | astcopy.c | 27 * copy from rfd to wfd (with conditional mmap hacks) 45 * copy n bytes from rfd to wfd 51 astcopy(int rfd, int wfd, off_t n) argument 67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1)) 72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1)) 74 if (write(wfd, mapbuf, mapsize) != mapsize || lseek(rfd, mapsize, 1) == ((off_t)-1)) return(-1); 88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1;
|
/macosx-10.10.1/KerberosHelper-151/Tests/ |
H A D | dns-register.c | 94 fd_set rfd; local 96 FD_ZERO(&rfd); 97 FD_SET(fd, &rfd); 99 ret = select(fd + 1, &rfd, NULL, NULL, NULL); 105 if (FD_ISSET(fd, &rfd))
|
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/misc/ |
H A D | procclose.c | 42 if (p->rfd >= 0) 43 close(p->rfd); 44 if (p->wfd >= 0 && p->wfd != p->rfd)
|
/macosx-10.10.1/Libc-1044.1.2/db/recno/FreeBSD/ |
H A D | rec_open.c | 64 int rfd, sverrno; local 67 if (fname != NULL && (rfd = _open(fname, flags, mode)) < 0) 112 t->bt_rfd = rfd; 121 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) { 129 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) 145 if (_fstat(rfd, &sb)) 169 PROT_READ, MAP_PRIVATE, rfd, 214 (void)_close(rfd);
|
/macosx-10.10.1/sudo-73/src/ |
H A D | exec_pty.c | 88 int rfd; /* reader (producer) */ member in struct:io_buffer 305 io_buf_new(rfd, wfd, action, head) 306 int rfd; 314 iob->rfd = rfd; 336 if (iob->rfd != -1 && FD_ISSET(iob->rfd, fdsr)) { 338 n = read(iob->rfd, iob->buf + iob->len, 345 safe_close(iob->rfd); 346 iob->rfd [all...] |
/macosx-10.10.1/shell_cmds-179/script/ |
H A D | script.c | 97 fd_set rfd; local 176 FD_ZERO(&rfd); 178 FD_SET(master, &rfd); 179 FD_SET(STDIN_FILENO, &rfd); 184 n = select(master + 1, &rfd, 0, 0, tvp); 187 if (n > 0 && FD_ISSET(STDIN_FILENO, &rfd)) { 201 if (n > 0 && FD_ISSET(master, &rfd)) {
|
/macosx-10.10.1/zsh-61/zsh/Src/Modules/ |
H A D | socket.c | 140 int lfd, rfd; local 194 if ((rfd = accept(lfd, (struct sockaddr *)&soun, &len)) == -1) 201 sfd = redup(rfd, targetfd); 208 sfd = rfd;
|
H A D | tcp.c | 472 int lfd, rfd; local 539 if ((rfd = accept(lfd, (struct sockaddr *)&sess->peer.in, &len)) == -1) 547 sess->fd = redup(rfd, targetfd); 554 sess->fd = rfd;
|
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/disc/ |
H A D | sfdcmore.c | 77 * output label on wfd and return next char on rfd with no echo 98 int rfd = sffileno(rp); local 105 tcgetattr(rfd, &old); 110 tcsetattr(rfd, TCSADRAIN, &tty); 111 if ((r = read(rfd, &c, 1)) == 1) 124 tcsetattr(rfd, TCSADRAIN, &old);
|
/macosx-10.10.1/Libinfo-459/rpc.subproj/ |
H A D | clnt_tcp.c | 150 int rfd; local 224 rfd = open("/dev/random", O_RDONLY, 0); 225 if ((rfd < 0) || (read(rfd, &call_msg.rm_xid, sizeof(call_msg.rm_xid)) != sizeof(call_msg.rm_xid))) 231 if (rfd > 0) close(rfd);
|
H A D | clnt_udp.c | 145 int rfd; local 193 rfd = open("/dev/random", O_RDONLY, 0); 194 if ((rfd < 0) || (read(rfd, &call_msg.rm_xid, sizeof(call_msg.rm_xid)) != sizeof(call_msg.rm_xid))) 200 if (rfd > 0) close(rfd);
|
H A D | pmap_rmt.c | 307 int rfd; local 336 rfd = open("/dev/random", O_RDONLY, 0); 337 if ((rfd < 0) || (read(rfd, &xid, sizeof(xid)) != sizeof(xid))) 342 if (rfd > 0) close(rfd);
|
/macosx-10.10.1/cxxfilt-11/cxxfilt/include/coff/ |
H A D | sym.h | 294 * If the rfd field is 4095, the index field indexes into the global symbol 299 unsigned rfd : 12; /* index into the file indirect table */ member in struct:__anon7515 306 * a rfd of 0xffffffff is an index into the global table. 309 unsigned long rfd; /* index into the file table */ member in struct:__anon7516
|
H A D | alpha.h | 364 unsigned char rfd[4]; member in struct:rfd_ext
|
H A D | mips.h | 321 unsigned char rfd[4]; member in struct:rfd_ext
|
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/include/ |
H A D | proc.h | 88 int rfd; /* read fd if applicable */ member in struct:__anon9070
|
/macosx-10.10.1/kext_tools-384.1.4/ |
H A D | safecalls.c | 228 int rfd = -1; local 246 rfd = candfd; 249 if (candfd != -1 && rfd != candfd) { 254 return rfd;
|
/macosx-10.10.1/libxml2-26/libxml2/ |
H A D | nanoftp.c | 738 fd_set rfd; local 744 FD_ZERO(&rfd); 745 FD_SET(ctxt->controlFd, &rfd); 746 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { 1544 fd_set rfd, efd; local 1552 FD_ZERO(&rfd); 1553 FD_SET(ctxt->controlFd, &rfd); 1556 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); 1726 fd_set rfd, efd; local 1767 FD_ZERO(&rfd); 1900 fd_set rfd; local [all...] |
/macosx-10.10.1/pyobjc-45/2.6/pyobjc/pyobjc-core/libxml2-src/ |
H A D | nanoftp.c | 737 fd_set rfd; local 743 FD_ZERO(&rfd); 744 FD_SET(ctxt->controlFd, &rfd); 745 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { 1542 fd_set rfd, efd; local 1550 FD_ZERO(&rfd); 1551 FD_SET(ctxt->controlFd, &rfd); 1554 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); 1724 fd_set rfd, efd; local 1765 FD_ZERO(&rfd); 1898 fd_set rfd; local [all...] |
/macosx-10.10.1/OpenSSH-189/openssh/ |
H A D | channels.c | 227 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument 231 channel_max_fd = MAX(channel_max_fd, rfd); 235 if (rfd != -1) 236 fcntl(rfd, F_SETFD, FD_CLOEXEC); 237 if (wfd != -1 && wfd != rfd) 239 if (efd != -1 && efd != rfd && efd != wfd) 242 c->rfd = rfd; 244 c->sock = (rfd == wfd) ? rfd 268 channel_new(char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, char *remote_name, int nonblock) argument 769 channel_set_fds(int id, int rfd, int wfd, int efd, int extusage, int nonblock, int is_tty, u_int window_max) argument [all...] |
H A D | channels.h | 99 int rfd; /* read fd */ member in struct:Channel 104 int isatty; /* rfd is a tty */
|
H A D | nchan.c | 526 if (channel_close_fd(&c->rfd) < 0) 529 c->self, c->rfd, strerror(errno));
|
/macosx-10.10.1/text_cmds-88/cat/ |
H A D | cat.c | 238 raw_cat(int rfd) argument 254 while ((nr = read(rfd, buf, bsize)) > 0)
|
/macosx-10.10.1/cxxfilt-11/cxxfilt/bfd/ |
H A D | ecofflink.c | 192 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG) 200 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_LITTLE) 231 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG; 232 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG) 239 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE; 240 ext->r_bits[1] = (((intern->rfd >> RNDX_BITS1_RFD_SH_LEFT_LITTLE) 397 struct shuffle *rfd; 527 ainfo->rfd = NULL; 680 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz)) 760 RFDT rfd; 394 struct shuffle *rfd; member in struct:accumulate 757 RFDT rfd; local [all...] |
/macosx-10.10.1/ksh-23/ksh/src/lib/libcmd/ |
H A D | cp.c | 242 int rfd; local 593 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY|O_cloexec)) < 0) 602 close(rfd); 607 if (!(ip = sfnew(NiL, NiL, SF_UNBOUND, rfd, SF_READ))) 610 close(rfd);
|