History log of /openbsd-current/lib/libc/sys/gettimeofday.2
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.33 31-Mar-2022 naddy

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@


# 1.32 06-Dec-2021 cheloha

gettimeofday.2: miscellaneous manpage cleanup

Highlights:

- Tweak the one-liner description.
- Better variable names.
- Reorder DESCRIPTION to reflect the importance of each interface.
- Advise against using gettimeofday(2) for measuring elapsed time.
- Isolate discussion of the historical timezone parameter to its
own paragraph at the end of the DESCRIPTION.
- Update ERRORS. Mention the securelevel(7) EPERM for settimeofday(2).
- Expand SEE ALSO.
- Note settimeofday(2) in STANDARDS. It is available on many systems.

Discussed with jmc@, millert@, and deraadt@. Possibly discussed with
schwarze@, though I can't find the email.

Thread: https://marc.info/?t=162765632800002&r=1&w=2

"reads fine to me" jmc@, ok millert@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.31 04-Sep-2019 cheloha

gettimeofday, settimeofday(2): limit timezone support

For gettimeofday(2), always copy out an empty timezone struct. For
settimeofday(2), still copyin(9) the struct but ignore the contents.

In gettimeofday(2)'s case we have not changed the original BSD semantics:
the kernel only tracks UTC time without an offset for DST, so a zeroed
timezone struct is the correct thing to return to the caller.

Future work could move these out into libc as stubs for clock_gettime and
clock_settime(2). But, definitely a "later" thing, given that we are in
beta.

Update the manpage to de-emphasize the timezone parameters for these
syscalls.

Discussed with tedu@, deraadt@, millert@, kettenis@, yasuoka@, jca@, and
guenther@. Tested by job@. Ports input from jca@ and sthen@. Manpage
input from jca@.

ok jca@ deraadt@


Revision tags: OPENBSD_6_5_BASE
# 1.30 18-Jan-2019 cheloha

adjtime(2), settimeofday(2), clock_settime(2): validate input

Add documentation for the new EINVAL cases for adjtime(2) and
settimeofday(2).

adjtime.2 docs ok schwarze@,
settimeofday(2)/clock_settime(2) stuff ok tedu@,
"stop waiting" deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 10-Sep-2015 schwarze

use .In rather than .Fd #include


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.28 10-Dec-2014 schwarze

use .Rv; no change of meaning; from Kaspars at Bankovskis dot net


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.27 21-Jan-2014 schwarze

obvious .Pa fixes; found with mandocdb(8)


# 1.26 24-Oct-2013 guenther

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@


# 1.25 11-Sep-2013 krw

Correct type of tv_sec to time_t.

Pointed out by Dawe via tech@.


Revision tags: OPENBSD_5_4_BASE
# 1.24 17-Jul-2013 schwarze

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 1.23 19-Apr-2013 tedu

add clock_gettime to see also. i think guenther was ok with this.


# 1.22 08-Apr-2013 guenther

Updates to SYNOPSIS, ERRORS, and STANDARDS.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.21 07-Nov-2011 schwarze

More .At v1 HISTORY.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl .
All facts checked by sobrado@.
Feedback and ok on an earlier version jmc@.


Revision tags: OPENBSD_5_0_BASE
# 1.20 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.19 01-Apr-2010 jmc

WARNINGS -> CAVEATS, and a little neccessary cleanup;


# 1.18 01-Apr-2010 deraadt

typo


# 1.17 01-Apr-2010 deraadt

document that setting the time of the machine is unsafe. explain why,
and suggest workarounds
ok guenther


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.16 31-May-2007 jmc

convert to new .Dd format;


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 19-May-2005 jmc

.Xr getitimer 2 ,
from jacob meuser;


Revision tags: OPENBSD_3_7_BASE
# 1.14 07-Mar-2005 jmc

more macro simplification;


Revision tags: OPENBSD_3_6_BASE
# 1.13 15-Apr-2004 jmc

various improvements to lists and displays:

.Pp removal
-compact removal for displays
other list/display errors


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 18-Oct-2000 aaron

Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.


Revision tags: OPENBSD_2_7_BASE
# 1.10 15-Apr-2000 aaron

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.


