Annotation of researchv10dc/man/man3/getfsent.3, revision 1.1

1.1     ! root        1: .TH GETFSENT 3
        !             2: .CT 2 sa
        !             3: .SH NAME
        !             4: getfsent, getfsspec, getfsfile, setfsent, endfsent \(mi get file system description 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(name)
        !            12: .B char *name;
        !            13: .PP
        !            14: .B struct fstab *getfsfile(name)
        !            15: .B char *name;
        !            16: .PP
        !            17: .B int setfsent()
        !            18: .PP
        !            19: .B int endfsent()
        !            20: .fi
        !            21: .SH DESCRIPTION
        !            22: .I Getfsent,
        !            23: .I getfsspec
        !            24: and
        !            25: .I getfsfile
        !            26: each return a pointer to a structure
        !            27: containing the broken-out
        !            28: fields of a line in
        !            29: .IR fstab (5),
        !            30: which describes mountable file systems.
        !            31: .PP
        !            32: .EX
        !            33: .ta \w'struct 'u +\w'char fs_spec[FSNMLG]; 'u
        !            34: struct fstab {
        !            35:        char fs_spec[FSNMLG];   \fRblock device name\fP
        !            36:        char fs_file[FSNMLG];   \fRfile system mount point\fP
        !            37:        int fs_ftype;   \fRfile system type\fP
        !            38:        int fs_flags;   \fRfile system flags\fP
        !            39:        int fs_passno;  \fRpass number for parallel \fP\fIfsck\fR(8)\fP
        !            40: };
        !            41: .EE
        !            42: .PP
        !            43: Type numbers and flags are listed in
        !            44: .IR fmount (2).
        !            45: Entries that aren't file systems
        !            46: (should not be mounted)
        !            47: have negative values for
        !            48: .LR fs_ftype :
        !            49: .TP .7i
        !            50: .L FSNONE
        !            51: (\-1) Ignore this entry.
        !            52: .PD 0
        !            53: .TP
        !            54: .L FSSWAP
        !            55: (\-2)
        !            56: .L fs_spec
        !            57: is a device available for swapping.
        !            58: .PD
        !            59: .PP
        !            60: .I Getfsent
        !            61: reads the next line of the file, opening the file if necessary.
        !            62: .PP
        !            63: .I Setfsent
        !            64: opens and rewinds the file.
        !            65: .PP
        !            66: .I Endfsent
        !            67: closes the file.
        !            68: .PP
        !            69: .I Getfsspec
        !            70: and
        !            71: .I getfsfile
        !            72: sequentially search from the beginning
        !            73: of the file until a matching
        !            74: special file name or
        !            75: file system file name is found,
        !            76: or until EOF
        !            77: is encountered.
        !            78: .SH FILES
        !            79: .TP
        !            80: .F /etc/fstab
        !            81: .SH "SEE ALSO"
        !            82: .IR fmount (2),
        !            83: .IR fstab (5)
        !            84: .SH DIAGNOSTICS
        !            85: Zero is returned on EOF
        !            86: or error.
        !            87: .SH BUGS
        !            88: The return values point to static data
        !            89: whose content is overwritten by each call.

unix.superglobalmegacorp.com

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