]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(MAP_FAILED): Add constant. Suggested by Petter Reinholdtsen
authorUlrich Drepper <drepper@redhat.com>
Wed, 3 Dec 1997 15:12:16 +0000 (15:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 3 Dec 1997 15:12:16 +0000 (15:12 +0000)
<pere@sleeper.link.no> [PR libc/367].

sysdeps/unix/sysv/linux/sys/mman.h

index eadb1f1f52976aad763b990be86a74212c80b55a..ad9de0b5de739606b794cc1eb10260a71ab41015 100644 (file)
@@ -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