Lines Matching defs:fd
40 int fd;
49 fd = open(pathname, oflags);
50 if (fd == -1) {
60 v = fcntl(fd, F_GETFD, 0);
63 (void)fcntl(fd, F_SETFD, v | FD_CLOEXEC);
66 return fd;
71 int fd;
80 fd = openat(dir_fd, pathname, oflags);
81 if (fd == -1) {
91 v = fcntl(fd, F_GETFD, 0);
94 (void)fcntl(fd, F_SETFD, v | FD_CLOEXEC);
97 return fd;