Skip to content

Commit f699c8f

Browse files
committed
riscv64/musl: remove unused definitions (fixup)
Signed-off-by: Alexander Kanavin <[email protected]>
1 parent cb585ff commit f699c8f

File tree

1 file changed

+0
-45
lines changed
  • src/unix/linux_like/linux/musl/b64/riscv64

1 file changed

+0
-45
lines changed

src/unix/linux_like/linux/musl/b64/riscv64/mod.rs

-45
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
//! RISC-V-specific definitions for 64-bit linux-like values
22
33
pub type c_char = u8;
4-
pub type c_long = i64;
5-
pub type c_ulong = u64;
64
pub type wchar_t = ::c_int;
75

86
pub type nlink_t = ::c_uint;
97
pub type blksize_t = ::c_int;
108
pub type fsblkcnt64_t = ::c_ulong;
119
pub type fsfilcnt64_t = ::c_ulong;
12-
pub type suseconds_t = i64;
1310
pub type __u64 = ::c_ulonglong;
1411

1512
s! {
@@ -611,26 +608,6 @@ pub const POLLWRBAND: ::c_short = 0x200;
611608

612609
pub const SOCK_STREAM: ::c_int = 1;
613610
pub const SOCK_DGRAM: ::c_int = 2;
614-
pub const SOL_SOCKET: ::c_int = 1;
615-
pub const SO_REUSEADDR: ::c_int = 2;
616-
pub const SO_TYPE: ::c_int = 3;
617-
pub const SO_ERROR: ::c_int = 4;
618-
pub const SO_DONTROUTE: ::c_int = 5;
619-
pub const SO_BROADCAST: ::c_int = 6;
620-
pub const SO_SNDBUF: ::c_int = 7;
621-
pub const SO_RCVBUF: ::c_int = 8;
622-
pub const SO_KEEPALIVE: ::c_int = 9;
623-
pub const SO_OOBINLINE: ::c_int = 10;
624-
pub const SO_NO_CHECK: ::c_int = 11;
625-
pub const SO_PRIORITY: ::c_int = 12;
626-
pub const SO_LINGER: ::c_int = 13;
627-
pub const SO_BSDCOMPAT: ::c_int = 14;
628-
pub const SO_REUSEPORT: ::c_int = 15;
629-
pub const SO_ACCEPTCONN: ::c_int = 30;
630-
pub const SO_SNDBUFFORCE: ::c_int = 32;
631-
pub const SO_RCVBUFFORCE: ::c_int = 33;
632-
pub const SO_PROTOCOL: ::c_int = 38;
633-
pub const SO_DOMAIN: ::c_int = 39;
634611

635612
pub const MAP_ANON: ::c_int = 0x0020;
636613
pub const MAP_GROWSDOWN: ::c_int = 0x0100;
@@ -720,12 +697,6 @@ pub const FIONCLEX: ::c_int = 0x5450;
720697
pub const FIONBIO: ::c_int = 0x5421;
721698
pub const EDEADLK: ::c_int = 35;
722699
pub const EDEADLOCK: ::c_int = EDEADLK;
723-
pub const SO_PASSCRED: ::c_int = 16;
724-
pub const SO_PEERCRED: ::c_int = 17;
725-
pub const SO_RCVLOWAT: ::c_int = 18;
726-
pub const SO_SNDLOWAT: ::c_int = 19;
727-
pub const SO_RCVTIMEO: ::c_int = 20;
728-
pub const SO_SNDTIMEO: ::c_int = 21;
729700
pub const EXTPROC: ::tcflag_t = 0x00010000;
730701
pub const VEOL: usize = 11;
731702
pub const VEOL2: usize = 16;
@@ -757,25 +728,9 @@ pub const TIOCOUTQ: ::c_int = 0x5411;
757728
pub const TIOCSTI: ::c_int = 0x5412;
758729
pub const TIOCGWINSZ: ::c_int = 0x5413;
759730
pub const TIOCSWINSZ: ::c_int = 0x5414;
760-
pub const TIOCMGET: ::c_int = 0x5415;
761-
pub const TIOCMBIS: ::c_int = 0x5416;
762-
pub const TIOCMBIC: ::c_int = 0x5417;
763-
pub const TIOCMSET: ::c_int = 0x5418;
764731
pub const FIONREAD: ::c_int = 0x541B;
765732
pub const TIOCCONS: ::c_int = 0x541D;
766733

767-
pub const TIOCM_LE: ::c_int = 0x001;
768-
pub const TIOCM_DTR: ::c_int = 0x002;
769-
pub const TIOCM_RTS: ::c_int = 0x004;
770-
pub const TIOCM_ST: ::c_int = 0x008;
771-
pub const TIOCM_SR: ::c_int = 0x010;
772-
pub const TIOCM_CTS: ::c_int = 0x020;
773-
pub const TIOCM_CAR: ::c_int = 0x040;
774-
pub const TIOCM_RNG: ::c_int = 0x080;
775-
pub const TIOCM_DSR: ::c_int = 0x100;
776-
pub const TIOCM_CD: ::c_int = TIOCM_CAR;
777-
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
778-
779734
extern "C" {
780735
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
781736
}

0 commit comments

Comments
 (0)