repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Uninitialized vector entry?
[minix3.git]
/
lib
/
other
/
mstats.c
blob
da4a754f58d8b8b7d6196a6c92249a29e49f409b
1
#include <minix/config.h>
2
3
#if ENABLE_MESSAGE_STATS
4
5
#include <lib.h>
6
#include <unistd.h>
7
8
PUBLIC
int
mstats
(
struct
message_statentry
*
ms
,
int
entries
,
int
reset
)
9
{
10
message m
;
11
12
m
.
m1_i1
=
entries
;
13
m
.
m1_i2
=
reset
;
14
m
.
m1_p1
= (
void
*)
ms
;
15
16
if
(
_syscall
(
MM
,
MSTATS
, &
m
) <
0
) {
17
return
-
1
;
18
}
19
20
return
m
.
m_type
;
21
}
22
23
#endif