[libc-commits] [libc] [libc] Implement killpg (PR #237561)

Anshitha Yeruva via libc-commits libc-commits at lists.llvm.org
Sat Oct 31 17:55:37 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) {
----------------
anshithayeruva wrote:

Done. Formatted with clang-format and cmake-format.

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


More information about the libc-commits mailing list