X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/59e0d9fe772464b93d835d2a2964457702469a43..34e8f8296870d0e8695f90e1a54240a589d41312:/sys/sem_unlink.c diff --git a/sys/sem_unlink.c b/sys/sem_unlink.c index 10e0dd9..330c840 100644 --- a/sys/sem_unlink.c +++ b/sys/sem_unlink.c @@ -1,10 +1,8 @@ /* - * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. + * Copyright (c) 1999, 2009 Apple Inc. All rights reserved. * * @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 @@ -23,16 +21,18 @@ * @APPLE_LICENSE_HEADER_END@ */ +#include + #ifdef __APPLE_PR3375657_HACK__ #include -#include #include #include #include #include __private_extern__ int _sem_match(const char *name); +extern int __sem_unlink(const char *); int sem_unlink (const char *name) @@ -53,7 +53,7 @@ sem_unlink (const char *name) name = buffer; } - return syscall (SYS_sem_unlink, name); + return __sem_unlink(name); } #endif /* __APPLE_PR3375657_HACK__ */