Lines Matching defs:fd
1659 ** fd -- file descriptor to check.
1667 checkfdopen(fd, where)
1668 int fd;
1674 if (fstat(fd, &st) < 0 && errno == EBADF)
1676 syserr("checkfdopen(%d): %s not open as expected!", fd, where);
1700 register int fd;
1713 for (fd = 0; fd < maxfd; fd++)
1717 if (fstat(fd, &stbuf) < 0 && errno != EOPNOTSUPP)
1719 if (!bitnset(fd, baseline))
1721 clrbitn(fd, baseline);
1723 else if (!bitnset(fd, baseline))
1724 setbitn(fd, baseline);
1738 dumpfd(fd, true, true);
1762 register int fd;
1765 for (fd = 0; fd < DtableSize; fd++)
1766 dumpfd(fd, false, logit);
1773 ** fd -- the file descriptor to dump.
1783 dumpfd(fd, printclosed, logit)
1784 int fd;
1803 (void) sm_snprintf(p, SPACELEFT(buf, p), "%3d: ", fd);
1808 fstat64(fd, &st)
1810 fstat(fd, &st)
1829 i = fcntl(fd, F_GETFL, 0);
1847 if (getsockname(fd, &sa.sa, &slen) < 0)
1876 if (getpeername(fd, &sa.sa, &slen) < 0)
2097 int fd;
2099 fd = sm_io_getinfo(e->e_lockfp, SM_IO_WHAT_FD, NULL);
2100 if (fd >= 0)
2101 (void) close(fd);
2103 syserr("%s: lockfp does not have a fd", argv[0]);