µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
utime.h
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2015-2025 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12#ifndef POSIX_UTIME_H_
13#define POSIX_UTIME_H_
14
15// ----------------------------------------------------------------------------
16
17#include <unistd.h>
18
19#if defined(_POSIX_VERSION)
20
21#pragma GCC diagnostic push
22#if defined(__clang__)
23#pragma clang diagnostic ignored "-Wgnu-include-next"
24#endif
25#include_next <utime.h>
26// #include <sys/select.h>
27#pragma GCC diagnostic pop
28
29#else
30
31#include <sys/types.h>
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38 // --------------------------------------------------------------------------
39
40 int
41 utime (const char* path, const struct utimbuf* times);
42
43 // --------------------------------------------------------------------------
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif /* defined(_POSIX_VERSION) */
50
51#endif /* POSIX_UTIME_H_ */
clock_t times(struct tms *buf)
int utime(const char *path, const struct utimbuf *times)