[all-commits] [llvm/llvm-project] 8de338: [libc] Add more Linux-specific macro for fcntl and...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Thu Aug 6 14:03:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8de3384e15a1c0d7dc20f4a01623428a5962c328
      https://github.com/llvm/llvm-project/commit/8de3384e15a1c0d7dc20f4a01623428a5962c328
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2026-08-06 (Thu, 06 Aug 2026)

  Changed paths:
    M libc/include/llvm-libc-macros/linux/fcntl-macros.h
    M libc/include/llvm-libc-macros/linux/sched-macros.h
    M libc/src/__support/threads/linux/CMakeLists.txt
    M libc/src/__support/threads/linux/thread.cpp

  Log Message:
  -----------
  [libc] Add more Linux-specific macro for fcntl and sched. (#213727)

* Add more `O_` flags (in particular, `O_LARGEFILE`) to fcntl-macros and
group all creation/status flags (shared and arch-specific) together.
* Add Linux `CLONE_` flags to sched-macros (to be exposed from
`<sched.h>`). Those are also provided in `<linux/sched.h>` kernel
header, but the libc users often expect to find them in regular
`<sched.h>` as those are passed to `clone()` syscall wrapper. Migrate
internal Linux thread implementation to use our own header (instead of
Linux kernel) for these macro.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list