Loading...
sys/sem_unlink.c Libc-320 Libc-498
--- Libc/Libc-320/sys/sem_unlink.c
+++ Libc/Libc-498/sys/sem_unlink.c
@@ -2,8 +2,6 @@
  * Copyright (c) 1999 Apple Computer, 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
@@ -26,13 +24,13 @@
 #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 _sem_match(const char *name);
+extern int __sem_unlink(const char *);
 
 int
 sem_unlink (const char *name)
@@ -53,7 +51,7 @@
 		name = buffer;
         }
 
-	return syscall (SYS_sem_unlink, name);
+	return __sem_unlink(name);
 }
 
 #endif /* __APPLE_PR3375657_HACK__ */