Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2015 15:30:13 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r292776 - stable/10/lib/libc/sys
Message-ID:  <201512271530.tBRFUDmA092367@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sun Dec 27 15:30:13 2015
New Revision: 292776
URL: https://svnweb.freebsd.org/changeset/base/292776

Log:
  MFC r292513: clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.
  
  Depending on system configuration and parameters, clock_gettime() and
  gettimeofday() may not be system calls. If so, passing an invalid pointer
  will cause a signal and not an [EFAULT] error.
  
  From a standards perspective, this is OK since passing an invalid pointer is
  undefined behaviour.

Modified:
  stable/10/lib/libc/sys/clock_gettime.2
  stable/10/lib/libc/sys/gettimeofday.2
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/clock_gettime.2
==============================================================================
--- stable/10/lib/libc/sys/clock_gettime.2	Sun Dec 27 15:18:01 2015	(r292775)
+++ stable/10/lib/libc/sys/clock_gettime.2	Sun Dec 27 15:30:13 2015	(r292776)
@@ -29,7 +29,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 29, 2009
+.Dd December 20, 2015
 .Dt CLOCK_GETTIME 2
 .Os
 .Sh NAME
@@ -136,10 +136,6 @@ The
 .Fa clock_id
 argument
 was not a valid value.
-.It Bq Er EFAULT
-The
-.Fa *tp
-argument address referenced invalid memory.
 .It Bq Er EPERM
 A user other than the super-user attempted to set the time.
 .El

Modified: stable/10/lib/libc/sys/gettimeofday.2
==============================================================================
--- stable/10/lib/libc/sys/gettimeofday.2	Sun Dec 27 15:18:01 2015	(r292775)
+++ stable/10/lib/libc/sys/gettimeofday.2	Sun Dec 27 15:30:13 2015	(r292776)
@@ -28,7 +28,7 @@
 .\"     @(#)gettimeofday.2	8.2 (Berkeley) 5/26/95
 .\" $FreeBSD$
 .\"
-.Dd May 26, 1995
+.Dd December 20, 2015
 .Dt GETTIMEOFDAY 2
 .Os
 .Sh NAME
@@ -110,8 +110,6 @@ system call even when the system is secu
 The following error codes may be set in
 .Va errno :
 .Bl -tag -width Er
-.It Bq Er EFAULT
-An argument address referenced invalid memory.
 .It Bq Er EPERM
 A user other than the super-user attempted to set the time.
 .El



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512271530.tBRFUDmA092367>