Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[solarish/freebsd] add a few missing constants and functions #3936

Merged
merged 1 commit into from
Oct 15, 2024

Commits on Sep 20, 2024

  1. [solarish/freebsd] add a few missing constants and functions

    Add:
    
    * `O_RSYNC` on Solaris and illumos, based on the source code at [1]. This was
      added a long time ago, and the blame indicates that the constant is shared
      with Solaris.
    * `POLLRDHUP` on illumos, based on the source code at [2]. This was also added
      a long time ago, but is not in the man page (I'll track that down separately,
      but it has been supported and used for many years). I cannot verify whether
      this is in Solaris.
    * `POLLRDHUP` on FreeBSD, based on this man page [3]. This was added in 2021 [4].
    * `posix_fadvise` on illumos, based on this man page [5]. The related constants
      are on GitHub [6]. `posix_fadvise` seems to exist on Solaris [7] but I
      haven't been able to verify any of the constants so I've left it out of this
      PR.
    * `posix_fallocate` on illumos (man page [8]) and Solaris (man page [9]).
    
    [1]: https://github.com/illumos/illumos-gate/blame/f389e29fb4a3b48598f4e25151eb570247c6deed/usr/src/uts/common/sys/fcntl.h#L70
    [2]: https://github.com/illumos/illumos-gate/blame/f389e29fb4a3b48598f4e25151eb570247c6deed/usr/src/uts/common/sys/poll.h#L66
    [3]: https://man.freebsd.org/cgi/man.cgi?poll
    [4]: https://cgit.freebsd.org/src/commit/sys/sys/poll.h?id=3aaaa2efde896e19d229ee2cf09fe7e6ab0fbf6e
    [5]: https://illumos.org/man/3C/posix_fadvise
    [6]: https://github.com/illumos/illumos-gate/blob/f389e29fb4a3b48598f4e25151eb570247c6deed/usr/src/uts/common/sys/fcntl.h#L407-L412
    [7]: https://docs.oracle.com/cd/E88353_01/html/E37843/posix-fadvise-3c.html
    [8]: https://illumos.org/man/3C/posix_fallocate
    [9]: https://docs.oracle.com/cd/E88353_01/html/E37843/posix-fallocate-3c.html
    sunshowers committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    52e81a8 View commit details
    Browse the repository at this point in the history