time.h (42b388439bd3795e09258c57a74ce9eec3651c7b) time.h (9b5d724cad10087e34165199e55f15f2df744ed5)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 168 unchanged lines hidden (view full) ---

177
178#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
179#include <xlocale/_time.h>
180#endif
181
182#if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \
183 (defined(__cplusplus) && __cplusplus >= 201703)
184#include <sys/_timespec.h>
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

--- 168 unchanged lines hidden (view full) ---

177
178#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
179#include <xlocale/_time.h>
180#endif
181
182#if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \
183 (defined(__cplusplus) && __cplusplus >= 201703)
184#include <sys/_timespec.h>
185/* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */
185/* ISO/IEC 9899:2011 7.27.2.5 The timespec_get function */
186#define TIME_UTC 1 /* time elapsed since epoch */
187int timespec_get(struct timespec *ts, int base);
186#define TIME_UTC 1 /* time elapsed since epoch */
187int timespec_get(struct timespec *ts, int base);
188#if defined (__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2023
189/* ISO/IEC 9899:2024 7.29.1 Components of time */
190#define TIME_MONOTONIC 2 /* monotonic time */
191/* ISO/IEC 9899:2024 7.29.2.7 The timespec_getres function */
192int timespec_getres(struct timespec *, int);
188#endif
193#endif
194#endif
189
190__END_DECLS
191
192#endif /* !_TIME_H_ */
195
196__END_DECLS
197
198#endif /* !_TIME_H_ */