posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
time.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
17#ifndef ZEPHYR_INCLUDE_POSIX_SYS_TIME_H_
18#define ZEPHYR_INCLUDE_POSIX_SYS_TIME_H_
19
20#include <sys/select.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
36int gettimeofday(struct timeval *tv, void *tz);
37
38#if defined(_XOPEN_SOURCE) || defined(__DOXYGEN__)
48int utimes(const char *path, const struct timeval times[2]);
49
59int settimeofday(const struct timeval *tv, const void *tz);
60#endif /* _XOPEN_SOURCE || __DOXYGEN__ */
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* ZEPHYR_INCLUDE_POSIX_SYS_TIME_H_ */
clock_t times(struct tms *buf)
Get the process and child process times.
int utimes(const char *path, const struct timeval times[2])
Set file access and modification times (obsolescent).
int gettimeofday(struct timeval *tv, void *tz)
Get the current time with microsecond resolution.
int settimeofday(const struct timeval *tv, const void *tz)
Set the current time (legacy; removed from POSIX.1-2001).
POSIX select API (<sys/select.h>)
Time value with microsecond resolution.
Definition select.h:81