libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / sysuname.c
blob142d3bea49ae96c81140dbe3bc6dd7107ed3e6e8
1 /* sysuname(2) - transfer uname(3) strings. Author: Kees J. Bot
2 * 5 Dec 1992
3 */
5 #include <sys/cdefs.h>
6 #include "namespace.h"
7 #include <lib.h>
8 #include <sys/utsname.h>
10 int sysuname(int req, int field, char *value, size_t len)
12 message m;
14 m.m1_i1 = req;
15 m.m1_i2 = field;
16 m.m1_i3 = len;
17 m.m1_p1 = value;
19 /* Clear unused fields */
20 m.m1_p2 = NULL;
21 m.m1_p3 = NULL;
23 return _syscall(PM_PROC_NR, SYSUNAME, &m);
27 * $PchId: _sysuname.c,v 1.4 1995/11/27 19:42:09 philip Exp $