Open the filesystem table (/etc/fstab) file
#include <fstab.h> int setfsent( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The setfsent() routine opens the filesystem table file, /etc/fstab, or rewinds the file if it's already open.
- An error occurred; errno is set.
The functions that work with /etc/fstab use static data storage; if you need the data for future use, copy it before any subsequent calls overwrite it.