[libc-commits] [libc] [libc] Implement killpg (PR #237561)
via libc-commits
libc-commits at lists.llvm.org
Sat Oct 31 07:14:28 PDT 2026
================
@@ -0,0 +1,25 @@
+//===-- Linux implementation of killpg ------------------------------------===//
+//
+// 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/signal/killpg.h"
+
+#include "hdr/errno_macros.h"
+#include "src/__support/common.h"
+#include "src/__support/libc_errno.h"
+#include "src/__support/macros/config.h"
+#include "src/signal/kill.h"
+
+namespace LIBC_NAMESPACE_DECL {
+LLVM_LIBC_FUNCTION(int, killpg, (pid_t pgrp, int sig)) {
+ if(pgrp < 0) {
----------------
un-pixelated wrote:
nit: should be `if (pgrp < 0) {`
Was clang-format ran before pushing the code?
https://github.com/llvm/llvm-project/pull/237561
More information about the libc-commits
mailing list