History log of /src/lib/libsys/clock_gettime.2 (Results 1 – 25 of 46)
Revision Date Author Comments
# 30394f3c 15-Oct-2025 Bryan Drewery <bdrewery@FreeBSD.org>

clock_gettime(2): Remove unneeded trailing wording.


# 67c5db93 13-Jun-2025 Warner Losh <imp@FreeBSD.org>

clock_gettime: Better markup

Markup CLOCK_REALTIME better.

Noticed by: kib
Fixes: 7b7ba7857ce8
Sponsored by: Netflix


# bd8621c6 13-Jun-2025 Warner Losh <imp@FreeBSD.org>

kern_time: minor style nits

Typically we spell error values 'error' not 'err'. And fix EINVAL markup
nit.

Suggested by: kib
Fixes: 7b7ba7857ce8
Sponsored by: Netflix


# 7b7ba785 12-Jun-2025 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

Implement CLOCK_TAI

Provide a clock through clock_gettime() that returns the current TAI
time (UTC without leap seconds) as a complement to CLOCK_REALTIME. This
provides compatibility with Linux, wh

Implement CLOCK_TAI

Provide a clock through clock_gettime() that returns the current TAI
time (UTC without leap seconds) as a complement to CLOCK_REALTIME. This
provides compatibility with Linux, which also provides a CLOCK_TAI since
kernel 2.6.26, and this seems to be becoming the standard way to acquire
TAI time. Unlike Linux, this code will return EINVAL if the TAI offset
(set by ntpd, ptpd, etc.) is not known since it seems pathological for
CLOCK_TAI to silently give the wrong (UTC) time if the offset is not
known as it does on Linux.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D46268

show more ...


# de1e9133 28-Jun-2024 Warner Losh <imp@FreeBSD.org>

clock_gettime: Catch up with the CLOCK_BOOTTIME changes

When CLOCK_BOOTTIME was made an alias for CLOCK_MONOTONIC, the man page
wasn't updated. Update to include the changed semantics (it was to be

clock_gettime: Catch up with the CLOCK_BOOTTIME changes

When CLOCK_BOOTTIME was made an alias for CLOCK_MONOTONIC, the man page
wasn't updated. Update to include the changed semantics (it was to be
better compatible with Linux). Clarify the details of these clocks.
Provide a reference to the UTC standard, and a clarifying remark
about leap second encoding (fun fact: POSIX provides no unique
value for these, nor definitive values to use).

Sponsored by: Netflix

show more ...


# 2d29d2ec 06-May-2024 Ed Maste <emaste@FreeBSD.org>

clock_gettime.2: fix markup

The CLOCK_* constants are "defined variable or preprocessor constants"
and so use .Dv.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https

clock_gettime.2: fix markup

The CLOCK_* constants are "defined variable or preprocessor constants"
and so use .Dv.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45106

show more ...


# 8269e767 14-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths

libsys: relocate implementations and manpages

Remove core system call implementations and documentation to lib/libsys
and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>.
Update paths to allow libc to find them in their new home.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908

show more ...


# 314542de 03-Aug-2022 Warner Losh <imp@FreeBSD.org>

clock_gettime: Minor clarification

Add a note saying that the CLOCK_BOOTTIME is unrelated to FreeBSD's
kern.boottime sysctl. Make a minor tweak to markup.

Feedback from: pauammu
Sponsored by: Net

clock_gettime: Minor clarification

Add a note saying that the CLOCK_BOOTTIME is unrelated to FreeBSD's
kern.boottime sysctl. Make a minor tweak to markup.

Feedback from: pauammu
Sponsored by: Netflix
Differential Revsion: https://reviews.freebsd.org/D36037

show more ...


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 16e4487e 08-Jul-2022 Mateusz Piotrowski <0mp@FreeBSD.org>

clock_gettime.2: Clarify CLOCK_*

Clarify that CLOCK_* (e.g., CLOCK_REALTIME) do not necessarily default
to CLOCK_*_FAST.

PR: 259642


# 13a9da7d 08-Jul-2022 Mateusz Piotrowski <0mp@FreeBSD.org>

clock_gettime.2: Add cross references and fix linter warnings

MFC after: 3 days


# 155f1511 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

