Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fail posix_spawn file_actions operations with negative fds | Rich Felker | 2021-01-30 | 1 | -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. | ||||
* | use restrict everywhere it's required by c99 and/or posix 2008 | Rich Felker | 2012-09-06 | 1 | -1/+1 |
| | | | | | | | | to deal with the fact that the public headers may be used with pre-c99 compilers, __restrict is used in place of restrict, and defined appropriately for any supported compiler. we also avoid the form [restrict] since older versions of gcc rejected it due to a bug in the original c99 standard, and instead use the form *restrict. | ||||
* | fix backwards posix_spawn file action order | Rich Felker | 2011-05-29 | 1 | -1/+2 |
| | |||||
* | add file actions support to posix_spawn | Rich Felker | 2011-05-28 | 1 | -0/+19 |