Lines Matching defs:fd
769 int fd; /* client handle fd */
826 int fd;
837 /* Update fd in kcp because it was reopened in _update_did */
838 if (clnt_control(kcp->client, CLGET_FD, (void *)&fd) &&
839 (fd >= 0))
840 (void) fcntl(fd, F_SETFD, FD_CLOEXEC); /* close exec */
841 kcp->fd = fd;
850 (void) fcntl(kcp->fd, F_SETFD, FD_CLOEXEC); /* close on exec */
976 int fd;
979 if (clnt_control(kcp->client, CLGET_FD, (char *)&fd) != TRUE ||
980 fstat(fd, &stbuf) == -1) {
982 kcp->fd = -1;
985 kcp->fd = fd;
994 if (kcp->fd == -1)
997 if (fstat(kcp->fd, &stbuf) == -1) {
998 syslog(LOG_DEBUG, "keyserv_client: can't stat %d", kcp->fd);
1007 "keyserv_client: fd %d changed, old=0x%x, new=0x%x",
1008 kcp->fd, kcp->rdev, stbuf.st_rdev);
1013 return (1); /* fd is okay */