38acf35697
Since ld.so internal mmap functions are only used internally in ld.so, they can be made hidden. Don't hide __mmap on Hurd, since __mmap in ld.so will be preempted by the one in libc.so after bootstrap. [BZ #19122] * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>. * sysdeps/generic/dl-mman.h: New file. * sysdeps/mach/hurd/dl-mman.h: Likewise.
26 lines
745 B
C
26 lines
745 B
C
#ifndef _SYS_MMAN_H
|
|
#include <misc/sys/mman.h>
|
|
|
|
#ifndef _ISOMAC
|
|
/* Now define the internal interfaces. */
|
|
extern void *__mmap (void *__addr, size_t __len, int __prot,
|
|
int __flags, int __fd, __off_t __offset);
|
|
extern void *__mmap64 (void *__addr, size_t __len, int __prot,
|
|
int __flags, int __fd, __off64_t __offset);
|
|
extern int __munmap (void *__addr, size_t __len);
|
|
extern int __mprotect (void *__addr, size_t __len, int __prot);
|
|
|
|
extern int __madvise (void *__addr, size_t __len, int __advice);
|
|
libc_hidden_proto (__madvise)
|
|
|
|
/* This one is Linux specific. */
|
|
extern void *__mremap (void *__addr, size_t __old_len,
|
|
size_t __new_len, int __flags, ...);
|
|
|
|
# if IS_IN (rtld)
|
|
# include <dl-mman.h>
|
|
# endif
|
|
#endif
|
|
|
|
#endif
|