[libc-commits] [libc] [libc][unistd] Implement setsid (PR #125704)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Feb 4 09:00:53 PST 2025
================
@@ -0,0 +1,23 @@
+//===-- Linux implementation of setsid-------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/unistd/setsid.h"
+
+#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
+#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
----------------
nickdesaulniers wrote:
Re-include hdr/types/pid_t.h here please (IWYU).
https://github.com/llvm/llvm-project/pull/125704
More information about the libc-commits
mailing list