# 1.9 15-Apr-2000 aaron

Mostly punctuation fixes.


Revision tags: OPENBSD_2_6_BASE
# 1.8 31-Aug-1999 aaron

Consistify naming of RETURN VALUES section.


# 1.7 29-Jun-1999 aaron

- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes


# 1.6 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 16-Mar-1997 flipk

allow settimeofday() at securelevel < 2, rather than < 1.
the consensus was that it was too annoying to not be able to change
the clock at securelevel == 1.


# 1.4 22-Feb-1997 millert

update to lite2 -- note restriction when securelevel > 0


# 1.3 15-Jan-1997 millert

Minor formatting tweak from NetBSD (perry) + OpenBSD tags.


Revision tags: OPENBSD_2_0_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd:
add & fix a bunch of system call pages


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.32 06-Dec-2021 cheloha

gettimeofday.2: miscellaneous manpage cleanup

Highlights:

- Tweak the one-liner description.
- Better variable names.
- Reorder DESCRIPTION to reflect the importance of each interface.
- Advise against using gettimeofday(2) for measuring elapsed time.
- Isolate discussion of the historical timezone parameter to its
own paragraph at the end of the DESCRIPTION.
- Update ERRORS. Mention the securelevel(7) EPERM for settimeofday(2).
- Expand SEE ALSO.
- Note settimeofday(2) in STANDARDS. It is available on many systems.

Discussed with jmc@, millert@, and deraadt@. Possibly discussed with
schwarze@, though I can't find the email.

Thread: https://marc.info/?t=162765632800002&r=1&w=2

"reads fine to me" jmc@, ok millert@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.31 04-Sep-2019 cheloha

gettimeofday, settimeofday(2): limit timezone support

For gettimeofday(2), always copy out an empty timezone struct. For
settimeofday(2), still copyin(9) the struct but ignore the contents.

In gettimeofday(2)'s case we have not changed the original BSD semantics:
the kernel only tracks UTC time without an offset for DST, so a zeroed
timezone struct is the correct thing to return to the caller.

Future work could move these out into libc as stubs for clock_gettime and
clock_settime(2). But, definitely a "later" thing, given that we are in
beta.

Update the manpage to de-emphasize the timezone parameters for these
syscalls.

Discussed with tedu@, deraadt@, millert@, kettenis@, yasuoka@, jca@, and
guenther@. Tested by job@. Ports input from jca@ and sthen@. Manpage
input from jca@.

ok jca@ deraadt@


Revision tags: OPENBSD_6_5_BASE
# 1.30 18-Jan-2019 cheloha

adjtime(2), settimeofday(2), clock_settime(2): validate input

Add documentation for the new EINVAL cases for adjtime(2) and
settimeofday(2).

adjtime.2 docs ok schwarze@,
settimeofday(2)/clock_settime(2) stuff ok tedu@,
"stop waiting" deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 10-Sep-2015 schwarze

use .In rather than .Fd #include


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.28 10-Dec-2014 schwarze

use .Rv; no change of meaning; from Kaspars at Bankovskis dot net


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.27 21-Jan-2014 schwarze

obvious .Pa fixes; found with mandocdb(8)


# 1.26 24-Oct-2013 guenther

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@


# 1.25 11-Sep-2013 krw

Correct type of tv_sec to time_t.

Pointed out by Dawe via tech@.


Revision tags: OPENBSD_5_4_BASE
# 1.24 17-Jul-2013 schwarze

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 1.23 19-Apr-2013 tedu

add clock_gettime to see also. i think guenther was ok with this.


# 1.22 08-Apr-2013 guenther

Updates to SYNOPSIS, ERRORS, and STANDARDS.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.21 07-Nov-2011 schwarze

More .At v1 HISTORY.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl .
All facts checked by sobrado@.
Feedback and ok on an earlier version jmc@.


Revision tags: OPENBSD_5_0_BASE
# 1.20 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.19 01-Apr-2010 jmc

WARNINGS -> CAVEATS, and a little neccessary cleanup;


# 1.18 01-Apr-2010 deraadt

typo


# 1.17 01-Apr-2010 deraadt

