diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-02-13 00:30:39 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-02-13 00:30:39 +0000 |
commit | 314b6a528c9756572e855389c6cb09c18a558747 (patch) | |
tree | ab217af8a6b42f4ca7dadbcc99acee9a0398037c /include | |
parent | 356b686774968d312476b66d0c1fb1f21c46305a (diff) |
Add MAP_FAILED per spec -- patch from Michael Shmulevich <michaels@jungo.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/mman.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index 8dc79d909..29973979e 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -12,6 +12,8 @@ #define MAP_FILE 0x00 /* The 'normal' way: mapped from file */ #endif +#define MAP_FAILED ((__ptr_t) -1) /* Return value of `mmap' in case of an error. */ + __BEGIN_DECLS extern __ptr_t mmap __P((__ptr_t __addr, size_t __len, |