File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,19 @@ s! {
138
138
pub tms_cutime: :: clock_t,
139
139
pub tms_cstime: :: clock_t,
140
140
}
141
+
142
+ pub struct servent {
143
+ pub s_name: * mut :: c_char,
144
+ pub s_aliases: * mut * mut :: c_char,
145
+ pub s_port: :: c_int,
146
+ pub s_proto: * mut :: c_char,
147
+ }
148
+
149
+ pub struct protoent {
150
+ pub p_name: * mut :: c_char,
151
+ pub p_aliases: * mut * mut :: c_char,
152
+ pub p_proto: :: c_int,
153
+ }
141
154
}
142
155
143
156
pub const SIG_DFL : sighandler_t = 0 as sighandler_t ;
@@ -726,6 +739,9 @@ extern {
726
739
dev : :: dev_t ) -> :: c_int ;
727
740
pub fn uname ( buf : * mut :: utsname ) -> :: c_int ;
728
741
pub fn gethostname ( name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
742
+ pub fn getservbyname ( name : * const :: c_char ,
743
+ proto : * const :: c_char ) -> * mut servent ;
744
+ pub fn getprotobyname ( name : * const :: c_char ) -> * mut protoent ;
729
745
pub fn chroot ( name : * const :: c_char ) -> :: c_int ;
730
746
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
731
747
link_name = "usleep$UNIX2003" ) ]
You can’t perform that action at this time.
0 commit comments