diff options
author | phk <phk@FreeBSD.org> | 1997-05-22 07:24:46 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-05-22 07:24:46 +0000 |
commit | 507f70a63b5fc7481787b06c5c8d2dfb97ad7f86 (patch) | |
tree | 669f81041be69dd75421a2410eef0ce160a3a6a5 | |
parent | 0d09d4481f6be601b0c1707688f771a4293a6f29 (diff) | |
download | FreeBSD-src-507f70a63b5fc7481787b06c5c8d2dfb97ad7f86.zip FreeBSD-src-507f70a63b5fc7481787b06c5c8d2dfb97ad7f86.tar.gz |
Remove p_selbits and p_selbits_size so sizeof(struct proc) returns to 256
bytes. Move p_hash to where it should have been all along, since we
change the layout anyway.
Recompile ps, top, libutil and all that.
Taked about with: bde
-rw-r--r-- | sys/sys/proc.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 1bfd3c7..f56f632 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)proc.h 8.15 (Berkeley) 5/19/95 - * $Id: proc.h,v 1.36 1997/04/26 11:46:21 peter Exp $ + * $Id: proc.h,v 1.37 1997/05/07 19:41:37 peter Exp $ */ #ifndef _SYS_PROC_H_ @@ -105,6 +105,7 @@ struct proc { char p_pad1[3]; pid_t p_pid; /* Process identifier. */ + LIST_ENTRY(proc) p_hash; /* Hash chain. */ LIST_ENTRY(proc) p_pglist; /* List of processes in pgrp. */ struct proc *p_pptr; /* Pointer to parent process. */ LIST_ENTRY(proc) p_sibling; /* List of sibling processes. */ @@ -145,20 +146,11 @@ struct proc { char p_lastcpu; /* Last cpu we were on */ char p_pad2; /* alignment */ - char *p_selbits; /* For select(), bits */ - u_int p_selbits_size; /* For select(), fd_set size (bytes) */ - short p_locks; /* DEBUG: lockmgr count of held locks */ short p_simple_locks; /* DEBUG: count of held simple locks */ /* End area that is zeroed on creation. */ -#define p_endzero p_hash.le_next - - /* - * Not copied, not zero'ed. - * Belongs after p_pid, but here to avoid shifting proc elements. - */ - LIST_ENTRY(proc) p_hash; /* Hash chain. */ +#define p_endzero p_startcopy /* The following fields are all copied upon creation in fork. */ #define p_startcopy p_sigmask |