This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Here're are two patches for the mman.h files. The first remove K&R stuff (I've forgotten to submit this one), the second is just a resend. I've written last time: We should use __off64_t instead of just off_t and also use __REDIRECT --- as we do in all other usages of __USE_FILE_OFFSET64. Andreas 1999-11-25 Andreas Jaeger <aj@suse.de> * include/sys/mman.h: Remove K&R compatibility. 1999-11-15 Andreas Jaeger <aj@suse.de> * misc/sys/mman.h: Use __REDIRECT for mmap, correct prototype to use __off64_t. ============================================================ Index: include/sys/mman.h --- include/sys/mman.h 1999/10/19 13:52:30 1.4 +++ include/sys/mman.h 1999/11/25 15:42:13 @@ -3,13 +3,13 @@ /* Now define the internal interfaces. */ extern void *__mmap (void *__addr, size_t __len, int __prot, - int __flags, int __fd, __off_t __offset) __THROW; + int __flags, int __fd, __off_t __offset); extern void *__mmap64 (void *__addr, size_t __len, int __prot, - int __flags, int __fd, __off64_t __offset) __THROW; -extern int __munmap (void *__addr, size_t __len) __THROW; -extern int __mprotect (void *__addr, size_t __len, int __prot) __THROW; + 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 __may_move) __THROW; + size_t __new_len, int __may_move); #endif ============================================================ Index: misc/sys/mman.h --- misc/sys/mman.h 1999/10/09 21:21:58 1.3 +++ misc/sys/mman.h 1999/11/25 15:42:13 @@ -44,9 +44,14 @@ extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off_t __offset) __THROW; #else -extern void *mmap (void *__addr, size_t __len, int __prot, - int __flags, int __fd, __off_t __offset) __THROW - __asm__ ("mmap64"); +# ifdef __REDIRECT +extern void * __REDIRECT (mmap, + (void *__addr, size_t __len, int __prot, + int __flags, int __fd, __off64_t __offset) __THROW, + mmap64); +# else +# define mmap mmap64 +# endif #endif #ifdef __USE_LARGEFILE64 extern void *mmap64 (void *__addr, size_t __len, int __prot, -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.rhein-neckar.de
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |