/freebsd-11-stable/contrib/blacklist/test/ |
H A D | srvtest.c | 204 pfd[0].fd = cr(AF_INET, type, port); 207 pfd[1].fd = cr(AF_INET6, type, port); 217 handle(type, pfd[i].fd);
|
/freebsd-11-stable/contrib/bmake/ |
H A D | arch.c | 1403 int fd; local 1405 if ((fd = open(gn->path, O_RDONLY)) == -1) 1408 if (read(fd, buf, sizeof(buf)) != sizeof(buf)) { 1409 (void)close(fd); 1413 (void)close(fd);
|
H A D | job.c | 441 int i, fd, flags; local 448 fd = fcntl(job->jobPipe[i], F_DUPFD, minfd); 449 if (fd != -1) { 451 job->jobPipe[i] = fd; 2128 /* The first fd in the list is the job token pipe */ 2833 fds[nfds].fd = job->inPipe; 3063 emul_poll(struct pollfd *fd, int nfd, int timeout) 3075 fd[i].revents = 0; 3077 if (fd[i].events & POLLIN) 3078 FD_SET(fd[ 3062 emul_poll(struct pollfd *fd, int nfd, int timeout) argument [all...] |
H A D | job.h | 95 int fd; member in struct:emul_pollfd 104 emul_poll(struct pollfd *fd, int nfd, int timeout);
|
H A D | meta.c | 171 filemon_read(FILE *mfp, int fd) argument 179 if (fd >= 0) 180 close(fd); /* not interested */ 184 (void)lseek(fd, (off_t)0, SEEK_SET); 189 while ((n = read(fd, buf, sizeof(buf))) > 0) { 194 if (close(fd) < 0)
|
H A D | parse.c | 449 load_getsize(int fd, size_t *ret) argument 453 if (fstat(fd, &st) < 0) { 482 * being in the caller in another source file, we need to have the fd 485 * If the path is NULL use stdin and (to insure against fd leaks) 489 loadfile(const char *path, int fd) argument 501 assert(fd == -1); 502 fd = STDIN_FILENO; 505 fd = open(path, O_RDONLY); 506 if (fd < 0) { 515 if (load_getsize(fd, 2190 int fd; local 2463 Parse_SetInput(const char *name, int line, int fd, char *(*nextbuf)(void *, size_t *), void *arg) argument 2989 Parse_File(const char *name, int fd) argument [all...] |
/freebsd-11-stable/contrib/bsnmp/lib/ |
H A D | snmpclient.h | 101 int fd; member in struct:snmp_client
|
/freebsd-11-stable/contrib/bsnmp/snmp_mibII/ |
H A D | mibII.c | 1416 route_input(int fd, void *udata __unused) argument 1422 if ((n = read(fd, buf, sizeof(buf))) == -1)
|
/freebsd-11-stable/contrib/bsnmp/snmp_ntp/ |
H A D | snmp_ntp.c | 551 ntpd_input(int fd __unused, void *arg __unused)
|
/freebsd-11-stable/contrib/bsnmp/snmpd/ |
H A D | main.c | 892 input(int fd, int mask __unused, void *uap) argument 895 input(evContext ctx __unused, void *uap, int fd, int mask __unused) 900 (*f->func)(fd, f->udata); 930 if ((f->id = poll_register(f->fd, input, f, POLL_IN)) < 0) { 932 syslog(LOG_ERR, "select fd %d: %m", f->fd); 939 if (evSelectFD(evctx, f->fd, EV_READ, input, f, &f->id)) { 941 syslog(LOG_ERR, "select fd %d: %m", f->fd); 950 fd_select(int fd, voi argument [all...] |
H A D | snmpd.h | 107 int fd; /* the file descriptor */ member in struct:fdesc 152 int fd; /* socket */ member in struct:port_input
|
H A D | trans_lsock.c | 181 peer->input.fd = -1; 241 lsock_input(int fd __unused, void *udata) 257 lsock_listen_input(int fd, void *udata) argument 264 (void)close(accept(fd, NULL, NULL)); 276 peer->input.fd = accept(fd, peer->input.peer, &peer->input.peerlen); 277 if (peer->input.fd == -1) { 283 if ((peer->input.id = fd_select(peer->input.fd, lsock_input, 285 close(peer->input.fd); 349 if ((peer->input.fd [all...] |
H A D | trans_udp.c | 93 udp_input(int fd __unused, void *udata) 112 if ((p->input.fd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { 124 if (setsockopt(p->input.fd, IPPROTO_IP, IP_RECVDSTADDR, &on, 127 close(p->input.fd); 128 p->input.fd = -1; 133 if (bind(p->input.fd, (struct sockaddr *)&addr, sizeof(addr))) { 135 close(p->input.fd); 136 p->input.fd = -1; 141 close(p->input.fd); 142 p->input.fd [all...] |
/freebsd-11-stable/contrib/byacc/ |
H A D | configure | 3992 int fd; 3998 if ((fd = mkstemp(name[n])) >= 0) { 4005 close(fd);
|
H A D | main.c | 527 int fd; local 548 fd = open(name, O_CREAT | O_EXCL | O_RDWR); 553 fd = -1; 559 return fd; 576 int fd; local 607 fd = mkstemp(name); 608 if (fd >= 0) 610 result = fdopen(fd, "w+");
|
/freebsd-11-stable/contrib/dialog/ |
H A D | prgbox.c | 39 int fd[2]; local 43 if ((*type == 'r' || *type != 'w') && pipe(fd) == 0) { 46 (void) close(fd[0]); 47 (void) close(fd[1]); 51 if (fd[1] != STDOUT_FILENO) { 52 (void) dup2(fd[1], STDOUT_FILENO); 53 (void) close(fd[1]); 56 (void) close(fd[0]); 58 if (fd[0] != STDIN_FILENO) { 59 (void) dup2(fd[ [all...] |
H A D | tailbox.c | 311 FILE *fd; local 315 if ((fd = fopen(file, "rb")) == NULL) 358 obj->obj.input = fd;
|
H A D | textbox.c | 39 int fd; member in struct:__anon958 56 if ((fpos = (long) lseek(obj->fd, (off_t) offset, mode)) == -1) { 137 if ((obj->fd_bytes_read = read(obj->fd, buftab, size_read)) != -1) { 237 if ((read(obj->fd, buftab, (size_t) val)) == -1) 722 if ((obj.fd = open(file, O_RDONLY)) == -1) 975 (void) close(obj.fd);
|
H A D | ui_getc.c | 184 int fd; local 193 if (p->input != 0 && (fd = fileno(p->input)) >= 0) { 194 FD_SET(fd, &read_fds); 195 if (last_fd < fd) 196 last_fd = fd; 211 && (fd = fileno(p->input)) >= 0 212 && FD_ISSET(fd, &read_fds)) { 214 result = fd; 324 int fd = fileno(fp); local 326 if (fd > [all...] |
H A D | util.c | 279 int fd = fileno(dialog_state.screen_output); local 282 return (int) write(fd, buffer, (size_t) 1); 290 * --input-fd option is used, it may be anything. 293 * if --stdout or --output-fd is used, it may be anything. We are concerned 323 * work properly. dialog provides a --pipe-fd option for this purpose. We 334 if (fileno(stdin) != 0) /* some functions may read fd #0 */ 346 if (fileno(stdin) != 0) /* some functions may read fd #0 */ 1326 * height=MIN(SLINES, num.lines in fd+n); 1343 FILE *fd; local 1346 if ((fd [all...] |
/freebsd-11-stable/contrib/dialog/samples/ |
H A D | gauge0-input-fd | 2 # $Id: gauge0-input-fd,v 1.5 2010/01/13 10:20:03 tom Exp $ 3 # modified "gauge0" script to use "--input-fd" option. 25 $DIALOG --title "GAUGE" --input-fd 3 "$@" --gauge "Hi, this is a gauge widget" 0 0 0
|
H A D | inputbox5 | 3 # use --output-fd to write to a different output than stderr 9 $DIALOG --title "INPUT BOX" --clear --output-fd 4 "$@" \
|
/freebsd-11-stable/contrib/diff/lib/ |
H A D | cmpbuf.c | 84 block_read (int fd, char *buf, size_t nbytes) argument 93 ssize_t nread = read (fd, bp, bytes_to_read);
|
H A D | setmode.h | 25 # define set_binary_mode(fd, mode) true
|
/freebsd-11-stable/contrib/diff/src/ |
H A D | analyze.c | 95 lin *const fd = fdiag; /* Give the compiler a chance. */ local 109 fd[fmid] = xoff; 118 fmin > dmin ? fd[--fmin - 1] = -1 : ++fmin; local 119 fmax < dmax ? fd[++fmax + 1] = -1 : --fmax; local 122 lin x, y, oldx, tlo = fd[d - 1], thi = fd[d + 1]; 134 fd[d] = x; 162 if (!odd && fmin <= d && d <= fmax && x <= fd[d]) 189 lin x = fd[d]; 269 lin x = MIN (fd[ [all...] |