This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,53 @@ version(CRuntime_Glibc) {
8484 }
8585
8686}
87+ else version (NetBSD )
88+ {
89+ enum _VFS_MNAMELEN = 1024 ;
90+ enum _VFS_NAMELEN = 32 ;
91+
92+ struct fsid_t
93+ {
94+ int [2 ] __fsid_val;
95+ }
96+
97+ struct statvfs_t
98+ {
99+ c_ulong f_flag;
100+ c_ulong f_bsize;
101+ c_ulong f_frsize;
102+ c_ulong f_iosize;
103+ fsblkcnt_t f_blocks;
104+ fsblkcnt_t f_bfree;
105+ fsblkcnt_t f_bavail;
106+ fsblkcnt_t f_bresvd;
107+ fsfilcnt_t f_files;
108+ fsfilcnt_t f_ffree;
109+ fsfilcnt_t f_favail;
110+ fsfilcnt_t f_fresvd;
111+ ulong f_syncreads;
112+ ulong f_syncwrites;
113+ ulong f_asyncreads;
114+ ulong f_asyncwrites;
115+ fsid_t f_fsidx;
116+ c_ulong f_fsid;
117+ c_ulong f_namemax;
118+ int f_owner;
119+ int [4 ] f_spare;
120+ char [_VFS_NAMELEN] f_fstypename;
121+ char [_VFS_MNAMELEN] f_mntonname;
122+ char [_VFS_MNAMELEN] f_mntfromname;
123+ }
124+
125+ enum FFlag
126+ {
127+ ST_RDONLY = 1 , /* Mount read-only. */
128+ ST_NOSUID = 2
129+ }
130+
131+ int statvfs (const char * file, statvfs_t* buf);
132+ int fstatvfs (int fildes, statvfs_t * buf) @trusted ;
133+ }
87134else
88135{
89136 struct statvfs_t
You can’t perform that action at this time.
0 commit comments