diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/getfsstat.2 | 8 | ||||
-rw-r--r-- | lib/libc/sys/statfs.2 | 14 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index 9b8dad8..26363fa 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -51,13 +51,14 @@ is a pointer to .Xr statfs structures defined as follows: .Bd -literal -typedef struct fsid { long val[2]; } fsid_t; /* file system id type */ +typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ /* * file system statistics */ -#define MNAMELEN 90 /* length of buffer for returned name */ +#define MFSNAMELEN 16 /* length of fs type name, including null */ +#define MNAMELEN 90 /* length of buffer for returned name */ struct statfs { long f_spare2; /* placeholder */ @@ -72,7 +73,8 @@ struct statfs { uid_t f_owner; /* user that mounted the filesystem */ int f_type; /* type of filesystem (see below) */ int f_flags; /* copy of mount flags */ - long f_spare[6]; /* spare for later */ + long f_spare[2]; /* spare for later */ + char f_fstypename[MFSNAMELEN];/* fs type name */ char f_mntonname[MNAMELEN];/* directory on which mounted */ char f_mntfromname[MNAMELEN];/* mounted filesystem */ }; diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2 index 40aba83..f5641a59 100644 --- a/lib/libc/sys/statfs.2 +++ b/lib/libc/sys/statfs.2 @@ -54,9 +54,14 @@ is a pointer to a .Fn statfs structure defined as follows: .Bd -literal -typedef quad fsid_t; +typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */ -#define MNAMELEN 90 /* length of buffer for returned name */ +/* + * file system statistics + */ + +#define MFSNAMELEN 16 /* length of fs type name, including null */ +#define MNAMELEN 90 /* length of buffer for returned name */ struct statfs { long f_spare2; /* placeholder */ @@ -71,7 +76,8 @@ fsid_t f_fsid; /* file system id */ uid_t f_owner; /* user that mounted the filesystem */ int f_type; /* type of filesystem (see below) */ int f_flags; /* copy of mount flags */ -long f_spare[6]; /* spare for later */ +long f_spare[2]; /* spare for later */ +char f_fstypename[MFSNAMELEN];/* fs type name */ char f_mntonname[MNAMELEN]; /* mount point */ char f_mntfromname[MNAMELEN]; /* mounted filesystem */ }; @@ -95,6 +101,8 @@ char f_mntfromname[MNAMELEN]; /* mounted filesystem */ #define MOUNT_UNION 15 /* Union (translucent) Filesystem */ #define MOUNT_DEVFS 16 /* existing device Filesystem */ #define MOUNT_EXT2FS 17 /* Linux EXT2FS */ +#define MOUNT_TFS 18 /* Netcon Novell filesystem */ +#define MOUNT_MAXTYPE 18 .Ed .Pp Fields that are undefined for a particular file system are set to -1. |