Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108025232
D23942.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D23942.diff
View Options
diff --git a/lib/libsys/gettimeofday.2 b/lib/libsys/gettimeofday.2
--- a/lib/libsys/gettimeofday.2
+++ b/lib/libsys/gettimeofday.2
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 13, 2021
+.Dd April 24, 2024
.Dt GETTIMEOFDAY 2
.Os
.Sh NAME
@@ -41,6 +41,17 @@
.Ft int
.Fn settimeofday "const struct timeval *tp" "const struct timezone *tzp"
.Sh DESCRIPTION
+.Em Note :
+The
+.Nm gettimeofday
+function
+.Po but not
+.Nm settimeofday Pc
+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
@@ -121,6 +132,18 @@
.Xr ctime 3 ,
.Xr timeradd 3 ,
.Xr clocks 7
+.Sh STANDARDS
+The
+.Nm gettimeofday
+function is considered obsolescent and its usage discouraged by
+.\" XXX: This should be replaced in the future when an appropriate argument to
+.\" the St macro is available: -p1003.1-2017
+.No IEEE Std 1003.1-2008, 2017 Edition (\\(LqPOSIX.1\\(Rq) .
+Application should use the
+.Xr clock_gettime 2
+function instead as
+.Nm gettimeofday
+might be removed in the future.
.Sh HISTORY
The
.Fn gettimeofday
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 4:09 PM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16015855
Default Alt Text
D23942.diff (1 KB)
Attached To
Mode
D23942: Document that gettimeofday() is obsolescent
Attached
Detach File
Event Timeline
Log In to Comment