File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ fn main() {
163
163
cfg. header ( "sys/msg.h" ) ;
164
164
cfg. header ( "sys/shm.h" ) ;
165
165
cfg. header ( "pty.h" ) ;
166
+ cfg. header ( "shadow.h" ) ;
166
167
}
167
168
168
169
if linux || android {
Original file line number Diff line number Diff line change @@ -118,6 +118,18 @@ s! {
118
118
pub pw_shell: * mut :: c_char,
119
119
}
120
120
121
+ pub struct spwd {
122
+ pub sp_namp: * mut :: c_char,
123
+ pub sp_pwdp: * mut :: c_char,
124
+ pub sp_lstchg: :: c_long,
125
+ pub sp_min: :: c_long,
126
+ pub sp_max: :: c_long,
127
+ pub sp_warn: :: c_long,
128
+ pub sp_inact: :: c_long,
129
+ pub sp_expire: :: c_long,
130
+ pub sp_flag: :: c_ulong,
131
+ }
132
+
121
133
pub struct statvfs {
122
134
pub f_bsize: :: c_ulong,
123
135
pub f_frsize: :: c_ulong,
@@ -543,6 +555,11 @@ extern {
543
555
544
556
pub fn setpwent ( ) ;
545
557
pub fn getpwent ( ) -> * mut passwd ;
558
+ pub fn setspent ( ) ;
559
+ pub fn endspent ( ) ;
560
+ pub fn getspent ( ) -> * mut spwd ;
561
+ pub fn getspnam ( __name : * const :: c_char ) -> * mut spwd ;
562
+
546
563
pub fn shm_open ( name : * const c_char , oflag : :: c_int ,
547
564
mode : mode_t ) -> :: c_int ;
548
565
You can’t perform that action at this time.
0 commit comments