Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 8
Get the next entry from the filesystem table (/etc/fstab) file
#include <fstab.h>
struct fstab * getfsent(void);
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). |
The getfsent() function gets the next entry from the
filesystem table file,
/etc/fstab.
The getfsent(),
getfsfile(),
and
getfsspec()
functions return pointers to a fstab structure, which is
defined as follows:
struct fstab {
char *fs_spec;
char *fs_file;
char *fs_vfstype;
char *fs_mntops;
char *fs_type;
int init_flags;
int init_mask;
};
The members include:
- fs_spec
- The block special device name (e.g. /dev/hd0t177).
- fs_file
- The filesystem path prefix.
- fs_vfstype
- The type of filesystem; for a list of types, see the entry for
mount
in the Utilities Reference.
- fs_mntops
- A comma-separated list of mount options, which can include:
String
|
Constant
|
Meaning
|
implied
|
FSTAB_IMPLIED
|
The root entry was implied, not specified.
|
allservers
|
FSTAB_OCB
|
Send the mount request to all servers.
|
ro
|
FSTAB_RO
|
Read-only device.
|
rw
|
FSTAB_RW
|
Read-write device.
|
xx
|
FSTAB_XX
|
Completely ignore the entry.
|
- fs_type
- The type of filesystem; one of the following:
String
|
Constant
|
Meaning
|
ro
|
FSTAB_RO
|
Read-only device.
|
rw
|
FSTAB_RW
|
Read-write device.
|
xx
|
FSTAB_XX
|
Completely ignore the entry.
|
- init_flags
- Flags to OR in:
- _MFLAG_OCB — ignore the special device string,
and contact all servers.
- _MOUNT_IMPLIED — the mountpoint is unspecified
by the client.
- init_mask
- Flags to AND out.
A pointer to the fstab structure for the next entry in the
file, or NULL if the function reached the end of the file.
NetBSD
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
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.
endfsent(),
getfsfile(),
getfsspec(),
mount(),
setfsent()
/etc/fstab,
mount
in the Utilities Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 308
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/g/getfsent.html on line 308