Change the definition of e_tdev in struct kinfo_proc from dev_t to udev_t

Reviewed by: Poul-Henning Kamp <phk@critter.freebsd.dk>
This commit is contained in:
dfr 1999-05-17 13:28:35 +00:00
parent 911d9a17d4
commit 776188cec9
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)kern_proc.c 8.7 (Berkeley) 2/14/95
* $Id: kern_proc.c,v 1.49 1999/05/06 18:12:44 peter Exp $
* $Id: kern_proc.c,v 1.50 1999/05/11 19:54:29 phk Exp $
*/
#include <sys/param.h>
@ -443,7 +443,7 @@ fill_eproc(p, ep)
if ((p->p_flag & P_CONTROLT) &&
(ep->e_sess != NULL) &&
((tp = ep->e_sess->s_ttyp) != NULL)) {
ep->e_tdev = tp->t_dev;
ep->e_tdev = dev2udev(tp->t_dev);
ep->e_tpgid = tp->t_pgrp ? tp->t_pgrp->pg_id : NO_PID;
ep->e_tsess = tp->t_session;
} else

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)user.h 8.2 (Berkeley) 9/23/93
* $Id: user.h,v 1.19 1999/01/13 03:11:42 julian Exp $
* $Id: user.h,v 1.20 1999/01/26 02:38:11 julian Exp $
*/
#ifndef _SYS_USER_H_
@ -74,7 +74,7 @@ struct kinfo_proc {
pid_t e_ppid; /* parent process id */
pid_t e_pgid; /* process group id */
short e_jobc; /* job control counter */
dev_t e_tdev; /* controlling tty dev */
udev_t e_tdev; /* controlling tty dev */
pid_t e_tpgid; /* tty process group id */
struct session *e_tsess; /* tty session pointer */
#define WMESGLEN 7