Auto merge of #805 - andrewtj:atj-getprotobynumber, r=alexcrichton

Add getprotobynumber
This commit is contained in:
bors 2017-10-14 15:40:51 +00:00
commit b09d655ca5

View file

@ -742,6 +742,7 @@ extern {
pub fn getservbyname(name: *const ::c_char, pub fn getservbyname(name: *const ::c_char,
proto: *const ::c_char) -> *mut servent; proto: *const ::c_char) -> *mut servent;
pub fn getprotobyname(name: *const ::c_char) -> *mut protoent; pub fn getprotobyname(name: *const ::c_char) -> *mut protoent;
pub fn getprotobynumber(proto: ::c_int) -> *mut protoent;
pub fn chroot(name: *const ::c_char) -> ::c_int; pub fn chroot(name: *const ::c_char) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"), #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "usleep$UNIX2003")] link_name = "usleep$UNIX2003")]