Gets information about a file system.
Standard C Library (libc.a)
The getfsent subroutine reads the next line of the /etc/filesystems file, opening the file if necessary.
The setfsent subroutine opens the /etc/filesystems file and positions to the first record.
The endfsent subroutine closes the /etc/filesystems file.
The getfsspec and getfsfile subroutines sequentially search from the beginning of the file until a matching special file name or file-system file name is found, or until the end of the file is encountered. The getfstype subroutine does likewise, matching on the file-system type field.
Item | Description |
---|---|
Special | Specifies the file-system file name. |
File | Specifies the file name. |
Type | Specifies the file-system type. |
The getfsent, getfsspec, getfstype, and getfsfile subroutines return a pointer to a structure that contains information about a file system. The header file fstab.h describes the structure. A null pointer is returned when the end of file (EOF) is reached or if an error occurs.
Item | Description |
---|---|
/etc/filesystems | Centralizes file system characteristics. |