[all-commits] [llvm/llvm-project] 86d4fa: [libc] Add remaining SO_ constants (#202278)

Pavel Labath via All-commits all-commits at lists.llvm.org
Mon Jun 8 07:01:23 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86d4fadf5adb00089b2da5e3cdb4a38d8e0340fb
      https://github.com/llvm/llvm-project/commit/86d4fadf5adb00089b2da5e3cdb4a38d8e0340fb
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M libc/include/llvm-libc-macros/linux/sys-socket-macros.h
    M libc/test/src/sys/socket/linux/CMakeLists.txt
    M libc/test/src/sys/socket/linux/socketopt_test.cpp

  Log Message:
  -----------
  [libc] Add remaining SO_ constants (#202278)

There are two complications here:
- These options have different values on some architectures. These
aren't architectures we're likely to support soon, but I've left a
#error so that it lights up in a porting attempt.
- The time-related options have two flavours, depending on the
sizeof(time_t). Since we now support only 64-bit time_t, and only
kernels newer than 5.10, we can unconditionally use the new versions
(released in 5.1). I added a test for one of the time options to verify
that it works.



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