document that setting the time of the machine is unsafe. explain why,
and suggest workarounds
ok guenther


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.16 31-May-2007 jmc

convert to new .Dd format;


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 19-May-2005 jmc

.Xr getitimer 2 ,
from jacob meuser;


Revision tags: OPENBSD_3_7_BASE
# 1.14 07-Mar-2005 jmc

more macro simplification;


Revision tags: OPENBSD_3_6_BASE
# 1.13 15-Apr-2004 jmc

various improvements to lists and displays:

.Pp removal
-compact removal for displays
other list/display errors


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 18-Oct-2000 aaron

Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.


Revision tags: OPENBSD_2_7_BASE
# 1.10 15-Apr-2000 aaron

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.


# 1.9 15-Apr-2000 aaron

Mostly punctuation fixes.


Revision tags: OPENBSD_2_6_BASE
# 1.8 31-Aug-1999 aaron

Consistify naming of RETURN VALUES section.


# 1.7 29-Jun-1999 aaron

- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes


# 1.6 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 16-Mar-1997 flipk

allow settimeofday() at securelevel < 2, rather than < 1.
the consensus was that it was too annoying to not be able to change
the clock at securelevel == 1.


# 1.4 22-Feb-1997 millert

update to lite2 -- note restriction when securelevel > 0


# 1.3 15-Jan-1997 millert

Minor formatting tweak from NetBSD (perry) + OpenBSD tags.


Revision tags: OPENBSD_2_0_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd:
add & fix a bunch of system call pages


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.31 04-Sep-2019 cheloha

gettimeofday, settimeofday(2): limit timezone support

For gettimeofday(2), always copy out an empty timezone struct. For
settimeofday(2), still copyin(9) the struct but ignore the contents.

In gettimeofday(2)'s case we have not changed the original BSD semantics:
the kernel only tracks UTC time without an offset for DST, so a zeroed
timezone struct is the correct thing to return to the caller.

Future work could move these out into libc as stubs for clock_gettime and
clock_settime(2). But, definitely a "later" thing, given that we are in
beta.

Update the manpage to de-emphasize the timezone parameters for these
syscalls.

Discussed with tedu@, deraadt@, millert@, kettenis@, yasuoka@, jca@, and
guenther@. Tested by job@. Ports input from jca@ and sthen@. Manpage
input from jca@.

ok jca@ deraadt@


Revision tags: OPENBSD_6_5_BASE
# 1.30 18-Jan-2019 cheloha

adjtime(2), settimeofday(2), clock_settime(2): validate input

Add documentation for the new EINVAL cases for adjtime(2) and
settimeofday(2).

adjtime.2 docs ok schwarze@,
settimeofday(2)/clock_settime(2) stuff ok tedu@,
"stop waiting" deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 10-Sep-2015 schwarze

use .In rather than .Fd #include


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.28 10-Dec-2014 schwarze

use .Rv; no change of meaning; from Kaspars at Bankovskis dot net


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.27 21-Jan-2014 schwarze

obvious .Pa fixes; found with mandocdb(8)


# 1.26 24-Oct-2013 guenther

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@


# 1.25 11-Sep-2013 krw

Correct type of tv_sec to time_t.

Pointed out by Dawe via tech@.


Revision tags: OPENBSD_5_4_BASE
# 1.24 17-Jul-2013 schwarze

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 1.23 19-Apr-2013 tedu

add clock_gettime to see also. i think guenther was ok with this.


# 1.22 08-Apr-2013 guenther

Updates to SYNOPSIS, ERRORS, and STANDARDS.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.21 07-Nov-2011 schwarze

More .At v1 HISTORY.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl .
All facts checked by sobrado@.
Feedback and ok on an earlier version jmc@.


Revision tags: OPENBSD_5_0_BASE
# 1.20 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.19 01-Apr-2010 jmc

WARNINGS -> CAVEATS, and a little neccessary cleanup;


# 1.18 01-Apr-2010 deraadt

typo


# 1.17 01-Apr-2010 deraadt

document that setting the time of the machine is unsafe. explain why,
and suggest workarounds
ok guenther


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.16 31-May-2007 jmc

convert to new .Dd format;


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 19-May-2005 jmc

