[libc-commits] [libc] [libc] Add SCM_TIMESTAMP constants (PR #232688)
via libc-commits
libc-commits at lists.llvm.org
Fri Oct 16 04:16:20 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Pavel Labath (labath)
<details>
<summary>Changes</summary>
These are the control message types for SO_TIMESTAMP, SO_TIMESTAMPNS, and SO_TIMESTAMPING. On Linux, they are defined as aliases for their SO_ counterparts.
Assisted-by: Gemini
---
Full diff: https://github.com/llvm/llvm-project/pull/232688.diff
1 Files Affected:
- (modified) libc/include/llvm-libc-macros/linux/sys-socket-macros.h (+3)
``````````diff
diff --git a/libc/include/llvm-libc-macros/linux/sys-socket-macros.h b/libc/include/llvm-libc-macros/linux/sys-socket-macros.h
index 2c7d55c1143284..0ee66284427d88 100644
--- a/libc/include/llvm-libc-macros/linux/sys-socket-macros.h
+++ b/libc/include/llvm-libc-macros/linux/sys-socket-macros.h
@@ -143,6 +143,9 @@
#define SHUT_RDWR 2
#define SCM_RIGHTS 1
+#define SCM_TIMESTAMP SO_TIMESTAMP
+#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
+#define SCM_TIMESTAMPING SO_TIMESTAMPING
#define MSG_OOB 0x01
#define MSG_PEEK 0x02
``````````
</details>
https://github.com/llvm/llvm-project/pull/232688
More information about the libc-commits
mailing list