File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/unix/bsd/netbsdlike/openbsd Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -497,6 +497,9 @@ MSG_CMSG_CLOEXEC
497
497
MSG_DONTWAIT
498
498
MSG_MCAST
499
499
MSG_NOSIGNAL
500
+ MNT_LAZY
501
+ MNT_NOWAIT
502
+ MNT_WAIT
500
503
NET_RT_DUMP
501
504
NET_RT_FLAGS
502
505
NET_RT_IFLIST
@@ -999,6 +1002,7 @@ futimes
999
1002
getdomainname
1000
1003
getdtablesize
1001
1004
getentropy
1005
+ getfsstat
1002
1006
getgrent
1003
1007
getgrgid
1004
1008
getgrgid_r
@@ -1010,6 +1014,7 @@ getifaddrs
1010
1014
getitimer
1011
1015
getline
1012
1016
getloadavg
1017
+ getmntinfo
1013
1018
getnameinfo
1014
1019
getpeereid
1015
1020
getpriority
Original file line number Diff line number Diff line change @@ -1639,6 +1639,10 @@ pub const SF_ARCHIVED: ::c_uint = 0x00010000;
1639
1639
pub const SF_IMMUTABLE : :: c_uint = 0x00020000 ;
1640
1640
pub const SF_APPEND : :: c_uint = 0x00040000 ;
1641
1641
1642
+ pub const MNT_WAIT : :: c_int = 1 ;
1643
+ pub const MNT_NOWAIT : :: c_int = 2 ;
1644
+ pub const MNT_LAZY : :: c_int = 3 ;
1645
+
1642
1646
const_fn ! {
1643
1647
{ const } fn _ALIGN( p: usize ) -> usize {
1644
1648
( p + _ALIGNBYTES) & !_ALIGNBYTES
@@ -1880,6 +1884,8 @@ cfg_if! {
1880
1884
// these functions use statfs which uses the union mount_info:
1881
1885
pub fn statfs( path: * const :: c_char, buf: * mut statfs) -> :: c_int;
1882
1886
pub fn fstatfs( fd: :: c_int, buf: * mut statfs) -> :: c_int;
1887
+ pub fn getmntinfo( mntbufp: * mut * mut :: statfs, flags: :: c_int) -> :: c_int;
1888
+ pub fn getfsstat( buf: * mut statfs, bufsize: :: size_t, flags: :: c_int) -> :: c_int;
1883
1889
}
1884
1890
}
1885
1891
}
You can’t perform that action at this time.
0 commit comments