about summary refs log tree commit diff
path: root/include/mntent.h
blob: 421f1df5dea112b27c61be1c3495559518138d7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _MNTENT_H
#include <misc/mntent.h>

/* Now define the internal interfaces.  */
extern FILE *__setmntent (__const char *__file, __const char *__mode);
extern FILE *__setmntent_internal (__const char *__file, __const char *__mode);
extern struct mntent *__getmntent_r (FILE *__stream,
				     struct mntent *__result,
				     char *__buffer, int __bufsize);
extern struct mntent *__getmntent_r_internal (FILE *__stream,
					      struct mntent *__result,
					      char *__buffer, int __bufsize)
     attribute_hidden;
extern int __addmntent (FILE *__stream, __const struct mntent *__mnt);
extern int __endmntent (FILE *__stream);
extern int __endmntent_internal (FILE *__stream) attribute_hidden;
extern char *__hasmntopt (__const struct mntent *__mnt,
			  __const char *__opt);

#ifndef NOT_IN_libc
# define __setmntent(file, mode) INTUSE(__setmntent) (file, mode)
# define __endmntent(stream) INTUSE(__endmntent) (stream)
# define __getmntent_r(stream, result, buffer, bufsize) \
  INTUSE(__getmntent_r) (stream, result, buffer, bufsize)
#endif

#endif