Annotation of cci/usr/src/man/man3/getfsent.3x, revision 1.1

1.1     ! root        1: .TH GETFSENT 3X  "19 January 1983"
        !             2: .UC 4
        !             3: .SH NAME
        !             4: getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent \- get file system descriptor file entry
        !             5: .SH SYNOPSIS
        !             6: .nf
        !             7: .B #include <fstab.h>
        !             8: .PP
        !             9: .B struct fstab *getfsent()
        !            10: .PP
        !            11: .B struct fstab *getfsspec(spec)
        !            12: .B char *spec;
        !            13: .PP
        !            14: .B struct fstab *getfsfile(file)
        !            15: .B char *file;
        !            16: .PP
        !            17: .B struct fstab *getfstype(type)
        !            18: .B char *type;
        !            19: .PP
        !            20: .B int setfsent()
        !            21: .PP
        !            22: .B int endfsent()
        !            23: .fi
        !            24: .SH DESCRIPTION
        !            25: .IR Getfsent ,
        !            26: .IR getfsspec ,
        !            27: .IR getfstype ,
        !            28: and
        !            29: .I getfsfile
        !            30: each return a pointer to an object with the following structure
        !            31: containing the broken-out fields of a line in the file system description file,
        !            32: .IR < fstab.h >.
        !            33: .RS
        !            34: .PP
        !            35: .nf
        !            36: struct fstab{
        !            37:        char    *fs_spec;
        !            38:        char    *fs_file;
        !            39:        char    *fs_type;
        !            40:        int     fs_freq;
        !            41:        int     fs_passno;
        !            42: };
        !            43: .ft R
        !            44: .ad
        !            45: .fi
        !            46: .RE
        !            47: .PP
        !            48: The fields have meanings described in
        !            49: .IR fstab (5).
        !            50: .PP
        !            51: .I Getfsent
        !            52: reads the next line of the file, opening the file if necessary.
        !            53: .PP
        !            54: .I Setfsent
        !            55: opens and rewinds the file.
        !            56: .PP
        !            57: .I Endfsent
        !            58: closes the file.
        !            59: .PP
        !            60: .I Getfsspec
        !            61: and
        !            62: .I getfsfile
        !            63: sequentially search from the beginning of the file until a matching
        !            64: special file name or file system file name is found,
        !            65: or until EOF is encountered.
        !            66: .I Getfstype
        !            67: does likewise, matching on the file system type field.
        !            68: .SH FILES
        !            69: /etc/fstab
        !            70: .SH "SEE ALSO"
        !            71: fstab(5)
        !            72: .SH DIAGNOSTICS
        !            73: Null pointer
        !            74: (0) returned on EOF or error.
        !            75: .SH BUGS
        !            76: All information is contained in a static area so it must be copied if it is
        !            77: to be saved.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.