Skip to content

Fallback on _POSIX_PIPE_BUF w/ missing PIPE_BUF#49

Merged
rgrinberg merged 1 commit intojanestreet:masterfrom
pinotree:pipe_buf
Sep 6, 2023
Merged

Fallback on _POSIX_PIPE_BUF w/ missing PIPE_BUF#49
rgrinberg merged 1 commit intojanestreet:masterfrom
pinotree:pipe_buf

Conversation

@pinotree
Copy link
Copy Markdown
Contributor

@pinotree pinotree commented Jul 3, 2023

PIPE_BUF is optional in POSIX, e.g. "where the corresponding value is equal to or greater than the stated minimum, but where the value can vary depending on the file to which it is applied." [1]

GNU/Hurd does not provide PIPE_BUF, so fallback to its minimum acceptable value, that is _POSIX_PIPE_BUF.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

PIPE_BUF is optional in POSIX, e.g. "where the corresponding value is
equal to or greater than the stated minimum, but where the value can
vary depending on the file to which it is applied." [1]

GNU/Hurd does not provide PIPE_BUF, so fallback to its minimum
acceptable value, that is _POSIX_PIPE_BUF.

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
@rgrinberg rgrinberg merged commit 3107d57 into janestreet:master Sep 6, 2023
@pinotree pinotree deleted the pipe_buf branch September 8, 2023 05:48
dkalinichenko-js pushed a commit to dkalinichenko-js/opam-repository that referenced this pull request Nov 12, 2024
CHANGES:

- Support older GCC like 4.8.5 (janestreet/spawn#59)

- Fix spawning processes on Windows when environment contains non-ascii
  characters (janestreet/spawn#58)

- Skip calls to pthread_cancelstate on android, as its not available (janestreet/spawn#52)

- Fix compatibility with systems that do not define `PIPE_BUF`. Use
  `_POSIX_PIPE_BUF` as a fallback. (janestreet/spawn#49)

- [haiku] Fix compilation on Haiku OS. The header sys/syscalls.h isn't
  available, neither is pipe2()

- Allow setting the sigprocmask for spawned processes (janestreet/spawn#32)
dkalinichenko-js pushed a commit to dkalinichenko-js/opam-repository that referenced this pull request Nov 12, 2024
CHANGES:

- Support older GCC like 4.8.5 (janestreet/spawn#59)

- Fix spawning processes on Windows when environment contains non-ascii
  characters (janestreet/spawn#58)

- Skip calls to pthread_cancelstate on android, as its not available (janestreet/spawn#52)

- Fix compatibility with systems that do not define `PIPE_BUF`. Use
  `_POSIX_PIPE_BUF` as a fallback. (janestreet/spawn#49)

- [haiku] Fix compilation on Haiku OS. The header sys/syscalls.h isn't
  available, neither is pipe2()

- Allow setting the sigprocmask for spawned processes (janestreet/spawn#32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants