source:
trunk/minix/lib/posix/_lstat.c@
16
Last change on this file since 16 was 9, checked in by , 14 years ago | |
---|---|
File size: 370 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | #include <lib.h> |
2 | #define lstat _lstat | |
3 | #include <sys/stat.h> | |
4 | #include <string.h> | |
5 | ||
6 | PUBLIC int lstat(name, buffer) | |
7 | _CONST char *name; | |
8 | struct stat *buffer; | |
9 | { | |
10 | message m; | |
11 | int r; | |
12 | ||
13 | m.m1_i1 = strlen(name) + 1; | |
14 | m.m1_p1 = (char *) name; | |
15 | m.m1_p2 = (char *) buffer; | |
16 | if((r = _syscall(FS, LSTAT, &m)) >= 0 || errno != ENOSYS) | |
17 | return r; | |
18 | return _stat(name, buffer); | |
19 | } |
Note:
See TracBrowser
for help on using the repository browser.