<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/time.h, branch release/14.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-01-18T20:17:48Z</updated>
<entry>
<title>Expose POSIX functions incorporated into C23</title>
<updated>2025-01-18T20:17:48Z</updated>
<author>
<name>Stephen Hurd</name>
<email>shurd@FreeBSD.org</email>
</author>
<published>2025-01-18T20:17:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc14b1ebce0eac01d70d126eae48ae50c1b6112d'/>
<id>urn:sha1:bc14b1ebce0eac01d70d126eae48ae50c1b6112d</id>
<content type='text'>
C23 has incoporated a small number of POSIX functions, so these
should be exposed for C23, regardless of POSIX.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D47856

(cherry picked from commit 59677aecb67bbedcfa2ee5d7d2b189193cdc4af7)
</content>
</entry>
<entry>
<title>time.h: Fix visibility check for C11 and C23 features.</title>
<updated>2023-09-07T20:28:31Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-09-06T01:37:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd5a2e6b43695a20f1b61fa47626cb8102a7d081'/>
<id>urn:sha1:cd5a2e6b43695a20f1b61fa47626cb8102a7d081</id>
<content type='text'>
__BSD_VISIBLE is always defined; we need to check if it's true.

Fixes:		d02489d11aed 9b5d724cad10
MFC after:	3 days
Reviewed by:	brooks, imp
Differential Revision:	https://reviews.freebsd.org/D41733

(cherry picked from commit 8091b82e291642f3034dc3fdc8689a4f4ba027da)

Approved by:	re (gjb)
</content>
</entry>
<entry>
<title>libc: Add timespec_getres(3) as per C23.</title>
<updated>2023-08-24T21:31:54Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-08-24T21:31:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b5d724cad10087e34165199e55f15f2df744ed5'/>
<id>urn:sha1:9b5d724cad10087e34165199e55f15f2df744ed5</id>
<content type='text'>
This also adds support for TIME_MONOTONIC to timespec_get(3).

Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D41524
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .h pattern</title>
<updated>2023-08-16T17:54:23Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=42b388439bd3795e09258c57a74ce9eec3651c7b'/>
<id>urn:sha1:42b388439bd3795e09258c57a74ce9eec3651c7b</id>
<content type='text'>
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>libc: Remove prototype and documentation for tzsetwall().</title>
<updated>2023-03-07T17:20:49Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2023-03-07T16:04:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a9a38dea37ef4b8a404978de9c5db0ab9f0ba07b'/>
<id>urn:sha1:a9a38dea37ef4b8a404978de9c5db0ab9f0ba07b</id>
<content type='text'>
PR:		269445
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D38481
</content>
</entry>
<entry>
<title>time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h</title>
<updated>2021-07-30T23:20:22Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2021-07-30T23:10:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7b797ba27a714594dac910035d857e653d566b19'/>
<id>urn:sha1:7b797ba27a714594dac910035d857e653d566b19</id>
<content type='text'>
Attempt to comply with the strict namespace pollution requirements of
_POSIX_C_SOURCE. Add guards to limit visitbility of CLOCK_ and TIMER_
defines as appropriate. Only define the CLOCK_ variables relevant to the
specific standards. Move all the sharing to sys/_clock_id.h and make
time.h and sys/time.h both include that rather than copy due to the
now large number of clocks and compat defines.

Please note: The old time.h previously used these newer dates:
	CLOCK_REALTIME			199506
	CLOCK_MONOTONIC			200112
	CLOCK_THREAD_CPUTIME_ID		200112
	CLOCK_PROCESS_CPUTIME_ID	200112

but glibc defines all of these for 199309. glibc uses this date for all
these values, however, only CLOCK_REALTIME was in IEEE 1003.1b. Add a
comment about this to document it. A large number of programs and
libraries assume that these will be defined for _POSIX_C_SOURCE =
199309.

In addition, leak CLOCK_UPTIME_FAST for the pocl package until it can be
updated to use a simple CLOCK_MONOTONIC.

Reviewed by:		kib
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D31056
</content>
</entry>
<entry>
<title>Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE &gt;= 500.</title>
<updated>2020-07-14T20:23:27Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-07-14T20:23:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aeafed21c4e2b2fbd54de67ba3152efc906d4891'/>
<id>urn:sha1:aeafed21c4e2b2fbd54de67ba3152efc906d4891</id>
<content type='text'>
Reported by:	jbeich
PR:	247701
Reviewed by:	jilles
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D25554
</content>
</entry>
<entry>
<title>Correctly check for C++17 and higher when declaring timespec_get()</title>
<updated>2019-12-09T19:17:56Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2019-12-09T19:17:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bc053cafcaa284323172c45995fff6d26b9189ab'/>
<id>urn:sha1:bc053cafcaa284323172c45995fff6d26b9189ab</id>
<content type='text'>
Summary:
In rS338751, the check to declare `timespec_get()` for C++17 and higher
was incorrectly done against a `cplusplus` define, while it should have
been `__cplusplus`.

Fix this by using `__cplusplus`, and also bump `__FreeBSD_version` so it
becomes possible to correctly check for `timespec_get()` in upstream
libc++ headers.

Reviewed by:	brooks, emaste
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D22735
</content>
</entry>
<entry>
<title>Fix C11 and POSIX 1003.1b-1993 compliance in time.h</title>
<updated>2018-09-18T15:31:24Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2018-09-18T15:31:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d02489d11aed2aa5410889f18f4fe8a356f4ca3b'/>
<id>urn:sha1:d02489d11aed2aa5410889f18f4fe8a356f4ca3b</id>
<content type='text'>
Only expose timespec_get in C11, C++17, or BSD code.  Always define
struct timespect if defining timespec_get.

PR:		231425
Reviewed by:	kib
Approved by:	re (gjb)
Differential Revision:	https://reviews.freebsd.org/D17174
</content>
</entry>
<entry>
<title>Bring in timespce_get form NetBSD.</title>
<updated>2018-08-10T15:16:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2018-08-10T15:16:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e299411ac91383d8a28de9fadd2b4ed8a148fff'/>
<id>urn:sha1:7e299411ac91383d8a28de9fadd2b4ed8a148fff</id>
<content type='text'>
Bring in the functionality for timespec_get from NetBSD. I've lightly
edited the .c file to remove _DIAGASSERT because FreeBSD doesn't have
that functionality and the typical #define'ing it to assert isn't
right here. The man page is verbatim from NetBSD, but will be revised
as part of a larger cleanup of the time man pages (they are
inconsistent and vague in all the wrong places).

Differential Review: https://reviews.freebsd.org/D16649
</content>
</entry>
</feed>
