]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/semop.c
Update.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / semop.c
index 563aaae4143c087051158cc90a9ea96c2dc08979..bd120bf4b3a4a698f21ab9bc4ce85c8f4e5f14df 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <errno.h>
 #include <sys/sem.h>
 
+#include <sysdep.h>
+#include <sys/syscall.h>
+
 /* Perform user-defined atomical operation of array of semaphores.  */
 
 int
@@ -27,5 +31,5 @@ semop (semid, sops, nsops)
      struct sembuf *sops;
      unsigned int nsops;
 {
-  return __ipc (IPCOP_semop, semid, (int) nsops, 0, sops);
+  return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
 }