Skip to content

Commit b09d655

Browse files
committed
Auto merge of #805 - andrewtj:atj-getprotobynumber, r=alexcrichton
Add getprotobynumber
2 parents 49ffdf6 + 611066a commit b09d655

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ extern {
742742
pub fn getservbyname(name: *const ::c_char,
743743
proto: *const ::c_char) -> *mut servent;
744744
pub fn getprotobyname(name: *const ::c_char) -> *mut protoent;
745+
pub fn getprotobynumber(proto: ::c_int) -> *mut protoent;
745746
pub fn chroot(name: *const ::c_char) -> ::c_int;
746747
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
747748
link_name = "usleep$UNIX2003")]

0 commit comments

Comments
 (0)