2012-03-02 Kees Cook <keescook@chromium.org>
[glibc.git] / include / mntent.h
blob3a75f0ddfde56963249ee410d201b89e5d53f5c1
1 #ifndef _MNTENT_H
2 #include <misc/mntent.h>
4 /* Now define the internal interfaces. */
5 extern FILE *__setmntent (const char *__file, const char *__mode);
6 extern FILE *__setmntent_internal (const char *__file, const char *__mode);
7 extern struct mntent *__getmntent_r (FILE *__stream,
8 struct mntent *__result,
9 char *__buffer, int __bufsize);
10 extern struct mntent *__getmntent_r_internal (FILE *__stream,
11 struct mntent *__result,
12 char *__buffer, int __bufsize)
13 attribute_hidden;
14 extern int __addmntent (FILE *__stream, const struct mntent *__mnt);
15 extern int __endmntent (FILE *__stream);
16 extern int __endmntent_internal (FILE *__stream) attribute_hidden;
17 extern char *__hasmntopt (const struct mntent *__mnt, const char *__opt);
19 #ifndef NOT_IN_libc
20 # define __setmntent(file, mode) INTUSE(__setmntent) (file, mode)
21 # define __endmntent(stream) INTUSE(__endmntent) (stream)
22 # define __getmntent_r(stream, result, buffer, bufsize) \
23 INTUSE(__getmntent_r) (stream, result, buffer, bufsize)
24 #endif
26 #endif