X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..224c70764cab4e0e39a26aaf3ad3016552f62f55:/sys/sem_open.c diff --git a/sys/sem_open.c b/sys/sem_open.c index e60ee61..dd9116b 100644 --- a/sys/sem_open.c +++ b/sys/sem_open.c @@ -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 #include -#include #include #include #include @@ -35,6 +32,7 @@ #include __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__ */