|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1980 Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution and use in source and binary forms are permitted ! 6: * provided that: (1) source distributions retain this entire copyright ! 7: * notice and comment, and (2) distributions including binaries display ! 8: * the following acknowledgement: ``This product includes software ! 9: * developed by the University of California, Berkeley and its contributors'' ! 10: * in the documentation or other materials provided with the distribution ! 11: * and in all advertising materials mentioning features or use of this ! 12: * software. Neither the name of the University nor the names of its ! 13: * contributors may be used to endorse or promote products derived ! 14: * from this software without specific prior written permission. ! 15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 18: * ! 19: * @(#)fstab.h 5.10 (Berkeley) 6/1/90 ! 20: */ ! 21: ! 22: /* ! 23: * File system table, see fstab(5). ! 24: * ! 25: * Used by dump, mount, umount, swapon, fsck, df, ... ! 26: * ! 27: * For ufs fs_spec field is the block special name. Programs that want to ! 28: * use the character special name must create that name by prepending a 'r' ! 29: * after the right most slash. Quota files are always named "quotas", so ! 30: * if type is "rq", then use concatenation of fs_file and "quotas" to locate ! 31: * quota file. ! 32: */ ! 33: #define _PATH_FSTAB "/etc/fstab" ! 34: #define FSTAB "/etc/fstab" /* deprecated */ ! 35: ! 36: #define FSTAB_RW "rw" /* read/write device */ ! 37: #define FSTAB_RQ "rq" /* read/write with quotas */ ! 38: #define FSTAB_RO "ro" /* read-only device */ ! 39: #define FSTAB_SW "sw" /* swap device */ ! 40: #define FSTAB_XX "xx" /* ignore totally */ ! 41: ! 42: struct fstab { ! 43: char *fs_spec; /* block special device name */ ! 44: char *fs_file; /* file system path prefix */ ! 45: char *fs_vfstype; /* File system type, ufs, nfs */ ! 46: char *fs_mntops; /* Mount options ala -o */ ! 47: char *fs_type; /* FSTAB_* from fs_mntops */ ! 48: int fs_freq; /* dump frequency, in days */ ! 49: int fs_passno; /* pass number on parallel dump */ ! 50: }; ! 51: ! 52: #if __STDC__ || c_plusplus ! 53: extern struct fstab *getfsent(void); ! 54: extern struct fstab *getfsspec(const char *); ! 55: extern struct fstab *getfsfile(const char *); ! 56: extern int setfsent(void); ! 57: extern void endfsent(void); ! 58: #else ! 59: extern struct fstab *getfsent(); ! 60: extern struct fstab *getfsspec(); ! 61: extern struct fstab *getfsfile(); ! 62: extern int setfsent(); ! 63: extern void endfsent(); ! 64: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.