Last change
on this file since 474 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
318 bytes
|
Line | |
---|
1 | #include <machine/syscall.h> |
---|
2 | #include <sys/stat.h> |
---|
3 | #include "internal_syscall.h" |
---|
4 | #include "kernel_stat.h" |
---|
5 | |
---|
6 | /* Status of a link (by name). */ |
---|
7 | int _lstat(const char *file, struct stat *st) |
---|
8 | { |
---|
9 | struct kernel_stat kst; |
---|
10 | int rv = syscall_errno (SYS_lstat, file, &kst, 0, 0, 0, 0); |
---|
11 | _conv_stat (st, &kst); |
---|
12 | return rv; |
---|
13 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.