]>
Commit | Line | Data |
---|---|---|
ede7ec0b | 1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r | |
4 | \r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #include "SecMain.h"\r | |
16 | \r | |
17 | //\r | |
18 | // OS X Posix does some strange name mangling on these names in C.\r | |
19 | // If you call from assembler you get the wrong version of the function\r | |
20 | // So these globals get you the correct name mangled functions that can\r | |
21 | // be accessed from assembly\r | |
22 | //\r | |
a4902ccc | 23 | UnixRmDir gUnixRmDir = rmdir;\r |
24 | UnixOpenDir gUnixOpenDir = opendir;\r | |
25 | UnixStat gUnixStat = (UnixStat)stat;\r | |
26 | UnixStatFs gUnixStatFs = statfs;\r | |
27 | UnixReadDir gUnixReaddir = readdir;\r | |
28 | UnixRewindDir gUnixRewinddir = rewinddir;\r | |
ede7ec0b | 29 | \r |
a4902ccc | 30 | int\r |
31 | UnixIoCtl1 (\r | |
32 | int fd, \r | |
33 | unsigned long int __request, \r | |
34 | UINTN Arg\r | |
35 | ) \r | |
36 | {\r | |
37 | return ioctl (fd, __request, Arg);\r | |
38 | }\r | |
39 | \r | |
40 | int\r | |
41 | UnixFcntl1 (int __fd, int __cmd, UINTN Arg)\r | |
42 | {\r | |
43 | return fcntl (__fd, __cmd, Arg);\r | |
44 | } |