Searched defs:fd (Results 1 - 25 of 1924) sorted by relevance

1234567891011>>

/freebsd-head/lib/libc/sys/
H A Dclose.c45 close(int fd) argument
48 return (((int (*)(int))__libc_interposing[INTERPOS_close])(fd));
H A Dfsync.c44 fsync(int fd) argument
47 return (((int (*)(int))__libc_interposing[INTERPOS_fsync])(fd));
H A Dfdatasync.c42 fdatasync(int fd) argument
45 return (((int (*)(int))__libc_interposing[INTERPOS_fdatasync])(fd));
H A Dread.c45 read(int fd, void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_read])(fd, buf, nbytes));
H A Dwrite.c45 write(int fd, const void *buf, size_t nbytes) argument
49 __libc_interposing[INTERPOS_write])(fd, buf, nbytes));
H A Dreadv.c46 readv(int fd, const struct iovec *iov, int iovcnt) argument
50 __libc_interposing[INTERPOS_readv])(fd, iov, iovcnt));
H A Dwritev.c46 writev(int fd, const struct iovec *iov, int iovcnt) argument
50 __libc_interposing[INTERPOS_writev])(fd, iov, iovcnt));
H A Dgetdents.c37 getdents(int fd, char *buf, size_t nbytes) argument
45 return (_getdirentries(fd, buf, nbytes, NULL));
/freebsd-head/lib/libcasper/libcasper/
H A Dlibcasper_impl.c42 fd_is_valid(int fd) argument
45 return (fcntl(fd, F_GETFL) != -1 || errno != EBADF);
/freebsd-head/crypto/openssh/openbsd-compat/
H A Ddaemon.c54 int fd; local
71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
75 if (fd > 2)
76 (void)close (fd);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dclosefrom.c46 closefrom(int fd) argument
53 for (; fd <= num; fd++)
54 close(fd);
H A Dfchown.c39 fchown(int fd, uid_t owner, gid_t group) argument
H A Ddaemon.c53 int fd; local
70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
71 dup2(fd, STDIN_FILENO);
72 dup2(fd, STDOUT_FILENO);
73 dup2(fd, STDERR_FILENO);
74 if (fd > 2)
75 close (fd);
/freebsd-head/share/examples/ses/srcs/
H A Dinienc.c48 int fd; local
51 fd = open(*v, O_RDWR);
52 if (fd < 0) {
56 if (ioctl(fd, SESIOC_INIT, NULL) < 0) {
59 (void) close(fd);
/freebsd-head/contrib/ipfilter/lib/
H A Dkvatoname.c22 int fd; local
26 fd = -1;
29 fd = open(IPL_NAME, O_RDONLY);
30 if (fd == -1)
33 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
34 if (fd >= 0)
35 close(fd);
H A Dnametokva.c21 int fd; local
25 fd = -1;
28 fd = open(IPL_NAME, O_RDONLY);
29 if (fd == -1)
32 (void) (*iocfunc)(fd, SIOCFUNCL, &res);
33 if (fd >= 0)
34 close(fd);
/freebsd-head/contrib/netbsd-tests/fs/psshfs/
H A Dh_have_puffs.c37 int exitcode, fd; local
39 fd = open("/dev/puffs", O_RDWR);
40 if (fd != -1) {
42 close(fd);
/freebsd-head/contrib/ntp/lib/isc/win32/include/isc/
H A Dkeyboard.h29 int fd; member in struct:__anon282
/freebsd-head/stand/libsa/
H A Dreaddir.c34 readdirfd(int fd) argument
37 struct open_file *f = &files[fd];
39 if ((unsigned)fd >= SOPEN_MAX || !(f->f_flags & F_READ)) {
H A Dstat.c44 int fd, rv; local
46 fd = open(str, O_RDONLY);
47 if (fd < 0)
49 rv = fstat(fd, sb);
50 (void)close(fd);
/freebsd-head/share/syscons/scrnmaps/
H A Dmkscrfil.c39 FILE *fd; local
42 if ((fd = fopen(argv[1], "w")) == NULL) {
46 fwrite(&scrmap, sizeof(scrmap_t), 1, fd);
47 fclose(fd);
/freebsd-head/lib/libutil/
H A Dlogin_tty.c44 login_tty(int fd) argument
51 if (tcsetsid(fd, s) == -1)
53 (void) dup2(fd, 0);
54 (void) dup2(fd, 1);
55 (void) dup2(fd, 2);
56 if (fd > 2)
57 (void) close(fd);
/freebsd-head/lib/libc/gen/
H A Dclosedir.c54 int fd; local
58 fd = dirp->dd_fd;
69 return (fd);
H A Disatty.c40 isatty(int fd) argument
45 retval = (tcgetattr(fd, &t) != -1);
/freebsd-head/lib/libnv/
H A Dcommon_impl.h42 fd_is_valid(int fd) argument
45 return (fcntl(fd, F_GETFD) != -1 || errno != EBADF);

Completed in 107 milliseconds

1234567891011>>