xref: /aosp_15_r20/external/e2fsprogs/include/mingw/sys/stat.h (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker 
2*6a54128fSAndroid Build Coastguard Worker #pragma once
3*6a54128fSAndroid Build Coastguard Worker 
4*6a54128fSAndroid Build Coastguard Worker #if HAVE_SYS_STAT_H
5*6a54128fSAndroid Build Coastguard Worker #include_next <sys/stat.h>
6*6a54128fSAndroid Build Coastguard Worker #endif
7*6a54128fSAndroid Build Coastguard Worker 
8*6a54128fSAndroid Build Coastguard Worker #ifndef lstat
9*6a54128fSAndroid Build Coastguard Worker #define lstat stat
10*6a54128fSAndroid Build Coastguard Worker #endif
11*6a54128fSAndroid Build Coastguard Worker 
12*6a54128fSAndroid Build Coastguard Worker #ifndef S_ISLNK
13*6a54128fSAndroid Build Coastguard Worker #ifdef __S_IFLNK
14*6a54128fSAndroid Build Coastguard Worker #define S_ISLNK(mode)	__S_ISTYPE((mode), __S_IFLNK)
15*6a54128fSAndroid Build Coastguard Worker #else
16*6a54128fSAndroid Build Coastguard Worker #define S_ISLNK(mode)	0
17*6a54128fSAndroid Build Coastguard Worker #endif
18*6a54128fSAndroid Build Coastguard Worker #endif
19*6a54128fSAndroid Build Coastguard Worker 
20*6a54128fSAndroid Build Coastguard Worker #define link(a, b)	CreateHardLink((a), (b), NULL)
21