summaryrefslogtreecommitdiff
path: root/src/process/posix_spawn_file_actions_addfchdir.c
AgeCommit message (Collapse)AuthorLines
2021-01-30fail posix_spawn file_actions operations with negative fdsRich Felker-0/+1
these functions are specified to fail with EBADF on negative fd arguments. apart from close, they are also specified to fail if the value exceeds OPEN_MAX, but as written it is not clear that this imposes any requirement when OPEN_MAX is not defined, and it's undesirable to impose a dynamic limit (via setrlimit) here since the limit at the time of posix_spawn may be different from the limit at the time of setting up the file actions. this may require revisiting later.
2019-08-30add posix_spawn [f]chdir file actionsRich Felker-0/+17
these are presently extensions, thus named with _np to match glibc and other implementations that provide them; however they are likely to be standardized in the future without the _np suffix as a result of Austin Group issue 1208. if so, both names will be kept as aliases.