Skip to content

Commit 2ae9df6

Browse files
committed
sys/utime.h: Provide utime definition
1 parent 995ed61 commit 2ae9df6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

newlib/libc/sys/ps2/sys/utime.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#ifndef __UTIME_H__
2+
#define __UTIME_H__
3+
4+
#include <sys/types.h>
5+
6+
#ifdef __cplusplus
7+
extern "C" {
8+
#endif
9+
10+
/*
11+
* POSIX 1003.1b 5.6.6 Set File Access and Modification Times
12+
*/
13+
14+
struct utimbuf {
15+
time_t actime; /* Access time */
16+
time_t modtime; /* Modification time */
17+
};
18+
19+
/* Functions */
20+
21+
int utime(const char *path, const struct utimbuf *times);
22+
23+
#ifdef __cplusplus
24+
};
25+
#endif
26+
27+
#endif /* _SYS_UTIME_H */

0 commit comments

Comments
 (0)