Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 6 of 6) sorted by relevance

/librt/
A Dspawn_faction_addclose.c28 int fd) in posix_spawn_file_actions_addclose() argument
34 if (fd < 0 || fd >= maxfd) in posix_spawn_file_actions_addclose()
46 rec->action.open_action.fd = fd; in posix_spawn_file_actions_addclose()
A Dspawn_faction_adddup2.c28 int fd, int newfd) in posix_spawn_file_actions_adddup2() argument
34 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) in posix_spawn_file_actions_adddup2()
46 rec->action.dup2_action.fd = fd; in posix_spawn_file_actions_adddup2()
A Dspawn_int.h11 int fd; member
14 int fd; member
18 int fd; member
A Dspawn_faction_addopen.c28 int fd, const char *path, int oflag, in posix_spawn_file_actions_addopen() argument
35 if (fd < 0 || fd >= maxfd) in posix_spawn_file_actions_addopen()
47 rec->action.open_action.fd = fd; in posix_spawn_file_actions_addopen()
A Dshm.c60 int fd; in shm_open() local
70 fd = open(shm_name, oflag | O_CLOEXEC, mode); in shm_open()
72 fd = open(shm_name, oflag, mode); in shm_open()
73 if (fd >= 0) { in shm_open()
74 fcntl(fd, F_SETFD, FD_CLOEXEC); in shm_open()
87 if (fd < 0 && errno == EISDIR) in shm_open()
91 return fd; in shm_open()
A Dspawn.c54 if (close_not_cancel(action->action.close_action.fd) != 0) { in execute_file_actions()
61 if (0 > action->action.close_action.fd in execute_file_actions()
62 || action->action.close_action.fd >= fdlimit.rlim_cur) in execute_file_actions()
78 if (new_fd != action->action.open_action.fd) { in execute_file_actions()
79 if (dup2(new_fd, action->action.open_action.fd) in execute_file_actions()
80 != action->action.open_action.fd) in execute_file_actions()
89 if (dup2(action->action.dup2_action.fd, in execute_file_actions()

Completed in 12 milliseconds