Skip to content

Commit 15506d2

Browse files
committed
---
yaml --- r: 107207 b: refs/heads/try c: 8959ade h: refs/heads/master i: 107205: 3ad2f35 107203: 5575787 107199: bbb59ef v: v3
1 parent d611a86 commit 15506d2

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5-
refs/heads/try: ca406fa64643e68adcb47b509b3152b99ccab72b
5+
refs/heads/try: 8959aded2c5158792f03474d33f13e44266e4db7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/liblibc/lib.rs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,18 +3663,12 @@ pub mod funcs {
36633663
// opendir$INODE64, etc. but for some reason rustc
36643664
// doesn't link it correctly on i686, so we're going
36653665
// through a C function that mysteriously does work.
3666-
pub unsafe fn opendir(dirname: *c_char) -> *DIR {
3667-
rust_opendir(dirname)
3668-
}
3669-
pub unsafe fn readdir_r(dirp: *DIR,
3670-
entry: *mut dirent_t,
3671-
result: *mut *mut dirent_t) -> c_int {
3672-
rust_readdir_r(dirp, entry, result)
3673-
}
36743666

36753667
extern {
3676-
fn rust_opendir(dirname: *c_char) -> *DIR;
3677-
fn rust_readdir_r(dirp: *DIR, entry: *mut dirent_t,
3668+
#[link_name="rust_opendir"]
3669+
pub fn opendir(dirname: *c_char) -> *DIR;
3670+
#[link_name="rust_readdir_r"]
3671+
pub fn readdir_r(dirp: *DIR, entry: *mut dirent_t,
36783672
result: *mut *mut dirent_t) -> c_int;
36793673
}
36803674

@@ -4271,4 +4265,4 @@ pub mod funcs {
42714265
}
42724266
}
42734267

4274-
#[test] fn work_on_windows() { } // this is needed to make rustc happy on windows
4268+
#[test] fn work_on_windows() { } // FIXME #10872 needed for a happy windows

0 commit comments

Comments
 (0)