Use MAP_FAILED in the return values description.

This commit is contained in:
kleink 1998-06-03 22:03:44 +00:00
parent f8acb6d6fa
commit 503358cd49
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: mmap.2,v 1.14 1998/03/28 16:58:58 kleink Exp $
.\" $NetBSD: mmap.2,v 1.15 1998/06/03 22:03:44 kleink Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -163,9 +163,19 @@ should be done.
Upon successful completion,
.Nm mmap
returns a pointer to the mapped region.
Otherwise, a value of -1 is returned and
Otherwise, a value of
.Dv MAP_FAILED
is returned and
.Va errno
is set to indicate the error.
The symbol
.Dv MAP_FAILED
is defined in the header
.Ao Pa sys/mman.h Ac .
No successful return from
.Fn mmap
will return the value
.Dv MAP_FAILED .
.Sh ERRORS
.Fn Mmap
will fail if: