Skip to content

Commit f97ca3b

Browse files
committed
sys/utime.h: Provide utime definition
1 parent 7294c9a commit f97ca3b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

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)