mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
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: 59677aecb6
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D53951
This commit is contained in:
parent
e966eb4039
commit
5da388c633
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,6 @@ extern int daylight;
|
|||
|
||||
#if __BSD_VISIBLE
|
||||
time_t timelocal(struct tm * const);
|
||||
time_t timegm(struct tm * const);
|
||||
int timer_oshandle_np(timer_t timerid);
|
||||
time_t time2posix(time_t t);
|
||||
time_t posix2time(time_t t);
|
||||
|
|
@ -193,6 +192,7 @@ int timespec_get(struct timespec *ts, int base);
|
|||
#define TIME_MONOTONIC 2 /* monotonic time */
|
||||
/* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */
|
||||
int timespec_getres(struct timespec *, int);
|
||||
time_t timegm(struct tm * const);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue