getfsfile()
QNX SDP8.0C Library ReferenceAPIDeveloper
Search for a filesystem name in the filesystem table (/etc/fstab) file
Synopsis:
#include <fstab.h>
struct fstab * getfsfile(const char *file);
Arguments:
- file
- The prefix of the filesystem that you want to search for.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The getfsfile() function searches the filesystem table (/etc/fstab) for an entry for the specified filesystem prefix.
Returns:
A pointer to the fstab structure for the filesystem (see the entry for getfsent()), or NULL if the entry couldn't be found.
Classification:
Safety: | |
---|---|
Cancellation point | Yes |
Signal handler | No |
Thread | No |
Caveats:
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.
Page updated: