Loading...
--- Libc/Libc-391.2.7/sys/shm_open.c
+++ Libc/Libc-583/sys/shm_open.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999, 2009 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
@@ -21,16 +21,18 @@
* @APPLE_LICENSE_HEADER_END@
*/
+#include <sys/cdefs.h>
+
#ifdef __APPLE_PR3375657_HACK__
#include <stdio.h>
-#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <alloca.h>
#include <string.h>
__private_extern__ int _shm_match(const char *name);
+extern int __shm_open (const char *, int, int);
int
shm_open (const char *name, int flags, mode_t mode)
@@ -51,7 +53,7 @@
name = buffer;
}
- return syscall (SYS_shm_open, name, flags, mode);
+ return __shm_open(name, flags, mode);
}
#endif /* __APPLE_PR3375657_HACK__ */