From 00e6ecfdca3e1d63c998fd92b618a96277783b9e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 3 Dec 1997 15:12:16 +0000 Subject: [PATCH] (MAP_FAILED): Add constant. Suggested by Petter Reinholdtsen [PR libc/367]. --- sysdeps/unix/sysv/linux/sys/mman.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.2