summaryrefslogtreecommitdiff
path: root/misc/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-25 19:27:07 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-25 19:27:07 +0000
commitc559a3ca84a0258e4773571ae73fa7bba4c927b0 (patch)
tree4a406270536b93867da0c903711b54f72e64792b /misc/sys
parent281e6031736c13d1ead4d832d6beaf978d36ffdf (diff)
downloadglibc-c559a3ca84a0258e4773571ae73fa7bba4c927b0.tar.gz
Update.
1999-11-25 H.J. Lu <hjl@gnu.org> * stdlib/exit.c (exit): Run funtions only if __exit_funcs->idx > 0. 1999-11-25 Ulrich Drepper <drepper@cygnus.com> * manual/charset.texi (iconv Examples): Add iconv call to flush state. Reported by Andrew Clausen <clausen@alphalink.com.au>. 1999-11-25 Andreas Jaeger <aj@suse.de> * manual/install.texi (Running make install): Better describe update from libc5. Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>. 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. 1999-11-25 Ulrich Drepper <drepper@cygnus.com> * iconv/iconv_prog.c (process_block): For stateful charsets write out byte sequence to get to initial state at the end of the file. which was reported to not work (which proofed to be wrong).
Diffstat (limited to 'misc/sys')
-rw-r--r--misc/sys/mman.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index cddb451081..a39639c995 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -44,9 +44,14 @@ __BEGIN_DECLS
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,