From 018c296c7e2f01b5713e012e2d498a7372b7fd22 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 13 May 2018 16:21:00 +0200 Subject: [PATCH] gettimeofday.2: ERRORS: add EINVAL for noncanonical 'tv' argument to settimeofday() Signed-off-by: Michael Kerrisk --- man2/gettimeofday.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2 index 049b3613f..05efb67d1 100644 --- a/man2/gettimeofday.2 +++ b/man2/gettimeofday.2 @@ -159,6 +159,13 @@ pointed outside the accessible address space. .I timezone is invalid. .TP +.B EINVAL +.RB ( settimeofday ()): +.I tv.tv_sec +is negative or +.I tv.tv_usec +is outside the range [0..999,999]. +.TP .B EPERM The calling process has insufficient privilege to call .BR settimeofday ();