Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getfsent(3) — GENIX 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fstab(5)

GETFSENT(3)



      GETFSENT(3)             GENIX Programmer's Manual             GETFSENT(3)



      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 neces-
           sary.

           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 file system file name
           is found, or until EOF is encountered.

      FILES
           /etc/fstab

      SEE ALSO
           fstab(5)



      Printed 11/16/83                                                        1





      GETFSENT(3)             GENIX Programmer's Manual             GETFSENT(3)



      DIAGNOSTICS
           Null pointer (0) returned on EOF or error.

      BUGS
           All information is contained in a static area so it must  be  copied
           if it is to be saved.

















































      Printed 11/16/83                                                        2



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