3 Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 // OS X Posix does some strange name mangling on these names in C.
19 // If you call from assembler you get the wrong version of the function
20 // So these globals get you the correct name mangled functions that can
21 // be accessed from assembly
23 UnixRmDir gUnixRmDir
= rmdir
;
24 UnixOpenDir gUnixOpenDir
= opendir
;
25 UnixStat gUnixStat
= (UnixStat
)stat
;
26 UnixStatFs gUnixStatFs
= statfs
;
27 UnixReadDir gUnixReaddir
= readdir
;
28 UnixRewindDir gUnixRewinddir
= rewinddir
;
33 unsigned long int __request
,
37 return ioctl (fd
, __request
, Arg
);
41 UnixFcntl1 (int __fd
, int __cmd
, UINTN Arg
)
43 return fcntl (__fd
, __cmd
, Arg
);