.Xr getitimer 2 ,
from jacob meuser;


Revision tags: OPENBSD_3_7_BASE
# 1.14 07-Mar-2005 jmc

more macro simplification;


Revision tags: OPENBSD_3_6_BASE
# 1.13 15-Apr-2004 jmc

various improvements to lists and displays:

.Pp removal
-compact removal for displays
other list/display errors


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 18-Oct-2000 aaron

Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.


Revision tags: OPENBSD_2_7_BASE
# 1.10 15-Apr-2000 aaron

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.


# 1.9 15-Apr-2000 aaron

Mostly punctuation fixes.


Revision tags: OPENBSD_2_6_BASE
# 1.8 31-Aug-1999 aaron

Consistify naming of RETURN VALUES section.


# 1.7 29-Jun-1999 aaron

- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes


# 1.6 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 16-Mar-1997 flipk

allow settimeofday() at securelevel < 2, rather than < 1.
the consensus was that it was too annoying to not be able to change
the clock at securelevel == 1.


# 1.4 22-Feb-1997 millert

update to lite2 -- note restriction when securelevel > 0


# 1.3 15-Jan-1997 millert

Minor formatting tweak from NetBSD (perry) + OpenBSD tags.


Revision tags: OPENBSD_2_0_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd:
add & fix a bunch of system call pages


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.30 18-Jan-2019 cheloha

adjtime(2), settimeofday(2), clock_settime(2): validate input

Add documentation for the new EINVAL cases for adjtime(2) and
settimeofday(2).

adjtime.2 docs ok schwarze@,
settimeofday(2)/clock_settime(2) stuff ok tedu@,
"stop waiting" deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.29 10-Sep-2015 schwarze

use .In rather than .Fd #include


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.28 10-Dec-2014 schwarze

use .Rv; no change of meaning; from Kaspars at Bankovskis dot net


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.27 21-Jan-2014 schwarze

obvious .Pa fixes; found with mandocdb(8)


# 1.26 24-Oct-2013 guenther

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@


# 1.25 11-Sep-2013 krw

Correct type of tv_sec to time_t.

Pointed out by Dawe via tech@.


Revision tags: OPENBSD_5_4_BASE
# 1.24 17-Jul-2013 schwarze

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 1.23 19-Apr-2013 tedu

add clock_gettime to see also. i think guenther was ok with this.


# 1.22 08-Apr-2013 guenther

Updates to SYNOPSIS, ERRORS, and STANDARDS.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.21 07-Nov-2011 schwarze

More .At v1 HISTORY.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl .
All facts checked by sobrado@.
Feedback and ok on an earlier version jmc@.


Revision tags: OPENBSD_5_0_BASE
# 1.20 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.19 01-Apr-2010 jmc

WARNINGS -> CAVEATS, and a little neccessary cleanup;


# 1.18 01-Apr-2010 deraadt

typo


# 1.17 01-Apr-2010 deraadt

document that setting the time of the machine is unsafe. explain why,
and suggest workarounds
ok guenther


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.16 31-May-2007 jmc

convert to new .Dd format;


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 19-May-2005 jmc

.Xr getitimer 2 ,
from jacob meuser;


Revision tags: OPENBSD_3_7_BASE
# 1.14 07-Mar-2005 jmc

more macro simplification;


Revision tags: OPENBSD_3_6_BASE
# 1.13 15-Apr-2004 jmc

various improvements to lists and displays:

.Pp removal
-compact removal for displays
other list/display errors


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 18-Oct-2000 aaron

Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.


Revision tags: OPENBSD_2_7_BASE
# 1.10 15-Apr-2000 aaron

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.


# 1.9 15-Apr-2000 aaron

Mostly punctuation fixes.


Revision tags: OPENBSD_2_6_BASE
# 1.8 31-Aug-1999 aaron

Consistify naming of RETURN VALUES section.


# 1.7 29-Jun-1999 aaron

- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes


# 1.6 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 16-Mar-1997 flipk

allow settimeofday() at securelevel < 2, rather than < 1.
the consensus was that it was too annoying to not be able to change
the clock at securelevel == 1.


# 1.4 22-Feb-1997 millert

