Lines Matching defs:fd
52 /* Mingw has no way to create an arbitrary fd. Iterate until all
155 F_DUPFD - duplicate FD, with int ARG being the minimum target fd.
160 target fd. If successful, return the duplicate, which will not be
169 rpl_fcntl (int fd, int action, /* arg */...)
181 result = dupfd (fd, target, 0);
193 /* Haiku alpha 2 loses fd flags on original. */
194 int flags = fcntl (fd, F_GETFD);
200 result = fcntl (fd, action, target);
201 if (0 <= result && fcntl (fd, F_SETFD, flags) == -1)
210 result = _gl_register_dup (fd, result);
222 result = dupfd (fd, target, O_CLOEXEC);
235 result = fcntl (fd, action, target);
241 result = _gl_register_dup (fd, result);
246 result = rpl_fcntl (fd, F_DUPFD, target);
253 result = rpl_fcntl (fd, F_DUPFD, target);
273 HANDLE handle = (HANDLE) _get_osfhandle (fd);
283 if (0 <= dup2 (fd, fd))
291 API for changing the O_NOINHERIT bit on an fd, and merely
302 result = fcntl (fd, action, p);