a297e52a32
Change-Id: I58bd2987393ea56e1886fbce70b4b2c26af4ef2b
26 lines
562 B
C
26 lines
562 B
C
/* sysuname(2) - transfer uname(3) strings. Author: Kees J. Bot
|
|
* 5 Dec 1992
|
|
*/
|
|
|
|
#include <sys/cdefs.h>
|
|
#include "namespace.h"
|
|
#include <lib.h>
|
|
#include <string.h>
|
|
#include <sys/utsname.h>
|
|
|
|
int sysuname(int req, int field, char *value, size_t len)
|
|
{
|
|
message m;
|
|
|
|
memset(&m, 0, sizeof(m));
|
|
m.m_lc_pm_sysuname.req = req;
|
|
m.m_lc_pm_sysuname.field = field;
|
|
m.m_lc_pm_sysuname.len = len;
|
|
m.m_lc_pm_sysuname.value = (vir_bytes)value;
|
|
|
|
return _syscall(PM_PROC_NR, PM_SYSUNAME, &m);
|
|
}
|
|
|
|
/*
|
|
* $PchId: _sysuname.c,v 1.4 1995/11/27 19:42:09 philip Exp $
|
|
*/
|