diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/shmget.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/shmget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/shmget.c b/sysdeps/unix/sysv/linux/shmget.c index 8754191862..73bfe97dc7 100644 --- a/sysdeps/unix/sysv/linux/shmget.c +++ b/sysdeps/unix/sysv/linux/shmget.c @@ -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. @@ -17,9 +17,13 @@ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include <errno.h> #include <sys/shm.h> #include <stdlib.h> /* for definition of NULL */ +#include <sysdep.h> +#include <sys/syscall.h> + /* Return an identifier for an shared memory segment of at least size SIZE which is associated with KEY. */ @@ -29,5 +33,5 @@ shmget (key, size, shmflg) int size; int shmflg; { - return __ipc (IPCOP_shmget, key, size, shmflg, NULL); + return INLINE_SYSCALL (ipc, 5, IPCOP_shmget, key, size, shmflg, NULL); } |