GETFSENT(3C) COMMAND REFERENCE GETFSENT(3C)
NAME
getfsent, getfsspec, getfsfile, setfsent, endfsent - get
file system descriptor file entry
SYNOPSIS
#include <fstab.h>
struct fstab *getfsent()
struct fstab *getfsspec(name)
char *name;
struct fstab *getfsfile(name)
char *name;
int setfsend()
int endfsent()
DESCRIPTION
Getfsent, getfsspec, 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 description
file, /usr/include/fstab.h.
#define FSNMLG 16
struct fstab{
char fs_spec[FSNMLG];
char fs_file[FSNMLG];
char fs_type[3];
int fs_freq;
int fs_passno;
};
The fields have meanings described in fstab(5).
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
beginning of the file until a matching special filename or
file system filename is found, or until EOF is encountered.
FILES
/etc/fstab
Printed 3/13/89 1
GETFSENT(3C) COMMAND REFERENCE GETFSENT(3C)
DIAGNOSTICS
Null pointer (0) returned on EOF or error.
CAVEATS
All information is contained in a static area so it must be
copied if it is to be saved.
SEE ALSO
fstab(5).
Printed 3/13/89 2
%%index%%
na:360,147;
sy:507,1683;
de:2190,1675;
fi:3865,90;
di:4387,171;
ca:4558,178;
se:4736,149;
%%index%%000000000123