µ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++ distribution.
3
* (https://github.com/micro-os-plus)
4
* Copyright (c) 2015-2023 Liviu Ionescu. All rights reserved.
5
*
6
* Permission to use, copy, modify, and/or distribute this software
7
* for any purpose is hereby granted, under the terms of the MIT license.
8
*
9
* If a copy of the license was not distributed with this file, it can
10
* be obtained from https://opensource.org/licenses/mit/.
11
*/
12
13
#ifndef POSIX_UTIME_H_
14
#define POSIX_UTIME_H_
15
16
// ----------------------------------------------------------------------------
17
18
#include <unistd.h>
19
20
#if defined(_POSIX_VERSION)
21
22
#pragma GCC diagnostic push
23
#if defined(__clang__)
24
#pragma clang diagnostic ignored "-Wgnu-include-next"
25
#endif
26
#include_next <utime.h>
27
// #include <sys/select.h>
28
#pragma GCC diagnostic pop
29
30
#else
31
32
#include <sys/types.h>
33
34
#ifdef __cplusplus
35
extern
"C"
36
{
37
#endif
38
39
// ----------------------------------------------------------------------------
40
41
int
42
utime
(
const
char
*path,
const
struct
utimbuf*
times
);
43
44
// ----------------------------------------------------------------------------
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* defined(_POSIX_VERSION) */
51
52
#endif
/* POSIX_UTIME_H_ */
times
clock_t times(struct tms *buf)
utime
int utime(const char *path, const struct utimbuf *times)
include
cmsis-plus
posix
utime.h
Generated by
1.9.7