fix return value of gethostnbyname[2]_r on result not found
[musl.git] / compat / time32 / utime_time32.c
blob65f11d463413f78b37b7e0511918ffa9569408cb
1 #include "time32.h"
2 #include <time.h>
3 #include <utime.h>
5 struct utimbuf32 {
6 time32_t actime;
7 time32_t modtime;
8 };
10 int __utime_time32(const char *path, const struct utimbuf32 *times32)
12 return utime(path, !times32 ? 0 : (&(struct utimbuf){
13 .actime = times32->actime, .modtime = times32->modtime}));