[PATCH 2/2] posix: Return error code if mmap is used

Gedare Bloom gedare at gwu.edu
Thu Mar 12 14:03:20 UTC 2015


Thanks.

On Thu, Mar 12, 2015 at 4:04 AM, Daniel Cederman <cederman at gaisler.com> wrote:
> ---
>  cpukit/posix/src/mmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpukit/posix/src/mmap.c b/cpukit/posix/src/mmap.c
> index 3ebb2f4..90c6d0a 100644
> --- a/cpukit/posix/src/mmap.c
> +++ b/cpukit/posix/src/mmap.c
> @@ -26,5 +26,5 @@ void *mmap(
>    off_t   off
>  )
>  {
> -  return NULL;
> +  return MAP_FAILED;
>  }
> --
> 2.2.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list