summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/semop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/semop.c')
-rw-r--r--lib/libc/gen/semop.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/libc/gen/semop.c b/lib/libc/gen/semop.c
new file mode 100644
index 0000000..0b97c6a
--- /dev/null
+++ b/lib/libc/gen/semop.c
@@ -0,0 +1,15 @@
+#include <sys/types.h>
+#include <sys/ipc.h>
+#include <sys/sem.h>
+
+#if __STDC__
+int semop(int semid, struct sembuf *sops, unsigned nsops)
+#else
+int semop(semid, sops, nsops)
+ int semid;
+ struct sembuf *sops;
+ unsigned nsops;
+#endif
+{
+ return (semsys(2, semid, sops, nsops, 0));
+}
OpenPOWER on IntegriCloud