]> git.saurik.com Git - apple/libc.git/blobdiff - sys/shm_open.c
Libc-498.tar.gz
[apple/libc.git] / sys / shm_open.c
index 3ec04119a96e525cf16ba22a45cf7eb7a44523cc..0bb319eeb1392298a405d393d4ae8dde6cf14674 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
 #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_open (const char *, int, int);
 
 int
 shm_open (const char *name, int flags, mode_t mode)
@@ -53,7 +51,7 @@ shm_open (const char *name, int flags, mode_t mode)
                name = buffer;
         }
 
-       return syscall (SYS_shm_open, name, flags, mode);
+       return __shm_open(name, flags, mode);
 }
 
 #endif /* __APPLE_PR3375657_HACK__ */