Annotation of researchv9/include/fstab.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * File system table, see fstab (5)
                      3:  *
                      4:  * Used by dump, mount, umount, swapon, fsck, df, ...
                      5:  *
                      6:  * The fs_spec field is the block special name.
                      7:  * Programs that want to use the character special name must
                      8:  * create that name by prepending a 'r' after the right most slash.
                      9:  */
                     10: 
                     11: #define        FSTAB           "/etc/fstab"
                     12: #define        FSNMLG          32
                     13: 
                     14: #define        FSTABFMT        "%32s:%32s:%2s:%d:%d\n"
                     15: #define        FSTABARG(p)     (p)->fs_spec, (p)->fs_file, \
                     16:                        (p)->fs_type, &(p)->fs_freq, &(p)->fs_passno
                     17: #define FSTABNARGS     5
                     18: 
                     19: #define        FSTAB_RW        "rw"    /* read write device */
                     20: #define        FSTAB_RO        "ro"    /* read only device */
                     21: #define        FSTAB_SW        "sw"    /* swap device */
                     22: #define        FSTAB_XX        "xx"    /* ignore totally */
                     23: 
                     24: struct fstab{
                     25:        char    fs_spec[FSNMLG];        /* block special device name */
                     26:        char    fs_file[FSNMLG];        /* file system path prefix */
                     27:        char    fs_type[3];             /* rw,ro,sw or xx */
                     28:        int     fs_freq;                /* dump frequency, in days */
                     29:        int     fs_passno;              /* pass number on parallel dump */
                     30: };
                     31: 
                     32: struct fstab *getfsent();
                     33: struct fstab *getfsspec();
                     34: struct fstab *getfsfile();
                     35: int    setfsent();
                     36: int    endfsent();

unix.superglobalmegacorp.com

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