Lines Matching refs:fd
278 DPRINT((dfile, "Socket created, fd=%d, connecting..\n", sock));
286 DPRINT((dfile, "Connected to %s via fd=%d\n", host->h_name,
419 int fd;
427 fd = *fdptr;
444 if (send_timeout(fd, out_buf, (lensz + tok->length))) {
458 recv_token(int fd, gss_buffer_t tok)
462 if (recv_timeout(fd, (char *)&len, sizeof (len))) {
483 if (recv_timeout(fd, tok->value, len)) {
523 fds.fd = sockfd;
552 send_timeout(int fd, const char *buf, size_t len)
558 fds.fd = fd;
577 bytes = write(fd, buf, len);
601 recv_timeout(int fd, char *buf, size_t len)
607 fds.fd = fd;
627 bytes = read(fd, buf, len);
646 * read_fd() - reads data of length len from the given file descriptor fd to the
651 read_fd(int fd, char *buf, size_t len)
659 bytes = read(fd, buf, len);
679 * write_fd() - writes buf of length len to the opened file descriptor fd, in
685 write_fd(int fd, char *buf, size_t len)
693 bytes = write(fd, buf, len);
974 pipe_fd->fd = notify_pipe[1];
976 recv_fd->fd = -1;
1019 if (!read_fd(pipe_fd->fd, (char *)&np_data,
1037 recv_fd->fd = np_data.sock_num;
1045 DPRINT((dfile, "An event on fd detected\n"));
1046 if (!read_fd(recv_fd->fd, (char *)&len, sizeof (len))) {
1074 if (!read_fd(recv_fd->fd, (char *)in_buf.value, len)) {
1237 init_poll(int fd)
1242 np_data.sock_num = fd;
1321 recv_fd->fd = -1;
1379 recv_fd->fd = -1;