Home
last modified time | relevance | path

Searched refs:fd_in (Results 1 – 11 of 11) sorted by relevance

/freebsd-10-stable/usr.sbin/ppp/
Dprompt.c143 if (p->fd_in >= 0) { in prompt_UpdateSet()
145 FD_SET(p->fd_in, r); in prompt_UpdateSet()
146 log_Printf(LogTIMER, "prompt %s: fdset(r) %d\n", p->src.from, p->fd_in); in prompt_UpdateSet()
150 FD_SET(p->fd_in, e); in prompt_UpdateSet()
151 log_Printf(LogTIMER, "prompt %s: fdset(e) %d\n", p->src.from, p->fd_in); in prompt_UpdateSet()
154 if (sets && *n < p->fd_in + 1) in prompt_UpdateSet()
155 *n = p->fd_in + 1; in prompt_UpdateSet()
167 return p->fd_in >= 0 && FD_ISSET(p->fd_in, fdset); in prompt_IsSet()
193 n = read(p->fd_in, linebuff, sizeof linebuff - 1); in prompt_Read()
243 n = read(p->fd_in, &ch, 1); in prompt_Read()
[all …]
Dprompt.h42 int fd_in, fd_out; member
/freebsd-10-stable/usr.sbin/nandtool/
Dnand_writeoob.c44 int fd = -1, fd_in = -1, ret = 0; in nand_write_oob() local
68 if ((fd_in = open(in, O_RDONLY)) == -1) { in nand_write_oob()
87 if (read(fd_in, buf, chip_params.oob_size) == -1) { in nand_write_oob()
105 if (fd_in != -1) in nand_write_oob()
106 close(fd_in); in nand_write_oob()
/freebsd-10-stable/crypto/heimdal/lib/krb5/
Dstore_fd.c89 krb5_storage_from_fd(krb5_socket_t fd_in) in krb5_storage_from_fd() argument
96 if (_get_osfhandle(fd_in) != -1) { in krb5_storage_from_fd()
97 fd = dup(fd_in); in krb5_storage_from_fd()
99 fd = _open_osfhandle(fd_in, 0); in krb5_storage_from_fd()
105 fd = dup(fd_in); in krb5_storage_from_fd()
/freebsd-10-stable/libexec/atrun/
Datrun.c128 int fd_out, fd_in; in run_file() local
203 if ((fd_in = dup(fileno(stream))) <0) in run_file()
206 if (fstat(fd_in, &buf) == -1) in run_file()
224 if ((fflags = fcntl(fd_in, F_GETFD)) <0) in run_file()
227 fcntl(fd_in, F_SETFD, fflags & ~FD_CLOEXEC); in run_file()
284 if (lseek(fd_in, (off_t) 0, SEEK_SET) < 0) in run_file()
287 if (dup(fd_in) != STDIN_FILENO) in run_file()
296 close(fd_in); in run_file()
343 close(fd_in); in run_file()
/freebsd-10-stable/sys/kern/
Dsys_generic.c935 select_check_badfd(fd_set *fd_in, int nd, int ndu, int abi_nfdbits) in select_check_badfd() argument
941 if (nd >= ndu || fd_in == NULL) in select_check_badfd()
949 addr = (char *)fd_in + b; in select_check_badfd()
951 addr = (char *)fd_in; in select_check_badfd()
974 kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou, in kern_select() argument
999 error = select_check_badfd(fd_in, nd, ndu, abi_nfdbits); in kern_select()
1017 if (fd_in != NULL) in kern_select()
1050 getbits(fd_in, 0); in kern_select()
1137 putbits(fd_in, 0); in kern_select()
/freebsd-10-stable/crypto/openssh/
Dopacket.c231 packet_set_connection(int fd_in, int fd_out) in packet_set_connection() argument
233 active_state = ssh_packet_set_connection(active_state, fd_in, fd_out); in packet_set_connection()
Dsftp-client.c72 int fd_in; member
135 if (atomicio6(read, conn->fd_in, p, 4, in get_msg()
150 if (atomicio6(read, conn->fd_in, p, msg_len, in get_msg()
377 do_init(int fd_in, int fd_out, u_int transfer_buflen, u_int num_requests, in do_init() argument
387 ret->fd_in = fd_in; in do_init()
Dpacket.c278 ssh_packet_set_connection(struct ssh *ssh, int fd_in, int fd_out) in ssh_packet_set_connection() argument
295 state->connection_in = fd_in; in ssh_packet_set_connection()
/freebsd-10-stable/sys/pc98/cbus/
Dfdc.c315 static int fd_in(struct fdc_data *, int *);
453 if (fd_in(fdc, ptr) < 0) in fd_cmd()
544 if (fd_in(fdc, &cyl) < 0) { in fd_sense_int()
568 ret = fd_in(fdc, &status); in fd_read_status()
608 if ((fd_in(fdc, &status) == 0) && (status & NE7_ST3_RD)) { in pc98_fd_check_ready()
1240 fd_in(struct fdc_data *fdc, int *ptr) in fd_in() function
/freebsd-10-stable/sys/sys/
Dsyscallsubr.h217 int kern_select(struct thread *td, int nd, fd_set *fd_in, fd_set *fd_ou,