source: trunk/minix/lib/posix/_stat.c@ 11

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

Minix 3.1.2a

File size: 287 bytes
Line 
1#include <lib.h>
2#define stat _stat
3#include <sys/stat.h>
4#include <string.h>
5
6PUBLIC int stat(name, buffer)
7_CONST char *name;
8struct stat *buffer;
9{
10 message m;
11
12 m.m1_i1 = strlen(name) + 1;
13 m.m1_p1 = (char *) name;
14 m.m1_p2 = (char *) buffer;
15 return(_syscall(FS, STAT, &m));
16}
Note: See TracBrowser for help on using the repository browser.