Blame mount.h

Packit Service 09cdfc
/* 
Packit Service 09cdfc
 * Copyright (C) 2008 Jeff Layton (jlayton@samba.org)
Packit Service 09cdfc
 *
Packit Service 09cdfc
 * This program is free software; you can redistribute it and/or modify
Packit Service 09cdfc
 * it under the terms of the GNU General Public License as published by
Packit Service 09cdfc
 * the Free Software Foundation; either version 3 of the License, or
Packit Service 09cdfc
 * (at your option) any later version.
Packit Service 09cdfc
 * * 
Packit Service 09cdfc
 * This program is distributed in the hope that it will be useful,
Packit Service 09cdfc
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 09cdfc
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 09cdfc
 * GNU General Public License for more details.
Packit Service 09cdfc
 *
Packit Service 09cdfc
 * You should have received a copy of the GNU General Public License
Packit Service 09cdfc
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit Service 09cdfc
 */
Packit Service 09cdfc
Packit Service 09cdfc
/* most of this info was taken from the util-linux-ng sources */
Packit Service 09cdfc
Packit Service 09cdfc
#ifndef _MOUNT_H_
Packit Service 09cdfc
#define _MOUNT_H_
Packit Service 09cdfc
Packit Service 09cdfc
/* exit status - bits below are ORed */
Packit Service 09cdfc
#define EX_USAGE	1	/* incorrect invocation or permission */
Packit Service 09cdfc
#define EX_SYSERR	2	/* out of memory, cannot fork, ... */
Packit Service 09cdfc
#define EX_SOFTWARE	4	/* internal mount bug or wrong version */
Packit Service 09cdfc
#define EX_USER		8	/* user interrupt */
Packit Service 09cdfc
#define EX_FILEIO      16	/* problems writing, locking, ... mtab/fstab */
Packit Service 09cdfc
#define EX_FAIL	       32	/* mount failure */
Packit Service 09cdfc
#define EX_SOMEOK      64	/* some mount succeeded */
Packit Service 09cdfc
Packit Service 09cdfc
#define _PATH_MOUNTED_LOCK	_PATH_MOUNTED "~"
Packit Service 09cdfc
#define _PATH_MOUNTED_TMP	_PATH_MOUNTED ".tmp"
Packit Service 09cdfc
Packit Service 09cdfc
extern int mtab_unusable(void);
Packit Service 09cdfc
extern int lock_mtab(void);
Packit Service 09cdfc
extern void unlock_mtab(void);
Packit Service 09cdfc
extern int my_endmntent(FILE *stream, off_t size);
Packit Service 09cdfc
Packit Service 09cdfc
#endif /* ! _MOUNT_H_ */