posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
utime.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
16#ifndef ZEPHYR_INCLUDE_POSIX_UTIME_H_
17#define ZEPHYR_INCLUDE_POSIX_UTIME_H_
18
19/* time_t must be provided by the libc <time.h> */
20#include <time.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#if defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__)
27
28#if !defined(_UTIMBUF_DECLARED) && !defined(__utimbuf_defined)
33struct utimbuf {
34 time_t actime;
35 time_t modtime;
36};
37#define _UTIMBUF_DECLARED
38#define __utimbuf_defined
39#endif
40
52int utime(const char *path, const struct utimbuf *times);
53
54#endif /* defined(_POSIX_C_SOURCE) || defined(__DOXYGEN__) */
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* ZEPHYR_INCLUDE_POSIX_UTIME_H_ */
int utime(const char *path, const struct utimbuf *times)
Set file access and modification times.
clock_t times(struct tms *buf)
Get the process and child process times.
File times passed to utime().
Definition utime.h:33
time_t modtime
Modification time.
Definition utime.h:35
time_t actime
Access time.
Definition utime.h:34
POSIX time-of-day types and functions (<sys/time.h>)