diff options
author | bors <bors@rust-lang.org> | 2023-03-13 09:11:40 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-03-13 09:11:40 +0000 |
commit | fee018879fcda010c3b6f15e73d82b80bfd8f672 (patch) | |
tree | a804ba97dcfc5dc2bacfbb35e1fad2905b834242 /src/unix/mod.rs | |
parent | 7d6c05045537000710bd56654b7d471abe3f1df6 (diff) | |
parent | 3a7dc426ec0b716a41c2c61aaa4ae7ab177e0831 (diff) | |
download | rust-libc-homu-tmp.tar.gz |
Auto merge of #3145 - coolreader18:redox-locale, r=JohnTitorhomu-tmp
Add LC_ constants for redox (and truncate() is now supported)
From `relibc/include/bits/locale.h` and `relibc/src/header/unistd/mod.rs`
Diffstat (limited to 'src/unix/mod.rs')
-rw-r--r-- | src/unix/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index b005970b9d..75d511e390 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -1048,6 +1048,7 @@ extern "C" { pub fn symlink(path1: *const c_char, path2: *const c_char) -> ::c_int; + pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; pub fn ftruncate(fd: ::c_int, length: off_t) -> ::c_int; pub fn signal(signum: ::c_int, handler: sighandler_t) -> sighandler_t; @@ -1447,7 +1448,6 @@ cfg_if! { if #[cfg(not(target_os = "redox"))] { extern { pub fn getsid(pid: pid_t) -> pid_t; - pub fn truncate(path: *const c_char, length: off_t) -> ::c_int; #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "pause$UNIX2003")] pub fn pause() -> ::c_int; |