setfsent()

Open the filesystem table (/etc/fstab) file

Synopsis:

#include <fstab.h>

int setfsent( void );

Since:

BlackBerry 10.0.0

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 setfsent() routine opens the filesystem table file, /etc/fstab, or rewinds the file if it's already open.

Returns:

1
Success.
0
An error occurred; errno is set.

Classification:

NetBSD

Safety:  
Cancellation point Yes
Interrupt handler No
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.

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus