|
Added
Link Here
|
| 1 |
https://github.com/dlang/druntime/pull/2668 |
| 2 |
|
| 3 |
--- runtime/druntime/src/core/sys/freebsd/sys/event.d.orig 2019-05-27 19:11:41 UTC |
| 4 |
+++ runtime/druntime/src/core/sys/freebsd/sys/event.d |
| 5 |
@@ -144,6 +144,7 @@ enum |
| 6 |
} |
| 7 |
|
| 8 |
int kqueue(); |
| 9 |
+pragma(mangle, "kevent@FBSD_1.0") |
| 10 |
int kevent(int kq, const kevent_t *changelist, int nchanges, |
| 11 |
kevent_t *eventlist, int nevents, |
| 12 |
const timespec *timeout); |
| 13 |
--- runtime/druntime/src/core/sys/freebsd/sys/mount.d.orig 2019-05-27 19:11:41 UTC |
| 14 |
+++ runtime/druntime/src/core/sys/freebsd/sys/mount.d |
| 15 |
@@ -288,17 +288,17 @@ enum uint VQ_FLAG2000 = 0x2000; |
| 16 |
enum uint VQ_FLAG4000 = 0x4000; |
| 17 |
enum uint VQ_FLAG8000 = 0x8000; |
| 18 |
|
| 19 |
-int fhopen(const fhandle_t*, int); |
| 20 |
-int fhstat(const fhandle_t*, stat_t*); |
| 21 |
-int fhstatfs(const fhandle_t*, statfs_t*); |
| 22 |
-int fstatfs(int, statfs_t*); |
| 23 |
-int getfh(const char*, fhandle_t*); |
| 24 |
-int getfsstat(statfs_t*, c_long, int); |
| 25 |
-int getmntinfo(statfs_t**, int); |
| 26 |
-int lgetfh(const char*, fhandle_t*); |
| 27 |
-int mount(const char*, const char*, int, void*); |
| 28 |
+pragma(mangle, "fhopen@@FBSD_1.0") int fhopen(const fhandle_t*, int); |
| 29 |
+pragma(mangle, "fhstat@FBSD_1.0") int fhstat(const fhandle_t*, stat_t*); |
| 30 |
+pragma(mangle, "fhstatfs@FBSD_1.0") int fhstatfs(const fhandle_t*, statfs_t*); |
| 31 |
+pragma(mangle, "fstatfs@FBSD_1.0") int fstatfs(int, statfs_t*); |
| 32 |
+pragma(mangle, "getfh@@FBSD_1.0") int getfh(const char*, fhandle_t*); |
| 33 |
+pragma(mangle, "getfsstat@FBSD_1.0") int getfsstat(statfs_t*, c_long, int); |
| 34 |
+pragma(mangle, "getmntinfo@FBSD_1.0") int getmntinfo(statfs_t**, int); |
| 35 |
+pragma(mangle, "lgetfh@@FBSD_1.0") int lgetfh(const char*, fhandle_t*); |
| 36 |
+pragma(mangle, "mount@@FBSD_1.0") int mount(const char*, const char*, int, void*); |
| 37 |
//int nmount(iovec*, uint, int); |
| 38 |
-int statfs(const char*, statfs_t*); |
| 39 |
-int unmount(const char*, int); |
| 40 |
+pragma(mangle, "statfs@FBSD_1.0") int statfs(const char*, statfs_t*); |
| 41 |
+pragma(mangle, "unmount@@FBSD_1.0") int unmount(const char*, int); |
| 42 |
|
| 43 |
//int getvfsbyname(const char*, xvfsconf*); |
| 44 |
--- runtime/druntime/src/core/sys/posix/dirent.d.orig 2019-05-27 19:11:41 UTC |
| 45 |
+++ runtime/druntime/src/core/sys/posix/dirent.d |
| 46 |
@@ -161,7 +161,7 @@ else version (FreeBSD) |
| 47 |
|
| 48 |
alias void* DIR; |
| 49 |
|
| 50 |
- dirent* readdir(DIR*); |
| 51 |
+ pragma(mangle, "readdir@FBSD_1.0") dirent* readdir(DIR*); |
| 52 |
} |
| 53 |
else version (NetBSD) |
| 54 |
{ |
| 55 |
@@ -473,7 +473,7 @@ else version (Darwin) |
| 56 |
} |
| 57 |
else version (FreeBSD) |
| 58 |
{ |
| 59 |
- int readdir_r(DIR*, dirent*, dirent**); |
| 60 |
+ pragma(mangle, "readdir_r@FBSD_1.0") int readdir_r(DIR*, dirent*, dirent**); |
| 61 |
} |
| 62 |
else version (DragonFlyBSD) |
| 63 |
{ |
| 64 |
@@ -540,8 +540,8 @@ version (CRuntime_Glibc) |
| 65 |
} |
| 66 |
else version (FreeBSD) |
| 67 |
{ |
| 68 |
- void seekdir(DIR*, c_long); |
| 69 |
- c_long telldir(DIR*); |
| 70 |
+ pragma(mangle, "seekdir@@FBSD_1.0") void seekdir(DIR*, c_long); |
| 71 |
+ pragma(mangle, "telldir@@FBSD_1.0") c_long telldir(DIR*); |
| 72 |
} |
| 73 |
else version (NetBSD) |
| 74 |
{ |
| 75 |
--- runtime/druntime/src/core/sys/posix/sys/stat.d.orig 2019-05-27 19:11:41 UTC |
| 76 |
+++ runtime/druntime/src/core/sys/posix/sys/stat.d |
| 77 |
@@ -1859,9 +1859,9 @@ else version (Darwin) |
| 78 |
} |
| 79 |
else version (FreeBSD) |
| 80 |
{ |
| 81 |
- int fstat(int, stat_t*); |
| 82 |
- int lstat(in char*, stat_t*); |
| 83 |
- int stat(in char*, stat_t*); |
| 84 |
+ pragma(mangle, "fstat@FBSD_1.0") int fstat(int, stat_t*); |
| 85 |
+ pragma(mangle, "lstat@FBSD_1.0") int lstat(in char*, stat_t*); |
| 86 |
+ pragma(mangle, "stat@FBSD_1.0") int stat(in char*, stat_t*); |
| 87 |
} |
| 88 |
else version (NetBSD) |
| 89 |
{ |
| 90 |
@@ -1975,7 +1975,7 @@ else version (FreeBSD) |
| 91 |
enum S_IFLNK = 0xA000; // octal 0120000 |
| 92 |
enum S_IFSOCK = 0xC000; // octal 0140000 |
| 93 |
|
| 94 |
- int mknod(in char*, mode_t, dev_t); |
| 95 |
+ pragma(mangle, "mknod@FBSD_1.0") int mknod(in char*, mode_t, dev_t); |
| 96 |
} |
| 97 |
else version (NetBSD) |
| 98 |
{ |
| 99 |
--- runtime/druntime/src/core/sys/posix/sys/statvfs.d.orig 2019-05-27 19:11:41 UTC |
| 100 |
+++ runtime/druntime/src/core/sys/posix/sys/statvfs.d |
| 101 |
@@ -254,8 +254,8 @@ else version (FreeBSD) |
| 102 |
enum uint ST_RDONLY = 0x1; |
| 103 |
enum uint ST_NOSUID = 0x2; |
| 104 |
|
| 105 |
- int fstatvfs(int, statvfs_t*); |
| 106 |
- int statvfs(const char*, statvfs_t*); |
| 107 |
+ pragma(mangle, "fstatvfs@FBSD_1.0") int fstatvfs(int, statvfs_t*); |
| 108 |
+ pragma(mangle, "statvfs@FBSD_1.0") int statvfs(const char*, statvfs_t*); |
| 109 |
} |
| 110 |
else |
| 111 |
{ |