mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-30 00:31:08 +00:00
d19033298f
Hide internal __hasmntopt function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/mntent.h (__hasmntopt): Add libc_hidden_proto. * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
22 lines
646 B
C
22 lines
646 B
C
#ifndef _MNTENT_H
|
|
#include <misc/mntent.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
/* Now define the internal interfaces. */
|
|
extern FILE *__setmntent (const char *__file, const char *__mode);
|
|
extern struct mntent *__getmntent_r (FILE *__stream,
|
|
struct mntent *__result,
|
|
char *__buffer, int __bufsize);
|
|
extern int __addmntent (FILE *__stream, const struct mntent *__mnt);
|
|
extern int __endmntent (FILE *__stream);
|
|
extern char *__hasmntopt (const struct mntent *__mnt, const char *__opt);
|
|
|
|
libc_hidden_proto (__setmntent)
|
|
libc_hidden_proto (__getmntent_r)
|
|
libc_hidden_proto (__endmntent)
|
|
libc_hidden_proto (__hasmntopt)
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif
|