summaryrefslogtreecommitdiff
path: root/src/unix/redox/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-13 09:11:40 +0000
committerbors <bors@rust-lang.org>2023-03-13 09:11:40 +0000
commitfee018879fcda010c3b6f15e73d82b80bfd8f672 (patch)
treea804ba97dcfc5dc2bacfbb35e1fad2905b834242 /src/unix/redox/mod.rs
parent7d6c05045537000710bd56654b7d471abe3f1df6 (diff)
parent3a7dc426ec0b716a41c2c61aaa4ae7ab177e0831 (diff)
downloadrust-libc-fee018879fcda010c3b6f15e73d82b80bfd8f672.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/redox/mod.rs')
-rw-r--r--src/unix/redox/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs
index afba677277..cb4512d8bc 100644
--- a/src/unix/redox/mod.rs
+++ b/src/unix/redox/mod.rs
@@ -459,6 +459,15 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000;
// FIXME: Fix negative values missing from includes
pub const O_NOFOLLOW: ::c_int = -0x8000_0000;
+// locale.h
+pub const LC_ALL: ::c_int = 0;
+pub const LC_COLLATE: ::c_int = 1;
+pub const LC_CTYPE: ::c_int = 2;
+pub const LC_MESSAGES: ::c_int = 3;
+pub const LC_MONETARY: ::c_int = 4;
+pub const LC_NUMERIC: ::c_int = 5;
+pub const LC_TIME: ::c_int = 6;
+
// netdb.h
pub const AI_PASSIVE: ::c_int = 0x0001;
pub const AI_CANONNAME: ::c_int = 0x0002;
@@ -502,6 +511,7 @@ pub const IP_MULTICAST_TTL: ::c_int = 33;
pub const IP_MULTICAST_LOOP: ::c_int = 34;
pub const IP_ADD_MEMBERSHIP: ::c_int = 35;
pub const IP_DROP_MEMBERSHIP: ::c_int = 36;
+pub const IPPROTO_RAW: ::c_int = 255;
// }
// netinet/tcp.h