Skip to content

Commit 611066a

Browse files
committed
Add getprotobynumber
1 parent 220fa28 commit 611066a

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)