Explorar el Código

Add MAP_FAILED per spec -- patch from Michael Shmulevich <michaels@jungo.com>

Eric Andersen hace 23 años
padre
commit
314b6a528c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      include/sys/mman.h

+ 2 - 0
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,