From e5ccbc72317d53220879fb58d735202e48058092 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 31 May 1995 18:16:41 +0000 Subject: (ps_own_filter, ps_not_sess_leader_filter, ps_ctty_filter, ps_unorphaned_filter, ps_parent_filter): Declare these as extern so that the linker will bring in the initialized version (it's not doing so otherwise may be a bug). --- libps/ps.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libps') diff --git a/libps/ps.h b/libps/ps.h index f786661d..c4c45599 100644 --- a/libps/ps.h +++ b/libps/ps.h @@ -450,17 +450,17 @@ struct ps_filter operator to get a ps_filter_t from them */ /* A filter that retains only process's owned by getuid() */ -struct ps_filter ps_own_filter; +extern struct ps_filter ps_own_filter; /* A filter that retains only process's that aren't session leaders */ -struct ps_filter ps_not_sess_leader_filter; +extern struct ps_filter ps_not_sess_leader_filter; /* A filter that retains only process's with a controlling terminal */ -struct ps_filter ps_ctty_filter; +extern struct ps_filter ps_ctty_filter; /* A filter that retains only `unorphaned' process. A process is unorphaned if it's a session leader, or the process's process group is not orphaned */ -struct ps_filter ps_unorphaned_filter; +extern struct ps_filter ps_unorphaned_filter; /* A filter that retains only `parented' process. Typically only hurd processes have parents. */ -struct ps_filter ps_parent_filter; +extern struct ps_filter ps_parent_filter; /* ---------------------------------------------------------------- */ /* -- cgit v1.2.3