summaryrefslogtreecommitdiff
path: root/compat/time32/utime_time32.c
blob: 65f11d463413f78b37b7e0511918ffa9569408cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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}));
}