Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/new/glibc/sysdeps/unix/linux/bits/statvfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use crate::prelude::*;

s! {
s2! {
pub struct statvfs {
pub f_bsize: c_ulong,
pub f_frsize: c_ulong,
Expand Down
5 changes: 4 additions & 1 deletion src/new/netbsd/sys/statvfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::prelude::*;
const _VFS_NAMELEN: usize = 32;
const _VFS_MNAMELEN: usize = 1024;

s! {
s2! {
pub struct statvfs {
pub f_flag: c_ulong,
pub f_bsize: c_ulong,
Expand Down Expand Up @@ -38,8 +38,11 @@ s! {
// This type is updated in a future version
f_spare: Padding<[u32; 4]>,

#[custom_default([0; _VFS_NAMELEN])]
pub f_fstypename: [c_char; _VFS_NAMELEN],
#[custom_default([0; _VFS_MNAMELEN])]
pub f_mntonname: [c_char; _VFS_MNAMELEN],
#[custom_default([0; _VFS_MNAMELEN])]
pub f_mntfromname: [c_char; _VFS_MNAMELEN],
// Added in NetBSD10
// pub f_mntfromlabel: [c_char; _VFS_MNAMELEN],
Expand Down
Loading