Bug 1638401 - Make liblowercase also wrap fxstatat. r=froydnj
authorEmilio Cobos Álvarez <emilio@crisal.io>
Fri, 15 May 2020 17:10:34 +0000
changeset 530334 6e26d23f6b5e65fa39c60aaaa84330a585375222
parent 530333 8f343dcd9b401c4bc8abcc53b0bcb711497a1810
child 530335 775e1e4cba9d66b077b021fb251eda421cf2d140
push id37420
push usernerli@mozilla.com
push dateFri, 15 May 2020 21:52:36 +0000
treeherdermozilla-central@f340bbb582d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1638401
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1638401 - Make liblowercase also wrap fxstatat. r=froydnj This is needed to get a win cross build on my machine. Differential Revision: https://phabricator.services.mozilla.com/D75589
build/liblowercase/lib.rs
--- a/build/liblowercase/lib.rs
+++ b/build/liblowercase/lib.rs
@@ -234,16 +234,18 @@ wrappers! {
 
     fn opendir(path: *const c_char) -> *mut libc::DIR;
 
     fn __xstat(ver: c_int, path: *const c_char, buf: *mut libc::stat) -> c_int;
     fn __xstat64(ver: c_int, path: *const c_char, buf: *mut libc::stat64) -> c_int;
 
     fn __lxstat(ver: c_int, path: *const c_char, buf: *mut libc::stat) -> c_int;
     fn __lxstat64(ver: c_int, path: *const c_char, buf: *mut libc::stat64) -> c_int;
+    fn __fxstatat(ver: c_int, fd: c_int, path: *const c_char, buf: *mut libc::stat, flag: c_int) -> c_int;
+    fn __fxstatat64(ver: c_int, fd: c_int, path: *const c_char, buf: *mut libc::stat64, flag: c_int) -> c_int;
 
     fn access(path: *const c_char, mode: c_int) -> c_int;
 
     fn mkdir(path: *const c_char, mode: libc::mode_t) -> c_int;
 
     fn chdir(path: *const c_char) -> c_int;
 
     fn symlink(target: *const c_char, linkpath: *const c_char) -> c_int;