[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:52 PST 2025


================
@@ -0,0 +1,22 @@
+//===-- Implementation header for setsid ------------------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_UNISTD_GETPID_H
+#define LLVM_LIBC_SRC_UNISTD_GETPID_H
+
+#include "hdr/types/pid_t.h"
+#include "hdr/unistd_macros.h"
----------------
nickdesaulniers wrote:

You're not using anything from unistd here, remove.

```suggestion
```

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


More information about the libc-commits mailing list