Page MenuHomeFreeBSD

D23942.id69123.diff
No OneTemporary

D23942.id69123.diff

Index: lib/libc/sys/gettimeofday.2
===================================================================
--- lib/libc/sys/gettimeofday.2
+++ lib/libc/sys/gettimeofday.2
@@ -28,7 +28,7 @@
.\" @(#)gettimeofday.2 8.2 (Berkeley) 5/26/95
.\" $FreeBSD$
.\"
-.Dd October 27, 2018
+.Dd March 4, 2020
.Dt GETTIMEOFDAY 2
.Os
.Sh NAME
@@ -44,6 +44,14 @@
.Ft int
.Fn settimeofday "const struct timeval *tp" "const struct timezone *tzp"
.Sh DESCRIPTION
+.Em Note :
+The
+.Nm
+function is obsolescent.
+See the
+.Sx STANDARDS
+section for more details.
+.Pp
The system's notion of the current Greenwich time and the current time
zone is obtained with the
.Fn gettimeofday
@@ -125,6 +133,16 @@
.Xr timeradd 3 ,
.Xr clocks 7 ,
.Xr timed 8
+.Sh STANDARDS
+The
+.Nm
+function is considered obsolescent and its usage discouraged by
+.St -p1003.1-2008 .
+Application should use the
+.Xr clock_gettime 2
+function instead as
+.Nm
+might be removed in the future.
.Sh HISTORY
The
.Fn gettimeofday

File Metadata

Mime Type
text/plain
Expires
Wed, May 27, 12:56 AM (15 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33542610
Default Alt Text
D23942.id69123.diff (995 B)

Event Timeline