]> git.proxmox.com Git - mirror_lxc.git/blob - src/include/lxcmntent.h
spelling: output
[mirror_lxc.git] / src / include / lxcmntent.h
1 /* Utilities for reading/writing fstab, mtab, etc.
2 Copyright (C) 1995-2000, 2001, 2002, 2003, 2006
3 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
5
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef _LXCMNTENT_H
22 #define _LXCMNTENT_H
23
24 #if IS_BIONIC
25 struct mntent
26 {
27 char* mnt_fsname;
28 char* mnt_dir;
29 char* mnt_type;
30 char* mnt_opts;
31 int mnt_freq;
32 int mnt_passno;
33 };
34
35 extern struct mntent *getmntent (FILE *stream);
36 extern struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz);
37 #endif
38
39 #if !defined(HAVE_SETMNTENT) || IS_BIONIC
40 FILE *setmntent (const char *file, const char *mode);
41 #endif
42
43 #if !defined(HAVE_ENDMNTENT) || IS_BIONIC
44 int endmntent (FILE *stream);
45 #endif
46
47 #if !defined(HAVE_HASMNTOPT) || IS_BIONIC
48 extern char *hasmntopt (const struct mntent *mnt, const char *opt);
49 #endif
50
51 #endif