Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Add EINVAL doc from Jan Schaumann



details:   https://anonhg.NetBSD.org/src/rev/fae83494b9ef
branches:  trunk
changeset: 371914:fae83494b9ef
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 16 20:37:03 2022 +0000

description:
Add EINVAL doc from Jan Schaumann

diffstat:

 lib/libc/sys/gettimeofday.2 |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r d41b32d45376 -r fae83494b9ef lib/libc/sys/gettimeofday.2
--- a/lib/libc/sys/gettimeofday.2       Sun Oct 16 16:58:54 2022 +0000
+++ b/lib/libc/sys/gettimeofday.2       Sun Oct 16 20:37:03 2022 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: gettimeofday.2,v 1.29 2015/12/09 08:30:03 wiz Exp $
+.\"    $NetBSD: gettimeofday.2,v 1.30 2022/10/16 20:37:03 christos Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\"     @(#)gettimeofday.2     8.2 (Berkeley) 5/26/95
 .\"
-.Dd December 8, 2015
+.Dd October 16, 2022
 .Dt GETTIMEOFDAY 2
 .Os
 .Sh NAME
@@ -133,6 +133,12 @@
 .Bl -tag -width Er
 .It Bq Er EFAULT
 An argument address referenced invalid memory.
+.It Bq Er EINVAL
+.Fn settimeofday :
+.Ar tp.tv_sec
+is outside the range [0..2^36] or
+.Ar tp.tv_usec
+is outside the range [0..999,999].
 .It Bq Er EPERM
 A user other than the super user attempted to set the time, or the specified
 time was less than the current time, which was not permitted at the current



Home | Main Index | Thread Index | Old Index