]> git.saurik.com Git - apple/libc.git/blobdiff - sys/sem_open.c
Libc-498.tar.gz
[apple/libc.git] / sys / sem_open.c
index e60ee613ecc1ed717bac1d9d01ddd380b5b0df58..dd9116b32aaffcdabf8f433cfd1aedc51528379e 100644 (file)
@@ -3,8 +3,6 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
@@ -27,7 +25,6 @@
 
 #include <stdio.h>
 #include <semaphore.h>
-#include <sys/syscall.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <alloca.h>
@@ -35,6 +32,7 @@
 #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 @@ sem_open (const char *name, int flags, ...)
        value = va_arg(ap, unsigned int);
        va_end(ap);
 
-       return syscall (SYS_sem_open, name, flags, mode, value);
+       return __sem_open(name, flags, mode, value);
 }
 
 #endif /* __APPLE_PR3375657_HACK__ */