getfsent(3C) DG/UX 5.4R3.00 getfsent(3C)
NAME
getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent - get
filesystem descriptor file entry
SYNOPSIS
#include <fstab.h>
struct fstab *getfsent(void)
struct fstab *getfsspec(char *spec)
struct fstab *getfsfile(char *file)
struct fstab *getfstype(char *type)
int setfsent(void)
int endfsent(void)
DESCRIPTION
These routines are included for compatibility with earlier revisions
of the DG/UX System. They have been superseded by the getmntent(3C)
library routines.
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 filesystem description file,
< fstab.h >.
struct fstab{
char *fsspec;
char *fsfile;
char *fstype;
int fsfreq;
int fspassno;
};
The fields have meanings described in fstab(4). Note that new
fstype definition strings have been added to these functions and to
the <fstab.h> file to describe NFS remote file systems.
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 file name or filesystem file name is
found, or until EOF is encountered. getfstype does likewise,
matching on the filesystem type field.
Licensed material--property of copyright holder(s) 1
getfsent(3C) DG/UX 5.4R3.00 getfsent(3C)
FILES
/etc/fstab
RETURN VALUE
Null pointer (0) returned on EOF or error.
SEE ALSO
fstab(4).
CAVEAT
The return value points to static information which is overwritten in
each call.
Licensed material--property of copyright holder(s) 2