Loading...
--- Libc/Libc-583/sys/sem_open.c
+++ Libc/Libc-391.2.7/sys/sem_open.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2009 Apple Inc. All rights reserved.
+ * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
@@ -21,12 +21,11 @@
* @APPLE_LICENSE_HEADER_END@
*/
-#include <sys/cdefs.h>
-
#ifdef __APPLE_PR3375657_HACK__
#include <stdio.h>
#include <semaphore.h>
+#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <alloca.h>
@@ -34,7 +33,6 @@
#include <string.h>
__private_extern__ int _sem_match(const char *name);
-extern sem_t *__sem_open(const char *, int, int, unsigned int);
sem_t *
sem_open (const char *name, int flags, ...)
@@ -64,7 +62,7 @@
value = va_arg(ap, unsigned int);
va_end(ap);
- return __sem_open(name, flags, mode, value);
+ return syscall (SYS_sem_open, name, flags, mode, value);
}
#endif /* __APPLE_PR3375657_HACK__ */