update to lite2 -- note restriction when securelevel > 0


# 1.3 15-Jan-1997 millert

Minor formatting tweak from NetBSD (perry) + OpenBSD tags.


Revision tags: OPENBSD_2_0_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd:
add & fix a bunch of system call pages


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.29 10-Sep-2015 schwarze

use .In rather than .Fd #include


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.28 10-Dec-2014 schwarze

use .Rv; no change of meaning; from Kaspars at Bankovskis dot net


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.27 21-Jan-2014 schwarze

obvious .Pa fixes; found with mandocdb(8)


# 1.26 24-Oct-2013 guenther

Align suseconds_t with POSIX: it's the type of the tv_usec member of timeval.
Use useconds_t in the ualarm() declaration.
Bump libstdc++ major to be sure there isn't ABI issues.

ok deraadt@ jca@ jmc@ millert@
ports testing by landry@


# 1.25 11-Sep-2013 krw

Correct type of tv_sec to time_t.

Pointed out by Dawe via tech@.


Revision tags: OPENBSD_5_4_BASE
# 1.24 17-Jul-2013 schwarze

more library history
facts checked by sobrado@
style tweaks and ok jmc@


# 1.23 19-Apr-2013 tedu

add clock_gettime to see also. i think guenther was ok with this.


# 1.22 08-Apr-2013 guenther

Updates to SYNOPSIS, ERRORS, and STANDARDS.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.21 07-Nov-2011 schwarze

More .At v1 HISTORY.
All information from http://minnie.tuhs.org/cgi-bin/utree.pl .
All facts checked by sobrado@.
Feedback and ok on an earlier version jmc@.


Revision tags: OPENBSD_5_0_BASE
# 1.20 07-Jul-2011 deraadt

timed's time is up. use ntpd(8). Even our own fossil developers
switched a while back.
ok miod, kettenis


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.19 01-Apr-2010 jmc

WARNINGS -> CAVEATS, and a little neccessary cleanup;


# 1.18 01-Apr-2010 deraadt

typo


# 1.17 01-Apr-2010 deraadt

document that setting the time of the machine is unsafe. explain why,
and suggest workarounds
ok guenther


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.16 31-May-2007 jmc

convert to new .Dd format;


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.15 19-May-2005 jmc

.Xr getitimer 2 ,
from jacob meuser;


Revision tags: OPENBSD_3_7_BASE
# 1.14 07-Mar-2005 jmc

more macro simplification;


Revision tags: OPENBSD_3_6_BASE
# 1.13 15-Apr-2004 jmc

various improvements to lists and displays:

.Pp removal
-compact removal for displays
other list/display errors


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
# 1.12 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 18-Oct-2000 aaron

Another round of man page cleanup, this time to remove more hard sentence
breaks and getting rid of short lines, making these files easier to work with.


Revision tags: OPENBSD_2_7_BASE
# 1.10 15-Apr-2000 aaron

- For consistency, `super-user' -> `superuser' in all cases.
- Some punctuation fixes.
- Some `id' -> `ID'.


# 1.9 15-Apr-2000 aaron

Mostly punctuation fixes.


Revision tags: OPENBSD_2_6_BASE
# 1.8 31-Aug-1999 aaron

Consistify naming of RETURN VALUES section.


# 1.7 29-Jun-1999 aaron

- change references to nil to null; tschroed@acm.org
- remove trailing spaces from end of lines
- add some .Dv
- change -1 to \-1, so `-' is taken as a negative sign
- other misc formatting fixes


# 1.6 23-May-1999 aaron

remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-common
is used instead; kwesterback@home.com


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 16-Mar-1997 flipk

allow settimeofday() at securelevel < 2, rather than < 1.
the consensus was that it was too annoying to not be able to change
the clock at securelevel == 1.


# 1.4 22-Feb-1997 millert

update to lite2 -- note restriction when securelevel > 0


# 1.3 15-Jan-1997 millert

Minor formatting tweak from NetBSD (perry) + OpenBSD tags.


Revision tags: OPENBSD_2_0_BASE
# 1.2 14-Dec-1995 deraadt

from netbsd:
add & fix a bunch of system call pages


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision