summaryrefslogtreecommitdiff
path: root/UnixPkg/Sec/X64/NameManglingFix.c
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/Sec/X64/NameManglingFix.c')
-rw-r--r--UnixPkg/Sec/X64/NameManglingFix.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/UnixPkg/Sec/X64/NameManglingFix.c b/UnixPkg/Sec/X64/NameManglingFix.c
index dc2ea36..a3fd6a6 100644
--- a/UnixPkg/Sec/X64/NameManglingFix.c
+++ b/UnixPkg/Sec/X64/NameManglingFix.c
@@ -20,8 +20,25 @@
// So these globals get you the correct name mangled functions that can
// be accessed from assembly
//
-UnixRmDir gUnixRmDir = rmdir;
-UnixOpenDir gUnixOpenDir = opendir;
-UnixStat gUnixStat = (UnixStat)stat;
-UnixStatFs gUnixStatFs = statfs;
+UnixRmDir gUnixRmDir = rmdir;
+UnixOpenDir gUnixOpenDir = opendir;
+UnixStat gUnixStat = (UnixStat)stat;
+UnixStatFs gUnixStatFs = statfs;
+UnixReadDir gUnixReaddir = readdir;
+UnixRewindDir gUnixRewinddir = rewinddir;
+int
+UnixIoCtl1 (
+ int fd,
+ unsigned long int __request,
+ UINTN Arg
+ )
+{
+ return ioctl (fd, __request, Arg);
+}
+
+int
+UnixFcntl1 (int __fd, int __cmd, UINTN Arg)
+{
+ return fcntl (__fd, __cmd, Arg);
+} \ No newline at end of file