utime_time32.c\time32\compat - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
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}));
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月03日 09:44:30 +0000

AltStyle によって変換されたページ (->オリジナル) /