[libc-commits] [libc] [libc] Implement sleep and usleep for Linux (PR #205922)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Tue Jul 21 07:30:07 PDT 2026


================
@@ -0,0 +1,19 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Proxy header for sys/syscall.h macros.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_HDR_SYS_SYSCALL_MACROS_H
+#define LLVM_LIBC_HDR_SYS_SYSCALL_MACROS_H
+
+#include <sys/syscall.h>
----------------
labath wrote:

Are you sure about that? I fail to see the advantage of this over a direct <sys/syscall.h> inclusion. I thought the purpose of proxies was to select different headers depending on the build mode...

All of the other files include <sys/syscall.h> directly, so I'd suggest stick to that, and dealing with the header in a followup (everywhere).

https://github.com/llvm/llvm-project/pull/205922


More information about the libc-commits mailing list