blob: 5b89f290dc1292c2c1e4abf0fc079f7e031c377e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <sys/stat.h>
#include <fcntl.h>
#include "syscall.h"
int lstat(const char *restrict path, struct stat *restrict buf)
{
#ifdef SYS_lstat
return syscall(SYS_lstat, path, buf);
#else
return syscall(SYS_fstatat, AT_FDCWD, path, buf, AT_SYMLINK_NOFOLLOW);
#endif
}
weak_alias(lstat, lstat64);
|