minix/lib/other/setcache.c

22 lines
278 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <minix/config.h>
#include <lib.h>
#include <unistd.h>
#include <minix/type.h>
#include <minix/com.h>
int
setcache(int kb)
{
message m;
int r;
m.m1_i1 = kb;
m.m_type = SETCACHE;
if ((r=_syscall(FS, SETCACHE, &m)) < 0)
return(-1);
return(m.m_type);
}