repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
wait4: fix missing rusage on x32 due to wrong success condition
[musl.git]
/
compat
/
time32
/
fstatat_time32.c
blob
31d42e63602f2419143bbb50003bcf88caee434b
1
#include
"time32.h"
2
#include <time.h>
3
#include <string.h>
4
#include <sys/stat.h>
5
#include <stddef.h>
6
7
struct
stat32
;
8
9
int
__fstatat_time32
(
int
fd
,
const char
*
restrict path
,
struct
stat32
*
restrict st32
,
int
flag
)
10
{
11
struct
stat st
;
12
int
r
=
fstatat
(
fd
,
path
, &
st
,
flag
);
13
if
(!
r
)
memcpy
(
st32
, &
st
,
offsetof
(
struct
stat
,
st_atim
));
14
return
r
;
15
}