Module Name:    src
Committed By:   christos
Date:           Sun Oct 16 20:37:03 UTC 2022

Modified Files:
        src/lib/libc/sys: gettimeofday.2

Log Message:
Add EINVAL doc from Jan Schaumann


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libc/sys/gettimeofday.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/gettimeofday.2
diff -u src/lib/libc/sys/gettimeofday.2:1.29 src/lib/libc/sys/gettimeofday.2:1.30
--- src/lib/libc/sys/gettimeofday.2:1.29	Wed Dec  9 03:30:03 2015
+++ src/lib/libc/sys/gettimeofday.2	Sun Oct 16 16:37:03 2022
@@ -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 @@ The following error codes may be set in
 .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

Reply via email to