]> git.proxmox.com Git - mirror_lxc.git/blame - src/include/lxcmntent.h
licensing: Add missing headers and FSF address
[mirror_lxc.git] / src / include / lxcmntent.h
CommitLineData
250b1eec
SG
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
a45bbced
SG
21#ifndef _lxcmntent_h
22#define _lxcmntent_h
edaf8b1b
SG
23
24#include <../config.h>
25
26#if IS_BIONIC
27struct mntent
28{
29 char* mnt_fsname;
30 char* mnt_dir;
31 char* mnt_type;
32 char* mnt_opts;
33 int mnt_freq;
34 int mnt_passno;
35};
36
37extern struct mntent *getmntent (FILE *stream);
92adc3e9 38extern struct mntent *getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz);
edaf8b1b
SG
39#endif
40
41#ifndef HAVE_SETMNTENT
42FILE *setmntent (const char *file, const char *mode);
43#endif
44
45#ifndef HAVE_ENDMNTENT
46int endmntent (FILE *stream);
47#endif
48
49#ifndef HAVE_HASMNTOPT
50extern char *hasmntopt (const struct mntent *mnt, const char *opt);
51#endif
52
53#endif