e9aabcf2f8
library to the memory driver. Always put output from within TTY directly on the console. Removed second include of driver.h from tty.c. Made tty_inrepcode bigger. First step to move PM and FS calls that are not regular (API) system calls out of callnr.h (renumbered them, and removed them from the table.c files). Imported the Minix-vmd uname implementation. This provides a more stable ABI than the current implementation. Added a bit of security checking. Unfortunately not nearly enough to get a secure system. Fixed a bug related to the sizes of the programs in the image (in PM patch_mem_chunks).
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 $
|
|
*/
|