summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-12-03 15:12:16 +0000
committerUlrich Drepper <drepper@redhat.com>1997-12-03 15:12:16 +0000
commit00e6ecfdca3e1d63c998fd92b618a96277783b9e (patch)
tree7bd2566db555fe7edb4cdec16783e438164bc6b3 /sysdeps
parente6894bef41ac276a8ff5bfb7bce752bb51cfd798 (diff)
(MAP_FAILED): Add constant. Suggested by Petter Reinholdtsen
<pere@sleeper.link.no> [PR libc/367].
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/sys/mman.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/mman.h b/sysdeps/unix/sysv/linux/sys/mman.h
index eadb1f1f52..ad9de0b5de 100644
--- a/sysdeps/unix/sysv/linux/sys/mman.h
+++ b/sysdeps/unix/sysv/linux/sys/mman.h
@@ -1,5 +1,5 @@
/* Definitions for BSD-style memory management. Linux version.
- Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -38,6 +38,9 @@
#define MAP_FILE 0
#endif
+/* Return value of `mmap' in case of an error. */
+#define MAP_FAILED ((__ptr_t) -1)
+
__BEGIN_DECLS
/* Map addresses starting near ADDR and extending for LEN bytes. from
OFFSET into the file FD describes according to PROT and FLAGS. If ADDR