Skip to content

Commit 7d37642

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 4f0f090 + b0d6253 commit 7d37642

File tree

7 files changed

+31
-6
lines changed

7 files changed

+31
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "libc"
4-
version = "0.2.13"
4+
version = "0.2.14"
55
authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
readme = "README.md"

libc-test/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ pub const SIGINT: ::c_int = 2;
316316
pub const SIGQUIT: ::c_int = 3;
317317
pub const SIGILL: ::c_int = 4;
318318
pub const SIGABRT: ::c_int = 6;
319+
pub const SIGEMT: ::c_int = 7;
319320
pub const SIGFPE: ::c_int = 8;
320321
pub const SIGKILL: ::c_int = 9;
321322
pub const SIGSEGV: ::c_int = 11;

src/unix/bsd/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pub const SIGINT : ::c_int = 2;
181181
pub const SIGQUIT : ::c_int = 3;
182182
pub const SIGILL : ::c_int = 4;
183183
pub const SIGABRT : ::c_int = 6;
184+
pub const SIGEMT: ::c_int = 7;
184185
pub const SIGFPE : ::c_int = 8;
185186
pub const SIGKILL : ::c_int = 9;
186187
pub const SIGSEGV : ::c_int = 11;

src/unix/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ s! {
110110
pub ws_ypixel: ::c_ushort,
111111
}
112112

113-
#[cfg(not(target_os = "android"))]
113+
pub struct linger {
114+
pub l_onoff: ::c_int,
115+
pub l_linger: ::c_int,
116+
}
117+
118+
#[cfg(not(target_os = "android"))]
114119
pub struct if_nameindex {
115120
pub if_index: ::c_uint,
116121
pub if_name: *mut ::c_char,
@@ -704,8 +709,6 @@ extern {
704709
extern {
705710
pub fn getifaddrs(ifap: *mut *mut ifaddrs) -> ::c_int;
706711
pub fn freeifaddrs(ifa: *mut ifaddrs);
707-
pub fn if_nameindex() -> *mut if_nameindex;
708-
pub fn if_freenameindex(ptr: *mut if_nameindex);
709712
#[cfg_attr(target_os = "macos", link_name = "glob$INODE64")]
710713
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]
711714
pub fn glob(pattern: *const c_char,

src/unix/notbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,8 @@ pub const EPOLL_CTL_ADD: ::c_int = 1;
501501
pub const EPOLL_CTL_MOD: ::c_int = 3;
502502
pub const EPOLL_CTL_DEL: ::c_int = 2;
503503

504+
pub const EPOLL_CLOEXEC: ::c_int = 0x80000;
505+
504506
pub const MNT_DETACH: ::c_int = 0x2;
505507
pub const MNT_EXPIRE: ::c_int = 0x4;
506508

@@ -749,6 +751,7 @@ extern {
749751
pub fn sched_get_priority_max(policy: ::c_int) -> ::c_int;
750752
pub fn sched_get_priority_min(policy: ::c_int) -> ::c_int;
751753
pub fn epoll_create(size: ::c_int) -> ::c_int;
754+
pub fn epoll_create1(flags: ::c_int) -> ::c_int;
752755
pub fn epoll_ctl(epfd: ::c_int,
753756
op: ::c_int,
754757
fd: ::c_int,

src/unix/solaris/mod.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ pub const SIGINT: ::c_int = 2;
506506
pub const SIGQUIT: ::c_int = 3;
507507
pub const SIGILL: ::c_int = 4;
508508
pub const SIGABRT: ::c_int = 6;
509+
pub const SIGEMT: ::c_int = 7;
509510
pub const SIGFPE: ::c_int = 8;
510511
pub const SIGKILL: ::c_int = 9;
511512
pub const SIGSEGV: ::c_int = 11;
@@ -885,6 +886,22 @@ pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
885886
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4;
886887
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
887888

889+
pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void;
890+
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;
891+
pub const RTLD_SELF: *mut ::c_void = -3isize as *mut ::c_void;
892+
pub const RTLD_PROBE: *mut ::c_void = -4isize as *mut ::c_void;
893+
894+
pub const RTLD_NOW: ::c_int = 0x2;
895+
pub const RTLD_NOLOAD: ::c_int = 0x4;
896+
pub const RTLD_GLOBAL: ::c_int = 0x100;
897+
pub const RTLD_LOCAL: ::c_int = 0x0;
898+
pub const RTLD_PARENT: ::c_int = 0x200;
899+
pub const RTLD_GROUP: ::c_int = 0x400;
900+
pub const RTLD_WORLD: ::c_int = 0x800;
901+
pub const RTLD_NODELETE: ::c_int = 0x1000;
902+
pub const RTLD_FIRST: ::c_int = 0x2000;
903+
pub const RTLD_CONFGEN: ::c_int = 0x10000;
904+
888905
f! {
889906
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
890907
let fd = fd as usize;

0 commit comments

Comments
 (0)