File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ fn main() {
191
191
}
192
192
193
193
if linux || emscripten {
194
+ cfg. header ( "mntent.h" ) ;
194
195
cfg. header ( "mqueue.h" ) ;
195
196
cfg. header ( "ucontext.h" ) ;
196
197
if !uclibc {
@@ -255,7 +256,7 @@ fn main() {
255
256
cfg. header ( "sys/fsuid.h" ) ;
256
257
cfg. header ( "linux/seccomp.h" ) ;
257
258
cfg. header ( "linux/if_ether.h" ) ;
258
-
259
+
259
260
// DCCP support
260
261
if !uclibc && !musl && !emscripten {
261
262
cfg. header ( "linux/dccp.h" ) ;
Original file line number Diff line number Diff line change @@ -454,6 +454,15 @@ s! {
454
454
pub uid: :: uid_t,
455
455
pub gid: :: gid_t,
456
456
}
457
+
458
+ pub struct mntent {
459
+ pub mnt_fsname: * mut :: c_char,
460
+ pub mnt_dir: * mut :: c_char,
461
+ pub mnt_type: * mut :: c_char,
462
+ pub mnt_opts: * mut :: c_char,
463
+ pub mnt_freq: :: c_int,
464
+ pub mnt_passno: :: c_int,
465
+ }
457
466
}
458
467
459
468
pub const ABDAY_1 : :: nl_item = 0x20000 ;
@@ -1694,6 +1703,14 @@ extern {
1694
1703
) -> :: c_int > ,
1695
1704
data : * mut :: c_void
1696
1705
) -> :: c_int ;
1706
+
1707
+ pub fn setmntent ( filename : * const :: c_char ,
1708
+ ty : * const :: c_char ) -> * mut :: FILE ;
1709
+ pub fn getmntent ( stream : * mut :: FILE ) -> * mut :: mntent ;
1710
+ pub fn addmntent ( stream : * mut :: FILE , mnt : * const :: mntent ) -> :: c_int ;
1711
+ pub fn endmntent ( streamp : * mut :: FILE ) -> :: c_int ;
1712
+ pub fn hasmntopt ( mnt : * const :: mntent ,
1713
+ opt : * const :: c_char ) -> * mut :: c_char ;
1697
1714
}
1698
1715
1699
1716
cfg_if ! {
You can’t perform that action at this time.
0 commit comments