18b8e054cf
__alloc_dir. (__alloc_dir): Only close descriptor on error if new parameter is true. * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to __alloc_dir. Don't close fd on error. * include/dirent.h (__alloc_dir): Adjust prototype. * include/sys/mman.h (__mremap): Add ellipsis. * malloc/memusage.c: Adjust mremap wrapper for optional additional parameter.
16 lines
575 B
C
16 lines
575 B
C
#ifndef _SYS_MMAN_H
|
|
#include <misc/sys/mman.h>
|
|
|
|
/* 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);
|
|
|
|
/* This one is Linux specific. */
|
|
extern void *__mremap (void *__addr, size_t __old_len,
|
|
size_t __new_len, int __flags, ...);
|
|
#endif
|