GETFSENT(3-BSD) RISC/os Reference Manual GETFSENT(3-BSD)
NAME
getfsent, getfsspec, getfsfile, getfstype, setfsent,
endfsent - get file system descriptor file entry
SYNOPSIS
#include <fstab.h>
struct fstab *getfsent()
struct fstab *getfsspec(spec)
char *spec;
struct fstab *getfsfile(file)
char *file;
struct fstab *getfstype(type)
char *type;
int setfsent()
int endfsent()
DESCRIPTION
getfsent, getfsspec, getfstype, and getfsfile each return a
pointer to an object with the following structure containing
the broken-out fields of a line in the file system descrip-
tion file, <fstab.h>.
struct fstab {
char *fs_spec;
char *fs_file;
char *fs_type;
int fs_freq;
int fs_passno;
};
The fields have meanings described in fstab(4).
getfsent reads the next line of the file, opening the file
if necessary.
setfsent opens and rewinds the file.
endfsent closes the file.
getfsspec and getfsfile sequentially search from the begin-
ning of the file until a matching special file name or file
system file name is found, or until EOF is encountered.
getfstype does likewise, matching on the file system type
field.
Printed 11/19/92 Page 1
GETFSENT(3-BSD) RISC/os Reference Manual GETFSENT(3-BSD)
FILES
/etc/fstab
SEE ALSO
fstab(4).
DIAGNOSTICS
Null pointer (0) returned on EOF or error.
ERRORS
All information is contained in a static area so it must be
copied if it is to be saved.
Page 2 Printed 11/19/92