OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
356b686
)
Add MAP_FAILED per spec -- patch from Michael Shmulevich <michaels@jungo.com>
author
Eric Andersen
<andersen@codepoet.org>
Tue, 13 Feb 2001 00:30:39 +0000
(
00:30
-0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 13 Feb 2001 00:30:39 +0000
(
00:30
-0000)
include/sys/mman.h
patch
|
blob
|
history
diff --git
a/include/sys/mman.h
b/include/sys/mman.h
index
8dc79d9
..
2997397
100644
(file)
--- 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,