From: Ulrich Drepper Date: Wed, 3 Dec 1997 15:12:16 +0000 (+0000) Subject: (MAP_FAILED): Add constant. Suggested by Petter Reinholdtsen X-Git-Tag: cvs/glibc-2_0_6pre3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e6ecfdca3e1d63c998fd92b618a96277783b9e;p=thirdparty%2Fglibc.git (MAP_FAILED): Add constant. Suggested by Petter Reinholdtsen [PR libc/367]. --- diff --git a/sysdeps/unix/sysv/linux/sys/mman.h b/sysdeps/unix/sysv/linux/sys/mman.h index eadb1f1f529..ad9de0b5de7 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