Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getfsent(3) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                              getfsent(3)



        _________________________________________________________________
        getfsent, getfsspec, getfsfile, getfstype,             Subroutine
        setfsent, endfsent
        get filesystem descriptor file entry
        _________________________________________________________________


        SYNTAX

        #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



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                              getfsent(3)



        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.


        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.























        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026