<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/time.h, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-09-12T15:56:16Z</updated>
<entry>
<title>time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h</title>
<updated>2021-09-12T15:56:16Z</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=d7535fb3e3cbb772b618bb33b54ee7cb9148ea31'/>
<id>urn:sha1:d7535fb3e3cbb772b618bb33b54ee7cb9148ea31</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

(cherry picked from commit 7b797ba27a714594dac910035d857e653d566b19)
</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>
<entry>
<title>Add time2posix and posix2time to time.h</title>
<updated>2018-05-25T13:40:05Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2018-05-25T13:40:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe9fbe221db15dc2e9cbddf3af8b0e5af90ae891'/>
<id>urn:sha1:fe9fbe221db15dc2e9cbddf3af8b0e5af90ae891</id>
<content type='text'>
These are documented in `time2posix.3` but the symbols are not actually
visible. Since these are not POSIX hide them behind _BSD_VISIBLE.

Reviewed by:		wollman
Differential Revision:	https://reviews.freebsd.org/D15530
</content>
</entry>
<entry>
<title>Do not include float interfaces when using libsa.</title>
<updated>2018-02-23T04:04:25Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2018-02-23T04:04:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ef1fcaf0f5bf501986c4c3d5c260c020eec57a92'/>
<id>urn:sha1:ef1fcaf0f5bf501986c4c3d5c260c020eec57a92</id>
<content type='text'>
We don't support float in the boot loaders, so don't include
interfaces for float or double in systems headers. In addition, take
the unusual step of spiking double and float to prevent any more
accidental seepage.
</content>
</entry>
<entry>
<title>include: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-20T19:45:28Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-20T19:45:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2321c474185e657ad1bdb4ef0a323cb10ba09cfc'/>
<id>urn:sha1:2321c474185e657ad1bdb4ef0a323cb10ba09cfc</id>
<content type='text'>
Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
</content>
</entry>
<entry>
<title>Add clock_nanosleep()</title>
<updated>2017-03-19T00:51:12Z</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2017-03-19T00:51:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3f8455b0905a05552b1155e09165787e1d098060'/>
<id>urn:sha1:3f8455b0905a05552b1155e09165787e1d098060</id>
<content type='text'>
Add a clock_nanosleep() syscall, as specified by POSIX.
Make nanosleep() a wrapper around it.

Attach the clock_nanosleep test from NetBSD. Adjust it for the
FreeBSD behavior of updating rmtp only when interrupted by a signal.
I believe this to be POSIX-compliant, since POSIX mentions the rmtp
parameter only in the paragraph about EINTR. This is also what
Linux does. (NetBSD updates rmtp unconditionally.)

Copy the whole nanosleep.2 man page from NetBSD because it is complete
and closely resembles the POSIX description. Edit, polish, and reword it
a bit, being sure to keep any relevant text from the FreeBSD page.

Reviewed by:	kib, ngie, jilles
MFC after:	3 weeks
Relnotes:	yes
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D10020
</content>
</entry>
<entry>
<title>Export the mq_getfd_np() symbol from librt.so, which allows to get</title>
<updated>2016-10-02T17:02:59Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2016-10-02T17:02:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ddce1c3ddbfb773c2ee1343721f4e5bbe07186d0'/>
<id>urn:sha1:ddce1c3ddbfb773c2ee1343721f4e5bbe07186d0</id>
<content type='text'>
file descriptor for the given posix mqueue.  Export the
timer_oshandle_np() symbol to get ktimer id for the given posix timer.

Requested by:	Lewis Donzis &lt;lew@perftech.com&gt;
Reviewed by:	jilles
Discussed with:	kan
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
</content>
</entry>
</feed>
