2017-12-26 21:27:52 +01:00
|
|
|
#include <machine/syscall.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include "internal_syscall.h"
|
|
|
|
#include "kernel_stat.h"
|
|
|
|
|
|
|
|
/* Status of a link (by name). */
|
|
|
|
int _lstat(const char *file, struct stat *st)
|
|
|
|
{
|
|
|
|
struct kernel_stat kst;
|
2020-02-10 21:19:58 +01:00
|
|
|
int rv = syscall_errno (SYS_lstat, 2, file, &kst, 0, 0, 0, 0);
|
2017-12-26 21:27:52 +01:00
|
|
|
_conv_stat (st, &kst);
|
|
|
|
return rv;
|
|
|
|
}
|