1998-09-06 23:45:24 +00:00
|
|
|
#ifndef _MNTENT_H
|
1998-03-31 18:24:48 +00:00
|
|
|
#include <misc/mntent.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
|
|
|
|
/* Now define the internal interfaces. */
|
1999-11-23 17:22:17 +00:00
|
|
|
extern FILE *__setmntent (__const char *__file, __const char *__mode);
|
2002-04-09 20:36:24 +00:00
|
|
|
extern FILE *__setmntent_internal (__const char *__file, __const char *__mode);
|
1999-10-19 13:53:34 +00:00
|
|
|
extern struct mntent *__getmntent_r (FILE *__stream,
|
|
|
|
|
struct mntent *__result,
|
1999-11-23 17:22:17 +00:00
|
|
|
char *__buffer, int __bufsize);
|
2002-04-09 20:36:24 +00:00
|
|
|
extern struct mntent *__getmntent_r_internal (FILE *__stream,
|
|
|
|
|
struct mntent *__result,
|
|
|
|
|
char *__buffer, int __bufsize)
|
|
|
|
|
attribute_hidden;
|
1999-11-23 17:22:17 +00:00
|
|
|
extern int __addmntent (FILE *__stream, __const struct mntent *__mnt);
|
|
|
|
|
extern int __endmntent (FILE *__stream);
|
2002-04-09 20:36:24 +00:00
|
|
|
extern int __endmntent_internal (FILE *__stream) attribute_hidden;
|
1999-10-19 13:53:34 +00:00
|
|
|
extern char *__hasmntopt (__const struct mntent *__mnt,
|
1999-11-23 17:22:17 +00:00
|
|
|
__const char *__opt);
|
2002-04-09 20:36:24 +00:00
|
|
|
|
|
|
|
|
#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
|
|
|
|
|
|
1998-09-06 23:45:24 +00:00
|
|
|
#endif
|