Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib Fix man page ERRORS section for (clock, pthread}_getcpucl...
details: https://anonhg.NetBSD.org/src/rev/48cd17d4b4b4
branches: trunk
changeset: 351911:48cd17d4b4b4
user: njoly <njoly%NetBSD.org@localhost>
date: Sun Mar 05 18:42:51 2017 +0000
description:
Fix man page ERRORS section for (clock,pthread}_getcpuclockid to match
reality.
diffstat:
lib/libc/sys/clock_getcpuclockid2.2 | 13 +++++++++++--
lib/libpthread/pthread_getcpuclockid.3 | 9 +++++----
2 files changed, 16 insertions(+), 6 deletions(-)
diffs (64 lines):
diff -r 8d31311524d5 -r 48cd17d4b4b4 lib/libc/sys/clock_getcpuclockid2.2
--- a/lib/libc/sys/clock_getcpuclockid2.2 Sun Mar 05 17:30:38 2017 +0000
+++ b/lib/libc/sys/clock_getcpuclockid2.2 Sun Mar 05 18:42:51 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: clock_getcpuclockid2.2,v 1.3 2017/03/04 11:16:33 njoly Exp $
+.\" $NetBSD: clock_getcpuclockid2.2,v 1.4 2017/03/05 18:42:51 njoly Exp $
.\"
.\" Copyright (c) 2016 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd March 3, 2017
+.Dd March 5, 2017
.Dt CLOCK_GETCPUCLOCKID2 2
.Os
.Sh NAME
@@ -90,6 +90,15 @@
.Sh ERRORS
These functions fail if:
.Bl -tag -width Er
+.It Bq Er EFAULT
+.Fa clock_id
+points outside the process's allocated address space.
+.El
+.Pp
+In addition
+.Fn clock_getcpuclockid2
+will fail if:
+.Bl -tag -width Er
.It Bq Er EINVAL
An unsupported
.Fa idtype
diff -r 8d31311524d5 -r 48cd17d4b4b4 lib/libpthread/pthread_getcpuclockid.3
--- a/lib/libpthread/pthread_getcpuclockid.3 Sun Mar 05 17:30:38 2017 +0000
+++ b/lib/libpthread/pthread_getcpuclockid.3 Sun Mar 05 18:42:51 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_getcpuclockid.3,v 1.4 2017/03/04 11:16:33 njoly Exp $
+.\" $NetBSD: pthread_getcpuclockid.3,v 1.5 2017/03/05 18:42:51 njoly Exp $
.\"
.\" Copyright (c) 2016 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd March 3, 2017
+.Dd March 5, 2017
.Dt PTHREAD_GETCPUCLOCKID 3
.Os
.Sh NAME
@@ -62,8 +62,9 @@
.Sh ERRORS
These functions fail if:
.Bl -tag -width Er
-.It Bq Er ESRCH
-No thread with this id was found.
+.It Bq Er EFAULT
+.Fa clock_id
+points outside the process's allocated address space.
.El
.Sh SEE ALSO
.Xr clock_getcpuclockid2 2 ,
Home |
Main Index |
Thread Index |
Old Index