[all-commits] [llvm/llvm-project] 10be66: [libc] Implement getsockopt and setsockopt on linu...

Pavel Labath via All-commits all-commits at lists.llvm.org
Thu Apr 16 03:06:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10be669bc5a8c6b8b988f3e91760f9d7c391e246
      https://github.com/llvm/llvm-project/commit/10be669bc5a8c6b8b988f3e91760f9d7c391e246
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/riscv/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/include/llvm-libc-macros/linux/sys-socket-macros.h
    M libc/include/sys/socket.yaml
    M libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
    A libc/src/__support/OSUtil/linux/syscall_wrappers/getsockopt.h
    A libc/src/__support/OSUtil/linux/syscall_wrappers/setsockopt.h
    M libc/src/sys/socket/CMakeLists.txt
    A libc/src/sys/socket/getsockopt.h
    M libc/src/sys/socket/linux/CMakeLists.txt
    A libc/src/sys/socket/linux/getsockopt.cpp
    A libc/src/sys/socket/linux/setsockopt.cpp
    A libc/src/sys/socket/setsockopt.h
    M libc/test/src/sys/socket/linux/CMakeLists.txt
    A libc/test/src/sys/socket/linux/socketopt_test.cpp

  Log Message:
  -----------
  [libc] Implement getsockopt and setsockopt on linux (#192237)

This patch implements getsockopt and setsockopt socket functions on
Linux. It follows the established pattern of wrapping socketcall or
using direct syscalls.

I added a basic test setting a couple of options.

I only added the first couple of simple constants (e.g. whose value does
not depend on the architecture). I've left the others for a separate
patch.



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