Correct fix for bug 6781 - Cannot rename subfolders in Explorer view with recent...
[Samba/fernandojvsilva.git] / client / mount.h
blob23ea4f0cbd88405e8b94c88ddf38b6d52bec22c3
1 /*
2 * Copyright (C) 2008 Jeff Layton (jlayton@samba.org)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 3 of the License, or
7 * (at your option) any later version.
8 * *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 /* most of this info was taken from the util-linux-ng sources */
20 #ifndef _MOUNT_H_
21 #define _MOUNT_H_
23 /* exit status - bits below are ORed */
24 #define EX_USAGE 1 /* incorrect invocation or permission */
25 #define EX_SYSERR 2 /* out of memory, cannot fork, ... */
26 #define EX_SOFTWARE 4 /* internal mount bug or wrong version */
27 #define EX_USER 8 /* user interrupt */
28 #define EX_FILEIO 16 /* problems writing, locking, ... mtab/fstab */
29 #define EX_FAIL 32 /* mount failure */
30 #define EX_SOMEOK 64 /* some mount succeeded */
32 #define _PATH_MOUNTED_LOCK _PATH_MOUNTED "~"
33 #define _PATH_MOUNTED_TMP _PATH_MOUNTED ".tmp"
35 extern int lock_mtab(void);
36 extern void unlock_mtab(void);
38 #endif /* ! _MOUNT_H_ */