From 95c129c81a5e870386878d6849566e96249cb9d6 Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 29 Jan 2002 19:44:42 +0000 Subject: [PATCH] document error signalling through (void*)0 return code. --- mmap/mmap_private.3 | 2 ++ mmap/mmap_read.3 | 2 ++ mmap/mmap_shared.3 | 2 ++ 3 files changed, 6 insertions(+) diff --git a/mmap/mmap_private.3 b/mmap/mmap_private.3 index 4186c4b..6e2273e 100644 --- a/mmap/mmap_private.3 +++ b/mmap/mmap_private.3 @@ -16,5 +16,7 @@ will not be written to disk. The file is unmapped by the operating system if the process terminates. It can also be manually unmapped by calling \fBmunmap\fR from . + +If the file could not be opened or mapped, (void*)0 is returned. .SH "SEE ALSO" munmap(2) diff --git a/mmap/mmap_read.3 b/mmap/mmap_read.3 index 2acd023..d5363bb 100644 --- a/mmap/mmap_read.3 +++ b/mmap/mmap_read.3 @@ -13,5 +13,7 @@ and returns a pointer to the mapped file. The file is unmapped by the operating system if the process terminates. It can also be manually unmapped by calling \fBmunmap\fR from . + +If the file could not be opened or mapped, (void*)0 is returned. .SH "SEE ALSO" munmap(2) diff --git a/mmap/mmap_shared.3 b/mmap/mmap_shared.3 index 97f6368..7fb9a8b 100644 --- a/mmap/mmap_shared.3 +++ b/mmap/mmap_shared.3 @@ -20,5 +20,7 @@ It can also be manually unmapped by calling \fBmunmap\fR from To write changes to disk immediately, you can use msync from . + +If the file could not be opened or mapped, (void*)0 is returned. .SH "SEE ALSO" munmap(2), msync(2)