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