]> git.proxmox.com Git - cargo.git/blobdiff - vendor/libc/src/unix/linux_like/linux/musl/b32/mod.rs
New upstream version 0.63.1
[cargo.git] / vendor / libc / src / unix / linux_like / linux / musl / b32 / mod.rs
index f54e5d9c8cae9cff742929c2891cfe46d13b4cfe..63824fbf561e4431a1b23d78d7590600a65a1c7f 100644 (file)
@@ -3,6 +3,7 @@ pub type c_ulong = u32;
 pub type nlink_t = u32;
 pub type blksize_t = ::c_long;
 pub type __u64 = ::c_ulonglong;
+pub type __s64 = ::c_longlong;
 pub type regoff_t = ::c_int;
 
 s! {
@@ -38,12 +39,6 @@ s! {
 pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
 pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
 
-pub const TIOCINQ: ::c_int = ::FIONREAD;
-
-extern "C" {
-    pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
-}
-
 cfg_if! {
     if #[cfg(any(target_arch = "x86"))] {
         mod x86;
@@ -60,6 +55,9 @@ cfg_if! {
     } else if #[cfg(any(target_arch = "hexagon"))] {
         mod hexagon;
         pub use self::hexagon::*;
+    } else if #[cfg(any(target_arch = "riscv32"))] {
+        mod riscv32;
+        pub use self::riscv32::*;
     } else {
         // Unknown target_arch
     }