repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
secondary cache feature in vm.
[minix.git]
/
lib
/
libc
/
posix
/
_stat.c
blob
ce907fb33b630a04e313ae21468175f9323548be
1
#include <lib.h>
2
#define stat _stat
3
#include <sys/stat.h>
4
#include <string.h>
5
6
PUBLIC
int
stat
(
name
,
buffer
)
7
_CONST
char
*
name
;
8
struct
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
}