@@ -344,7 +344,7 @@ impl Statfs {
344
344
}
345
345
346
346
/// Total data blocks in filesystem
347
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
347
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
348
348
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
349
349
pub fn blocks ( & self ) -> u64 {
350
350
self . 0 . f_blocks
@@ -358,7 +358,7 @@ impl Statfs {
358
358
target_os = "freebsd" ,
359
359
target_os = "openbsd" ,
360
360
target_os = "dragonfly" ,
361
- all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
361
+ all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
362
362
) ) ) ]
363
363
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
364
364
pub fn blocks ( & self ) -> libc:: c_ulong {
@@ -386,7 +386,7 @@ impl Statfs {
386
386
}
387
387
388
388
/// Free blocks in filesystem
389
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
389
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
390
390
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
391
391
pub fn blocks_free ( & self ) -> u64 {
392
392
self . 0 . f_bfree
@@ -400,7 +400,7 @@ impl Statfs {
400
400
target_os = "freebsd" ,
401
401
target_os = "openbsd" ,
402
402
target_os = "dragonfly" ,
403
- all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
403
+ all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
404
404
) ) ) ]
405
405
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
406
406
pub fn blocks_free ( & self ) -> libc:: c_ulong {
@@ -429,7 +429,7 @@ impl Statfs {
429
429
}
430
430
431
431
/// Free blocks available to unprivileged user
432
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
432
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
433
433
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
434
434
pub fn blocks_available ( & self ) -> u64 {
435
435
self . 0 . f_bavail
@@ -443,7 +443,7 @@ impl Statfs {
443
443
target_os = "freebsd" ,
444
444
target_os = "openbsd" ,
445
445
target_os = "dragonfly" ,
446
- all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
446
+ all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
447
447
) ) ) ]
448
448
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
449
449
pub fn blocks_available ( & self ) -> libc:: c_ulong {
@@ -471,7 +471,7 @@ impl Statfs {
471
471
}
472
472
473
473
/// Total file nodes in filesystem
474
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
474
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
475
475
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
476
476
pub fn files ( & self ) -> libc:: fsfilcnt_t {
477
477
self . 0 . f_files
@@ -485,7 +485,7 @@ impl Statfs {
485
485
target_os = "freebsd" ,
486
486
target_os = "openbsd" ,
487
487
target_os = "dragonfly" ,
488
- all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
488
+ all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
489
489
) ) ) ]
490
490
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
491
491
pub fn files ( & self ) -> libc:: c_ulong {
@@ -519,7 +519,7 @@ impl Statfs {
519
519
}
520
520
521
521
/// Free file nodes in filesystem
522
- #[ cfg( all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
522
+ #[ cfg( all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) ) ) ]
523
523
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
524
524
pub fn files_free ( & self ) -> libc:: fsfilcnt_t {
525
525
self . 0 . f_ffree
@@ -533,7 +533,7 @@ impl Statfs {
533
533
target_os = "freebsd" ,
534
534
target_os = "openbsd" ,
535
535
target_os = "dragonfly" ,
536
- all( target_os = "linux" , any( target_env = "musl" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
536
+ all( target_os = "linux" , any( target_env = "musl" , target_arch = "riscv32" , all( target_arch = "x86_64" , target_pointer_width = "32" ) ) )
537
537
) ) ) ]
538
538
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
539
539
pub fn files_free ( & self ) -> libc:: c_ulong {
0 commit comments