summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-31 18:16:41 +0000
committerMiles Bader <miles@gnu.org>1995-05-31 18:16:41 +0000
commite5ccbc72317d53220879fb58d735202e48058092 (patch)
tree6392331699a3de4d7ac981b94934e77d21b6a536 /libps
parentbd06fb10d27dd0d4e869b35b17a318b8177089c6 (diff)
(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).
Diffstat (limited to 'libps')
-rw-r--r--libps/ps.h10
1 files changed, 5 insertions, 5 deletions
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;
/* ---------------------------------------------------------------- */
/*