getfsent(3) DG/UX 4.30 getfsent(3)
NAME
getfsent, getfsspec, getfsfile, getfstype, setfsent,
endfsent - get filesystem 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
These routines are included for compatibility with earlier
revisions of DG/UX. They have been superseded by the
getmntent(3) 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 *fs_spec;
char *fs_file;
char *fs_type;
int fs_freq;
int fs_passno;
};
The fields have meanings described in fstab(4). Note that
new fs_type 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.
Licensed material--property of copyright holder(s) Page 1
getfsent(3) DG/UX 4.30 getfsent(3)
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.
FILES
/etc/fstab
SEE ALSO
fstab(4)
RETURN VALUE
Null pointer (0) returned on EOF or error.
CAVEAT
The return value points to static information which is
overwritten in each call.
Licensed material--property of copyright holder(s) Page 2