![]() |
![]() |
![]() |
![]() |
getfsspec()
Search for a block special device in the filesystem table (/etc/fstab) file
Synopsis:
#include <fstab.h> struct fstab * getfsspec(const char *spec);
Arguments:
- spec
- The name of the block special device 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.
![]() |
This function is in libc.a, but not in libc.so (in order to save space). |
Description:
The getfsfile() function searches the filesystem table (/etc/fstab) for an entry for the specified block special device.
Returns:
A pointer to the fstab structure for the block special device (see the entry for getfsent()), or NULL if the entry couldn't be found.
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
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.
See also:
endfsent(), getfsent(), getfsfile(), mount(), setfsent()
/etc/fstab in the Utilities Reference
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
