Skip to content

feat: add missing lch* syscalls to *BSD platforms - #5400

Open
ngie-eign wants to merge 1 commit into
rust-lang:mainfrom
ngie-eign:add-lch-functions
Open

feat: add missing lch* syscalls to *BSD platforms#5400
ngie-eign wants to merge 1 commit into
rust-lang:mainfrom
ngie-eign:add-lch-functions

Conversation

@ngie-eign

@ngie-eign ngie-eign commented Aug 11, 2026

Copy link
Copy Markdown

This change adds the following system calls to various 4.4BSD derivatives:

  • FreeBSD(-like)
    • lchmod
  • macOS
    • lchflags
    • lchmod
  • NetBSD
    • lchmod

These system calls are available on all ancient versions of *BSD (4.4BSD, FreeBSD 3.0, etc).

@rustbot

rustbot commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in a NetBSD-like module

cc @semarie

This change adds the following system calls to various 4.4BSD
derivatives:

* FreeBSD(-like)
    * lchmod
* macOS
    * lchflags
    * lchmod
* NetBSD
    * lchmod

These system calls are available on all ancient versions of *BSD
(4.4BSD, FreeBSD 3.0, etc).

Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
@tgross35

Copy link
Copy Markdown
Contributor

Diff looks reasonable but could you please add source permalinks to the commit message? https://github.com/rust-lang/libc/blob/main/CONTRIBUTING.md#source-links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants