Skip to content
Snippets Groups Projects
Unverified Commit a44cc007 authored by 0e4ef622's avatar 0e4ef622 Committed by GitHub
Browse files

Add endservent, getservbyport, getservent, setservent

parent ebefd7ba
No related branches found
No related tags found
No related merge requests found
...@@ -1354,10 +1354,17 @@ extern "C" { ...@@ -1354,10 +1354,17 @@ extern "C" {
dev: ::dev_t, dev: ::dev_t,
) -> ::c_int; ) -> ::c_int;
pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int; pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
pub fn endservent();
pub fn getservbyname( pub fn getservbyname(
name: *const ::c_char, name: *const ::c_char,
proto: *const ::c_char, proto: *const ::c_char,
) -> *mut servent; ) -> *mut servent;
pub fn getservbyport(
port: ::c_int,
proto: *const ::c_char,
) -> *mut servent;
pub fn getservent() -> *mut servent;
pub fn setservent(stayopen: ::c_int);
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 getprotobynumber(proto: ::c_int) -> *mut protoent;
pub fn chroot(name: *const ::c_char) -> ::c_int; pub fn chroot(name: *const ::c_char) -> ::c_int;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment