Blame misc/fstab.h

Packit 6c4009
/*
Packit 6c4009
 * Copyright (c) 1980, 1993
Packit 6c4009
 *	The Regents of the University of California.  All rights reserved.
Packit 6c4009
 *
Packit 6c4009
 * Redistribution and use in source and binary forms, with or without
Packit 6c4009
 * modification, are permitted provided that the following conditions
Packit 6c4009
 * are met:
Packit 6c4009
 * 1. Redistributions of source code must retain the above copyright
Packit 6c4009
 *    notice, this list of conditions and the following disclaimer.
Packit 6c4009
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 6c4009
 *    notice, this list of conditions and the following disclaimer in the
Packit 6c4009
 *    documentation and/or other materials provided with the distribution.
Packit 6c4009
 * 4. Neither the name of the University nor the names of its contributors
Packit 6c4009
 *    may be used to endorse or promote products derived from this software
Packit 6c4009
 *    without specific prior written permission.
Packit 6c4009
 *
Packit 6c4009
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
Packit 6c4009
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit 6c4009
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit 6c4009
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
Packit 6c4009
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit 6c4009
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit 6c4009
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit 6c4009
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit 6c4009
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit 6c4009
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit 6c4009
 * SUCH DAMAGE.
Packit 6c4009
 *
Packit 6c4009
 *	@(#)fstab.h	8.1 (Berkeley) 6/2/93
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef _FSTAB_H
Packit 6c4009
#define _FSTAB_H	1
Packit 6c4009
Packit 6c4009
#include <features.h>
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 * File system table, see fstab(5).
Packit 6c4009
 *
Packit 6c4009
 * Used by dump, mount, umount, swapon, fsck, df, ...
Packit 6c4009
 *
Packit 6c4009
 * For ufs fs_spec field is the block special name.  Programs that want to
Packit 6c4009
 * use the character special name must create that name by prepending a 'r'
Packit 6c4009
 * after the right most slash.  Quota files are always named "quotas", so
Packit 6c4009
 * if type is "rq", then use concatenation of fs_file and "quotas" to locate
Packit 6c4009
 * quota file.
Packit 6c4009
 */
Packit 6c4009
#define	_PATH_FSTAB	"/etc/fstab"
Packit 6c4009
#define	FSTAB		"/etc/fstab"	/* deprecated */
Packit 6c4009
Packit 6c4009
#define	FSTAB_RW	"rw"		/* read/write device */
Packit 6c4009
#define	FSTAB_RQ	"rq"		/* read/write with quotas */
Packit 6c4009
#define	FSTAB_RO	"ro"		/* read-only device */
Packit 6c4009
#define	FSTAB_SW	"sw"		/* swap device */
Packit 6c4009
#define	FSTAB_XX	"xx"		/* ignore totally */
Packit 6c4009
Packit 6c4009
struct fstab
Packit 6c4009
  {
Packit 6c4009
    char *fs_spec;			/* block special device name */
Packit 6c4009
    char *fs_file;			/* file system path prefix */
Packit 6c4009
    char *fs_vfstype;			/* File system type, ufs, nfs */
Packit 6c4009
    char *fs_mntops;			/* Mount options ala -o */
Packit 6c4009
    const char *fs_type;		/* FSTAB_* from fs_mntops */
Packit 6c4009
    int	fs_freq;			/* dump frequency, in days */
Packit 6c4009
    int	fs_passno;			/* pass number on parallel dump */
Packit 6c4009
  };
Packit 6c4009
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
extern struct fstab *getfsent (void) __THROW;
Packit 6c4009
extern struct fstab *getfsspec (const char *__name) __THROW;
Packit 6c4009
extern struct fstab *getfsfile (const char *__name) __THROW;
Packit 6c4009
extern int setfsent (void) __THROW;
Packit 6c4009
extern void endfsent (void) __THROW;
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif /* fstab.h */