clock_gettime: Add Linux aliases for CLOCK_*

Linux standardized what we call CLOCK_{REALTIME,MONOTONIC}_FAST as
CLOCK_{REALTIME,MONOTONIC}_COARSE. In addition, Linux spells
CLOCK_UPTIME as CLOCK_BOO

clock_gettime: Add Linux aliases for CLOCK_*

Linux standardized what we call CLOCK_{REALTIME,MONOTONIC}_FAST as
CLOCK_{REALTIME,MONOTONIC}_COARSE. In addition, Linux spells
CLOCK_UPTIME as CLOCK_BOOTTIME.

Add aliases to time.h and document these new aliases in
clock_gettime(2).

Reviewed by: vangyzen, kib (prior), dchagin (prior)
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D30988

show more ...


# 1760799b 13-May-2021 Ceri Davies <ceri@FreeBSD.org>

Remove references to timed(8)

There are still references to timed(8) and timedc(8) in the base system,
which were removed in 2018.

PR: 255425
Reported by: Ceri Davies <ceri at submonkey dot net>
Re

Remove references to timed(8)

There are still references to timed(8) and timedc(8) in the base system,
which were removed in 2018.

PR: 255425
Reported by: Ceri Davies <ceri at submonkey dot net>
Reviewed by: ygy, gbe
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30232

show more ...


# 8d3443b1 07-Dec-2019 Alan Somers <asomers@FreeBSD.org>

clock_gettime(2): add a HISTORY section

MFC after: 2 weeks


# 16fe28bb 22-Mar-2017 Eric van Gyzen <vangyzen@FreeBSD.org>

clock_gettime.2: add some clock IDs

Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id
values to the clock_gettime(2) man page. Reformat the excessively
long paragraph (sentence!

clock_gettime.2: add some clock IDs

Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id
values to the clock_gettime(2) man page. Reformat the excessively
long paragraph (sentence!) into a tag list.

Reported by: jilles in https://reviews.freebsd.org/D10020
MFC after: 3 days
Sponsored by: Dell EMC

show more ...


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96

show more ...


# 3e18d701 27-Dec-2015 Dmitry Chagin <dchagin@FreeBSD.org>

Verify that tv_sec value specified in settimeofday() and clock_settime()
(CLOCK_REALTIME case) system calls is non negative.
This commit hides a kernel panic in atrtc_settime() as the clock_ts_to_ct(

Verify that tv_sec value specified in settimeofday() and clock_settime()
(CLOCK_REALTIME case) system calls is non negative.
This commit hides a kernel panic in atrtc_settime() as the clock_ts_to_ct()
does not properly convert negative tv_sec.

ps. in my opinion clock_ts_to_ct() should be rewritten to properly handle
negative tv_sec values.

Differential Revision: https://reviews.freebsd.org/D4714
Reviewed by: kib

MFC after: 1 week

show more ...


# 11022e84 20-Dec-2015 Jilles Tjoelker <jilles@FreeBSD.org>

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 point

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.

MFC after: 1 week

show more ...


# 0d9deed5 08-Oct-2010 Ulrich Spörlein <uqs@FreeBSD.org>

mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd


# d439b6c2 29-Dec-2009 Konstantin Belousov <kib@FreeBSD.org>

Document _FAST and _PRECISE clocks.

Submitted by: Valentin Nechayev <netch segfault kiev ua>
MFC after: 3 days


# 5d2874ab 29-Dec-2009 Konstantin Belousov <kib@FreeBSD.org>

Document CLOCK_SECOND, add cross-reference from time(3) to clock_gettime(2).

Based on submission by: pluknet gmail com
MFC after: 3 days


# 636133e3 25-Feb-2008 Christian Brueffer <brueffer@FreeBSD.org>

Add missing words.

MFC after: 3 days


# c879ae35 09-Jan-2007 Warner Losh <imp@FreeBSD.org>

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 137e54d3 04-Nov-2006 Daniel Gerzo <danger@FreeBSD.org>

- clock_gettime is in time.h instead of sys/time.h

Approved by: trhodes (mentor), keramida (mentor)
PR: docs/104707
MFC-after: 3 days


# a73a3ab5 17-Sep-2006 Ruslan Ermilov <ru@FreeBSD.org>

Markup fixes.


12