From ec56256fb36c16a625fac46c0e18bc540c3cb572 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 16 Oct 2022 20:37:03 +0000 Subject: [PATCH] Add EINVAL doc from Jan Schaumann --- lib/libc/sys/gettimeofday.2 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index 6c50b229ccde..1977e9e6cd9f 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -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