26 lines
447 B
C
26 lines
447 B
C
/* sysuname(2) - transfer uname(3) strings. Author: Kees J. Bot
|
|
* 5 Dec 1992
|
|
*/
|
|
|
|
#define sysuname _sysuname
|
|
#include <lib.h>
|
|
|
|
int sysuname(int req, int field, char *value, size_t len)
|
|
{
|
|
message m;
|
|
|
|
m.m1_i1 = req;
|
|
m.m1_i2 = field;
|
|
m.m1_i3 = len;
|
|
m.m1_p1 = value;
|
|
|
|
/* Clear unused fields */
|
|
m.m1_p2 = NULL;
|
|
m.m1_p3 = NULL;
|
|
|
|
return _syscall(MM, SYSUNAME, &m);
|
|
}
|
|
|
|
/*
|
|
* $PchId: _sysuname.c,v 1.4 1995/11/27 19:42:09 philip Exp $
|
|
*/
|