summaryrefslogtreecommitdiff
path: root/usr/src/man
diff options
context:
space:
mode:
authorDan McDonald <danmcd@mnx.io>2022-10-03 14:13:13 -0400
committerDan McDonald <danmcd@mnx.io>2022-10-03 14:13:13 -0400
commit80d7725bf1e4fb33051ad152f649814a6aea8d62 (patch)
tree508febb84b3f87b333098cdcd668f94c9d63f1c1 /usr/src/man
parent4e09adb1ae71f9570a14be2e9c2e7d1fcd64b0cc (diff)
parent00bfaff92dad2fa278f0e40718333cf4864ad7d5 (diff)
downloadillumos-joyent-80d7725bf1e4fb33051ad152f649814a6aea8d62.tar.gz
[illumos-gate merge]
commit 00bfaff92dad2fa278f0e40718333cf4864ad7d5 14519 zfs_root should cache vnode commit b93865c3d90e9b0d73e338c9abb3293c35c571a8 14985 adjtime could be more const
Diffstat (limited to 'usr/src/man')
-rw-r--r--usr/src/man/man2/adjtime.213
1 files changed, 2 insertions, 11 deletions
diff --git a/usr/src/man/man2/adjtime.2 b/usr/src/man/man2/adjtime.2
index 93b0e4ac22..b4586b358a 100644
--- a/usr/src/man/man2/adjtime.2
+++ b/usr/src/man/man2/adjtime.2
@@ -1,19 +1,16 @@
'\" te
.\" Copyright 1989 AT&T Copyright (c) 1980 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
-.TH ADJTIME 2 "Jan 20, 2003"
+.TH ADJTIME 2 "Sep 19, 2022"
.SH NAME
adjtime \- correct the time to allow synchronization of the system clock
.SH SYNOPSIS
-.LP
.nf
#include <sys/time.h>
-\fBint\fR \fBadjtime\fR(\fBstruct timeval *\fR\fIdelta\fR, \fBstruct timeval *\fR\fIolddelta\fR);
+\fBint\fR \fBadjtime\fR(\fBconst struct timeval *\fR\fIdelta\fR, \fBstruct timeval *\fR\fIolddelta\fR);
.fi
.SH DESCRIPTION
-.sp
-.LP
The \fBadjtime()\fR function adjusts the system's notion of the current time as
returned by \fBgettimeofday\fR(3C), advancing or retarding it by the amount of
time specified in the \fBstruct\fR \fBtimeval\fR pointed to by \fIdelta\fR.
@@ -47,13 +44,9 @@ Only a processes with appropriate privileges can adjust the time of day.
The adjustment value will be silently rounded to the resolution of the system
clock.
.SH RETURN VALUES
-.sp
-.LP
Upon successful completion, \fBadjtime()\fR returns \fB0\fR. Otherwise, it
returns \fB\(mi1\fR and sets \fBerrno\fR to indicate the error.
.SH ERRORS
-.sp
-.LP
The \fBadjtime()\fR function will fail if:
.sp
.ne 2
@@ -100,8 +93,6 @@ by \fIolddelta\fR is too small to contain the correct number of seconds.
.RE
.SH SEE ALSO
-.sp
-.LP
.BR date (1),
.BR gettimeofday (3C),
.BR privileges (7)