aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs')
-rw-r--r--libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs64
1 files changed, 45 insertions, 19 deletions
diff --git a/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs b/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
index f3b1008..34e4da8 100644
--- a/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
+++ b/libc/src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
@@ -42,6 +42,14 @@ s! {
pub l_pid: ::pid_t,
}
+ pub struct flock64 {
+ pub l_type: ::c_short,
+ pub l_whence: ::c_short,
+ pub l_start: ::off64_t,
+ pub l_len: ::off64_t,
+ pub l_pid: ::pid_t,
+ }
+
pub struct siginfo_t {
pub si_signo: ::c_int,
pub si_errno: ::c_int,
@@ -261,6 +269,12 @@ s! {
pub c_ispeed: ::speed_t,
pub c_ospeed: ::speed_t,
}
+
+ pub struct ip_mreqn {
+ pub imr_multiaddr: ::in_addr,
+ pub imr_address: ::in_addr,
+ pub imr_ifindex: ::c_int,
+ }
}
s_no_extra_traits! {
@@ -581,10 +595,7 @@ pub const SIGURG: ::c_int = 23;
pub const SIGIO: ::c_int = 29;
pub const SIGSYS: ::c_int = 31;
pub const SIGSTKFLT: ::c_int = 16;
-#[deprecated(
- since = "0.2.55",
- note = "Use SIGSYS instead"
-)]
+#[deprecated(since = "0.2.55", note = "Use SIGSYS instead")]
pub const SIGUNUSED: ::c_int = 31;
pub const SIGPOLL: ::c_int = 29;
pub const SIGPWR: ::c_int = 30;
@@ -755,14 +766,14 @@ pub const NOFLSH: ::tcflag_t = 0x00000080;
pub const CIBAUD: ::tcflag_t = 0o02003600000;
pub const CBAUDEX: ::tcflag_t = 0o010000;
pub const VSWTC: usize = 7;
-pub const OLCUC: ::tcflag_t = 0o000002;
-pub const NLDLY: ::tcflag_t = 0o000400;
-pub const CRDLY: ::tcflag_t = 0o003000;
+pub const OLCUC: ::tcflag_t = 0o000002;
+pub const NLDLY: ::tcflag_t = 0o000400;
+pub const CRDLY: ::tcflag_t = 0o003000;
pub const TABDLY: ::tcflag_t = 0o014000;
-pub const BSDLY: ::tcflag_t = 0o020000;
-pub const FFDLY: ::tcflag_t = 0o100000;
-pub const VTDLY: ::tcflag_t = 0o040000;
-pub const XTABS: ::tcflag_t = 0o014000;
+pub const BSDLY: ::tcflag_t = 0o020000;
+pub const FFDLY: ::tcflag_t = 0o100000;
+pub const VTDLY: ::tcflag_t = 0o040000;
+pub const XTABS: ::tcflag_t = 0o014000;
pub const B0: ::speed_t = 0o000000;
pub const B50: ::speed_t = 0o000001;
@@ -879,17 +890,25 @@ pub const REG_TRAPNO: ::c_int = 20;
pub const REG_OLDMASK: ::c_int = 21;
pub const REG_CR2: ::c_int = 22;
-extern {
+extern "C" {
pub fn getcontext(ucp: *mut ucontext_t) -> ::c_int;
pub fn setcontext(ucp: *const ucontext_t) -> ::c_int;
- pub fn makecontext(ucp: *mut ucontext_t,
- func: extern fn (),
- argc: ::c_int, ...);
- pub fn swapcontext(uocp: *mut ucontext_t,
- ucp: *const ucontext_t) -> ::c_int;
+ pub fn makecontext(
+ ucp: *mut ucontext_t,
+ func: extern "C" fn(),
+ argc: ::c_int,
+ ...
+ );
+ pub fn swapcontext(
+ uocp: *mut ucontext_t,
+ ucp: *const ucontext_t,
+ ) -> ::c_int;
pub fn iopl(level: ::c_int) -> ::c_int;
- pub fn ioperm(from: ::c_ulong, num: ::c_ulong,
- turn_on: ::c_int) -> ::c_int;
+ pub fn ioperm(
+ from: ::c_ulong,
+ num: ::c_ulong,
+ turn_on: ::c_int,
+ ) -> ::c_int;
}
cfg_if! {
@@ -901,3 +920,10 @@ cfg_if! {
pub use self::not_x32::*;
}
}
+
+cfg_if! {
+ if #[cfg(libc_align)] {
+ mod align;
+ pub use self::align::*;
+ }
+}