diff options
Diffstat (limited to 'gl/mktime-internal.h')
| -rw-r--r-- | gl/mktime-internal.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gl/mktime-internal.h b/gl/mktime-internal.h index 0693aaf1..215be914 100644 --- a/gl/mktime-internal.h +++ b/gl/mktime-internal.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Internals of mktime and related functions | 1 | /* Internals of mktime and related functions |
| 2 | Copyright 2016-2024 Free Software Foundation, Inc. | 2 | Copyright 2016-2025 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
| 4 | Contributed by Paul Eggert <eggert@cs.ucla.edu>. | 4 | Contributed by Paul Eggert <eggert@cs.ucla.edu>. |
| 5 | 5 | ||
| @@ -19,6 +19,9 @@ | |||
| 19 | 19 | ||
| 20 | #ifndef _LIBC | 20 | #ifndef _LIBC |
| 21 | # include <time.h> | 21 | # include <time.h> |
| 22 | # define __libc_lock_lock(lock) ((void) 0) | ||
| 23 | # define __libc_lock_unlock(lock) ((void) 0) | ||
| 24 | # define __tzset_unlocked() tzset () | ||
| 22 | #endif | 25 | #endif |
| 23 | 26 | ||
| 24 | /* mktime_offset_t is a signed type wide enough to hold a UTC offset | 27 | /* mktime_offset_t is a signed type wide enough to hold a UTC offset |
| @@ -71,9 +74,10 @@ typedef int mktime_offset_t; | |||
| 71 | #endif | 74 | #endif |
| 72 | 75 | ||
| 73 | /* Subroutine of mktime. Return the time_t representation of TP and | 76 | /* Subroutine of mktime. Return the time_t representation of TP and |
| 74 | normalize TP, given that a struct tm * maps to a time_t as performed | 77 | normalize TP, given that a struct tm * maps to a time_t. If |
| 75 | by FUNC. Record next guess for localtime-gmtime offset in *OFFSET. */ | 78 | LOCAL, the mapping is performed by localtime_r, otherwise by gmtime_r. |
| 76 | extern __time64_t __mktime_internal (struct tm *tp, | 79 | Record next guess for localtime-gmtime offset in *OFFSET. |
| 77 | struct tm *(*func) (__time64_t const *, | 80 | |
| 78 | struct tm *), | 81 | If _LIBC, the caller must lock __tzset_lock. */ |
| 82 | extern __time64_t __mktime_internal (struct tm *tp, bool local, | ||
| 79 | mktime_offset_t *offset) attribute_hidden; | 83 | mktime_offset_t *offset) attribute_hidden; |
