diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-09-03 13:51:10 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-09-03 13:51:10 +0000 |
commit | c8f99376942801efe48f4616d120f80357c1a6c4 (patch) | |
tree | b53e05d1917e8a76ba2b4552f0ceaa18ae48099f /sys | |
parent | 5f0c33b983ba3e26e3dd43241ee7a46e4f66a024 (diff) |
changes for ps "emul" option
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 | ||||
-rw-r--r-- | sys/sys/sysctl.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index ccbeeb7f360..2ab8e6d63c0 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.18 1997/06/22 04:58:03 flipk Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.19 1997/09/03 13:51:08 kstailey Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -749,4 +749,6 @@ fill_eproc(p, ep) ep->e_xccount = ep->e_xswrss = 0; strncpy(ep->e_login, ep->e_sess->s_login, MAXLOGNAME-1); ep->e_login[MAXLOGNAME-1] = '\0'; + strncpy(ep->e_emul, p->p_emul->e_name, EMULNAMELEN); + ep->e_emul[EMULNAMELEN] = '\0'; } diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index cfd99337fdf..22afe3221e4 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.h,v 1.14 1997/06/22 04:58:04 flipk Exp $ */ +/* $OpenBSD: sysctl.h,v 1.15 1997/09/03 13:51:09 kstailey Exp $ */ /* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */ /* @@ -217,7 +217,9 @@ struct kinfo_proc { #define EPROC_CTTY 0x01 /* controlling tty vnode active */ #define EPROC_SLEADER 0x02 /* session leader */ char e_login[MAXLOGNAME]; /* setlogin() name */ - long e_spare[4]; +#define EMULNAMELEN 7 + char e_emul[EMULNAMELEN+1]; /* syscall emulation name */ + int32_t e_spare[2]; } kp_eproc; }; |