]> git.saurik.com Git - apple/libc.git/blobdiff - sys/shm_unlink.c
Libc-583.tar.gz
[apple/libc.git] / sys / shm_unlink.c
index 07e1ad6babd259e713fa9a8676a0e3e8e6ccd205..869bfc5bd9a717855d408ca5bb017a78ed512567 100644 (file)
@@ -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
  * @APPLE_LICENSE_HEADER_END@
  */
 
+#include <sys/cdefs.h>
+
 #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 _shm_match(const char *name);
+extern int __shm_unlink (const char *);
 
 int
 shm_unlink (const char *name)
@@ -53,7 +53,7 @@ shm_unlink (const char *name)
                name = buffer;
         }
 
-       return syscall (SYS_shm_unlink, name);
+       return __shm_unlink(name);
 }
 
 #endif /* __APPLE_PR3375657_HACK__ */