sys/mount.h: add MS_NOSYMFOLLOW from linux v5.10
[musl.git] / compat / time32 / fstat_time32.c
blob3e084398879b6e62327bbdc6f724c9f5e310e3fc
1 #include "time32.h"
2 #include <time.h>
3 #include <string.h>
4 #include <sys/stat.h>
5 #include <stddef.h>
7 struct stat32;
9 int __fstat_time32(int fd, struct stat32 *restrict st32)
11 struct stat st;
12 int r = fstat(fd, &st);
13 if (!r) memcpy(st32, &st, offsetof(struct stat, st_atim));
14 return r;
17 weak_alias(fstat, fstat64);