[libc-commits] [libc] [libc][sys/sem] Add sys v sem headers and syscall wrapper implementation (PR #185914)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Thu Mar 12 07:41:30 PDT 2026
================
@@ -1,15 +1,18 @@
-//===----------------------------------------------------------------------===//
+//===-- Definition of struct sembuf ---------------------------------------===//
//
// 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 "clc/math/clc_exp.h"
+#ifndef LLVM_LIBC_TYPES_STRUCT_SEMBUF_H
+#define LLVM_LIBC_TYPES_STRUCT_SEMBUF_H
-#define __CLC_FUNCTION __clc_exp
-#define __CLC_IMPL_FUNCTION(x) __builtin_elementwise_exp
-#define __CLC_BODY "clc/shared/unary_def.inc"
+struct sembuf {
+ unsigned short sem_num;
----------------
SchrodingerZhu wrote:
Maybe it is worth mention this short is changed to unsigned short in POSIX issue 7.
https://github.com/llvm/llvm-project/pull/185914
More information about the libc-commits
mailing list