mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
308 B
14 lines
308 B
#include "time32.h"
|
|
#include <time.h>
|
|
#include <utime.h>
|
|
|
|
struct utimbuf32 {
|
|
time32_t actime;
|
|
time32_t modtime;
|
|
};
|
|
|
|
int __utime_time32(const char *path, const struct utimbuf32 *times32)
|
|
{
|
|
return utime(path, !times32 ? 0 : (&(struct utimbuf){
|
|
.actime = times32->actime, .modtime = times32->modtime}));
|
|
}
|
|
|