From 0c2c8ab30d7d3699b9748eab1272beb00bc7279b Mon Sep 17 00:00:00 2001 From: hsu Date: Mon, 11 Mar 1996 06:13:09 +0000 Subject: For Lite2: proc LIST changes. Reviewed by: davidg & bde --- sys/fs/procfs/procfs_vnops.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index df57932..1ad1d2d 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94 * - * $Id: procfs_vnops.c,v 1.19 1995/11/16 11:39:11 bde Exp $ + * $Id: procfs_vnops.c,v 1.20 1996/01/24 18:41:41 peter Exp $ */ /* @@ -737,9 +737,7 @@ procfs_readdir(ap) #ifdef PROCFS_ZOMBIE int doingzomb = 0; #endif - volatile struct proc *p; - - p = allproc; + volatile struct proc *p = allproc.lh_first; #define PROCFS_XFILES 3 /* number of other entries, like "curproc" */ pcnt = PROCFS_XFILES; @@ -772,12 +770,12 @@ procfs_readdir(ap) dp->d_namlen = sprintf(dp->d_name, "%ld", (long) p->p_pid); } - p = p->p_next; + p = p->p_list.le_next; #ifdef PROCFS_ZOMBIE if (p == 0 && doingzomb == 0) { doingzomb = 1; - p = zombproc; + p = zombproc.lh_first; } #endif -- cgit v1.1