source: trunk/minix/lib/posix/_lstat.c@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 370 bytes
Line 
1#include <lib.h>
2#define lstat _lstat
3#include <sys/stat.h>
4#include <string.h>
5
6PUBLIC int lstat(name, buffer)
7_CONST char *name;
8struct 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.