| #
5da388c6
|
| 27-Nov-2025 |
Robert Clausecker <fuz@FreeBSD.org> |
time.h: add timegm() to the C23 namespace
This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856.
Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677ae
time.h: add timegm() to the C23 namespace
This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856.
Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677aecb67bbedcfa2ee5d7d2b189193cdc4af7 MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53951
show more ...
|
| #
155290b2
|
| 23-Sep-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tzcode: Expose and document offtime() and offtime_r()
Includes diff reduction to upstream version of this patch.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: philip Differential Revisio
tzcode: Expose and document offtime() and offtime_r()
Includes diff reduction to upstream version of this patch.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: philip Differential Revision: https://reviews.freebsd.org/D39715
show more ...
|
| #
415a0ce0
|
| 20-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Revert Make newly POSIX functions visible
Summary: This reverts commit d7efac1be1441c122f7fb9de51a409172f21326c. This reverts commit 9d0eea9422d075c8a6924b33161d2d5abfb4072a.
Some ports (specifical
Revert Make newly POSIX functions visible
Summary: This reverts commit d7efac1be1441c122f7fb9de51a409172f21326c. This reverts commit 9d0eea9422d075c8a6924b33161d2d5abfb4072a.
Some ports (specifically Python) define __BSD_VISIBLE themselves, so the change from __BSD_VISIBLE to __POSIX_VISIBLE >= 202405 makes them fail.
Reported by: jrtc27, cperciva
show more ...
|
| #
d7efac1b
|
| 20-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Add missing ||
Fixes: 9d0eea9422
|
| #
9d0eea94
|
| 19-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Make newly POSIX functions visible
Some of the POSIX 202405L functions are already in the system, make them visible when appropriate.
Reviewed by: imp MFC after: 1 week Differential Revision: https
Make newly POSIX functions visible
Some of the POSIX 202405L functions are already in the system, make them visible when appropriate.
Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47859
show more ...
|
| #
59677aec
|
| 01-Dec-2024 |
Stephen Hurd <shurd@FreeBSD.org> |
Expose POSIX functions incorporated into C23
C23 has incoporated a small number of POSIX functions, so these should be exposed for C23, regardless of POSIX.
Reviewed by: imp, emaste Differential Re
Expose POSIX functions incorporated into C23
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
show more ...
|
| #
a34940a9
|
| 12-Mar-2024 |
Warner Losh <imp@FreeBSD.org> |
timezone: Move to the XSI/POSIX definition for timezone.
The old timezone(3) function has long since been obsolete and has a fatally flawed interface. Retain this function for compatibility purposes
timezone: Move to the XSI/POSIX definition for timezone.
The old timezone(3) function has long since been obsolete and has a fatally flawed interface. Retain this function for compatibility purposes, but shift to providing the offset from UTC in the timezone variable, whether or not the timezone observes summer time in the 'daylight' variable. Document the tzname variable that's already been set. Also make _tztab() static. It's not used in libc (or anywhere in the tree) and it's not exported as a public dynamic symbol.
Sponsored by: Netflix Reviewed by: brooks, kib Differential Revision: https://reviews.freebsd.org/D44281
show more ...
|
| #
5a1d1441
|
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
include: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a pe
include: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
| #
8091b82e
|
| 06-Sep-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
time.h: Fix visibility check for C11 and C23 features.
__BSD_VISIBLE is always defined; we need to check if it's true.
Fixes: d02489d11aed 9b5d724cad10 MFC after: 3 days Reviewed by: brooks, imp D
time.h: Fix visibility check for C11 and C23 features.
__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
show more ...
|
| #
9b5d724c
|
| 24-Aug-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libc: Add timespec_getres(3) as per C23.
This also adds support for TIME_MONOTONIC to timespec_get(3).
Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D41524
|
| #
42b38843
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
| #
a9a38dea
|
| 07-Mar-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
libc: Remove prototype and documentation for tzsetwall().
PR: 269445 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D38481
|
| #
7b797ba2
|
| 30-Jul-2021 |
Warner Losh <imp@FreeBSD.org> |
time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h
Attempt to comply with the strict namespace pollution requirements of _POSIX_C_SOURCE. Add guards to limit visitbility of CLOCK_ and TI
time.h: reduce CLOCK_ namespace pollution, move to _clock_id.h
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
show more ...
|
| #
e2c0e292
|
| 16-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
| #
aeafed21
|
| 14-Jul-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.
Reported by: jbeich PR: 247701 Reviewed by: jilles Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revisi
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.
Reported by: jbeich PR: 247701 Reviewed by: jilles Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D25554
show more ...
|
| #
bc053caf
|
| 09-Dec-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Correctly check for C++17 and higher when declaring timespec_get()
Summary: In rS338751, the check to declare `timespec_get()` for C++17 and higher was incorrectly done against a `cplusplus` define,
Correctly check for C++17 and higher when declaring timespec_get()
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
show more ...
|
| #
01d4e214
|
| 05-Oct-2018 |
Glen Barber <gjb@FreeBSD.org> |
MFH r338661 through r339200.
Sponsored by: The FreeBSD Foundation
|
| #
ce44d808
|
| 27-Sep-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r338731 through r338987.
|
| #
d02489d1
|
| 18-Sep-2018 |
Brooks Davis <brooks@FreeBSD.org> |
Fix C11 and POSIX 1003.1b-1993 compliance in time.h
Only expose timespec_get in C11, C++17, or BSD code. Always define struct timespect if defining timespec_get.
PR: 231425 Reviewed by: kib Appro
Fix C11 and POSIX 1003.1b-1993 compliance in time.h
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
show more ...
|
| #
f9c0a512
|
| 10-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r337286 through r337585.
|
| #
5da388c6
|
| 27-Nov-2025 |
Robert Clausecker <fuz@FreeBSD.org> |
time.h: add timegm() to the C23 namespace
This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856.
Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677ae
time.h: add timegm() to the C23 namespace
This function is part of ISO/IEC 9899:2024 (C23) and was forgotten in D47856.
Reviewed by: imp Approved by: markj (mentor) See also: D47856 Fixes: 59677aecb67bbedcfa2ee5d7d2b189193cdc4af7 MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D53951
show more ...
|
| #
155290b2
|
| 23-Sep-2025 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tzcode: Expose and document offtime() and offtime_r()
Includes diff reduction to upstream version of this patch.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: philip Differential Revisio
tzcode: Expose and document offtime() and offtime_r()
Includes diff reduction to upstream version of this patch.
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: philip Differential Revision: https://reviews.freebsd.org/D39715
show more ...
|
| #
415a0ce0
|
| 20-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Revert Make newly POSIX functions visible
Summary: This reverts commit d7efac1be1441c122f7fb9de51a409172f21326c. This reverts commit 9d0eea9422d075c8a6924b33161d2d5abfb4072a.
Some ports (specifical
Revert Make newly POSIX functions visible
Summary: This reverts commit d7efac1be1441c122f7fb9de51a409172f21326c. This reverts commit 9d0eea9422d075c8a6924b33161d2d5abfb4072a.
Some ports (specifically Python) define __BSD_VISIBLE themselves, so the change from __BSD_VISIBLE to __POSIX_VISIBLE >= 202405 makes them fail.
Reported by: jrtc27, cperciva
show more ...
|
| #
d7efac1b
|
| 20-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Add missing ||
Fixes: 9d0eea9422
|
| #
9d0eea94
|
| 19-Mar-2025 |
Stephen Hurd <shurd@FreeBSD.org> |
Make newly POSIX functions visible
Some of the POSIX 202405L functions are already in the system, make them visible when appropriate.
Reviewed by: imp MFC after: 1 week Differential Revision: https
Make newly POSIX functions visible
Some of the POSIX 202405L functions are already in the system, make them visible when appropriate.
Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D47859
show more ...
|