summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2019-12-29 23:44:54 +0000
committerGreg V <greg@unrelenting.technology>2020-07-06 15:31:37 +0300
commit1366bda058e4dc757720a3b112752e593053bda1 (patch)
tree0dfcd8d4d297601e3b3567a3860fa9dcf2c9f681
parent45e7b8bef403dc01abe0243a2bc049060a6f4483 (diff)
downloadrust-libc-1366bda058e4dc757720a3b112752e593053bda1.tar.gz
FreeBSD: make wchar_t unsigned on arm/aarch64
Wide chars are unsigned when normal chars are
-rw-r--r--src/unix/bsd/apple/mod.rs1
-rw-r--r--src/unix/bsd/freebsdlike/dragonfly/mod.rs1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/aarch64.rs1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/arm.rs1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/powerpc64.rs1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/x86.rs1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs1
-rw-r--r--src/unix/bsd/mod.rs1
-rw-r--r--src/unix/bsd/netbsdlike/mod.rs1
9 files changed, 8 insertions, 1 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index c03c644e83..f130974728 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -2,6 +2,7 @@
//!
//! This covers *-apple-* triples currently
pub type c_char = i8;
+pub type wchar_t = i32;
pub type clock_t = c_ulong;
pub type time_t = c_long;
pub type suseconds_t = i32;
diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
index b34cdb8719..5841947f33 100644
--- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs
+++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs
@@ -1,5 +1,6 @@
pub type dev_t = u32;
pub type c_char = i8;
+pub type wchar_t = i32;
pub type clock_t = u64;
pub type ino_t = u64;
pub type lwpid_t = i32;
diff --git a/src/unix/bsd/freebsdlike/freebsd/aarch64.rs b/src/unix/bsd/freebsdlike/freebsd/aarch64.rs
index 7138c86b32..9a99ef0dd6 100644
--- a/src/unix/bsd/freebsdlike/freebsd/aarch64.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/aarch64.rs
@@ -1,6 +1,7 @@
pub type c_char = u8;
pub type c_long = i64;
pub type c_ulong = u64;
+pub type wchar_t = u32;
pub type time_t = i64;
pub type suseconds_t = i64;
diff --git a/src/unix/bsd/freebsdlike/freebsd/arm.rs b/src/unix/bsd/freebsdlike/freebsd/arm.rs
index e49de8ad19..1a0c7061aa 100644
--- a/src/unix/bsd/freebsdlike/freebsd/arm.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/arm.rs
@@ -1,6 +1,7 @@
pub type c_char = u8;
pub type c_long = i32;
pub type c_ulong = u32;
+pub type wchar_t = u32;
pub type time_t = i64;
pub type suseconds_t = i32;
diff --git a/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs b/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs
index 39b38a561e..1ac8268755 100644
--- a/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/powerpc64.rs
@@ -1,6 +1,7 @@
pub type c_char = u8;
pub type c_long = i64;
pub type c_ulong = u64;
+pub type wchar_t = i32;
pub type time_t = i64;
pub type suseconds_t = i64;
diff --git a/src/unix/bsd/freebsdlike/freebsd/x86.rs b/src/unix/bsd/freebsdlike/freebsd/x86.rs
index 8fee434402..a761e599f7 100644
--- a/src/unix/bsd/freebsdlike/freebsd/x86.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/x86.rs
@@ -1,6 +1,7 @@
pub type c_char = i8;
pub type c_long = i32;
pub type c_ulong = u32;
+pub type wchar_t = i32;
pub type time_t = i32;
pub type suseconds_t = i32;
diff --git a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs
index 6049c1a816..fea94a2c0b 100644
--- a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs
@@ -1,6 +1,7 @@
pub type c_char = i8;
pub type c_long = i64;
pub type c_ulong = u64;
+pub type wchar_t = i32;
pub type time_t = i64;
pub type suseconds_t = i64;
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index a70c1d92be..e90e4f7a44 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -1,4 +1,3 @@
-pub type wchar_t = i32;
pub type off_t = i64;
pub type useconds_t = u32;
pub type blkcnt_t = i64;
diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs
index 976b95c200..a2a8407770 100644
--- a/src/unix/bsd/netbsdlike/mod.rs
+++ b/src/unix/bsd/netbsdlike/mod.rs
@@ -1,3 +1,4 @@
+pub type wchar_t = i32;
pub type time_t = i64;
pub type mode_t = u32;
pub type nlink_t = u32;