Gets information about a file system.
Thread-Safe C Library (libc_r.a)
#include <fstab.h>
int getfsent_r (FSSent, FSFile, PassNo) struct fstab *FSSent; AFILE_t *FSFile; int *PassNo;
int getfsspec_r (Special, FSSent, FSFile, PassNo) const char *Special; struct fstab *FSSent; AFILE_t *FSFile; int *PassNo;
int getfsfile_r (File, FSSent, FSFile, PassNo) const char *File; struct fstab *FSSent; AFILE_t *FSFile; int *PassNo;
int getfstype_r (Type, FSSent, FSFile, PassNo) const char *Type; struct fstab *FSSent; AFILE_t *FSFile; int *PassNo;
int setfsent_r (FSFile, PassNo) AFILE_t * FSFile; int *PassNo;
int endfsent_r (FSFile) AFILE_t *FSFile;
The getfsent_r subroutine reads the next line of the /etc/filesystems file, opening it necessary.
The setfsent_r subroutine opens the filesystems file and positions to the first record.
The endfsent_r subroutine closes the filesystems file.
The getfsspec_r and getfsfile_r subroutines search sequentially 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_r subroutine behaves similarly, matching on the file-system type field.
0 | Indicates that the subroutine was successful. |
-1 | Indicates that the subroutine was not successful. |
These subroutines are part of Base Operating System (BOS) Runtime.
Programs using this subroutine must link to the libpthreads.a library.
/etc/filesystems | Centralizes file-system characteristics. |
The getvfsent, getvfsbytype, getvfsbyname, getvfsbyflag, setvfsent, or endvfsent subroutine.
The filesystems file in AIX Version 4.3 Files Reference.
List of Multithread Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.