Skip to content

Commit 2e04473

Browse files
committed
---
yaml --- r: 274971 b: refs/heads/stable c: c84ab39 h: refs/heads/master i: 274969: 516c73f 274967: 5c9cf29
1 parent 1e03020 commit 2e04473

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 8f2d7d956ce54e77e98472f4d80e24fdf662560e
32+
refs/heads/stable: c84ab396350b81f07a87071c6b305cc513872a3e
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libstd/sys/unix/fs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ use sys::{cvt, cvt_r};
2626
use sys_common::{AsInner, FromInner};
2727

2828
#[cfg(target_os = "linux")]
29-
use libc::{stat64, fstat64, lstat64, off64_t, ftruncate64, lseek64, dirent64, readdir64_r};
29+
use libc::{stat64, fstat64, lstat64, off64_t, ftruncate64, lseek64, dirent64, readdir64_r, open64};
3030
#[cfg(not(target_os = "linux"))]
3131
use libc::{stat as stat64, fstat as fstat64, lstat as lstat64, off_t as off64_t,
32-
ftruncate as ftruncate64, lseek as lseek64, dirent as dirent64};
32+
ftruncate as ftruncate64, lseek as lseek64, dirent as dirent64, open as open64};
3333
#[cfg(not(any(target_os = "linux", target_os = "solaris")))]
3434
use libc::{readdir_r as readdir64_r};
3535

@@ -397,7 +397,7 @@ impl File {
397397
try!(opts.get_creation_mode()) |
398398
(opts.custom_flags as c_int & !libc::O_ACCMODE);
399399
let fd = try!(cvt_r(|| unsafe {
400-
libc::open(path.as_ptr(), flags, opts.mode as c_int)
400+
open64(path.as_ptr(), flags, opts.mode as c_int)
401401
}));
402402
let fd = FileDesc::new(fd);
403403

0 commit comments

Comments
 (0)