Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: kranenbu@s5.cs.leidenuniv.nl (Paul Kranenburg) Newsgroups: comp.archives Subject: [sun-spots] sps for SunOS 4.1 Keywords: Source Message-ID: <1990Jul25.152157.20081@math.lsa.umich.edu> Date: 25 Jul 90 15:21:57 GMT Sender: emv@math.lsa.umich.edu (Edward Vielmetti) Reply-To: kranenbu@s5.cs.leidenuniv.nl (Paul Kranenburg) Followup-To: comp.sys.sun Organization: University of Michigan, Department of Mathematics Lines: 39 Approved: emv@math.lsa.umich.edu (Edward Vielmetti) X-Original-Newsgroups: comp.sys.sun Archive-name: sps/18-Jul-90 Original-posting-by: kranenbu@s5.cs.leidenuniv.nl (Paul Kranenburg) Original-subject: sps for SunOS 4.1 Archive-site: archive-server@cs.leidenuniv.nl Reposted-by: emv@math.lsa.umich.edu (Edward Vielmetti) After upgrading to SunOS 4.1, I noticed with regret that sps(l) did no longer work. I had become rather fond of the way sps displayed the parent-child relationships between processes, so I set out and try to do the port to SunOS 4.1. I now have a working version available. Here is a short overview of the changes that were necessary: - stream.c: allow for linked list structure of streams 'table'. - findtty.c: allow for new `struct sess' to controlling terminal. - globals2.c: `_uunix' in stead of `_u' (???). punted `_inode' (replaced by ???). - filecount.c: inspect ofiles in user struct only (NOFILE_IN_U). - Compile with `-DSUNOS41' (Makefile.sun.4.1). Having no access to SunOS sources, I am not certain if just changing `_u' to `_uunix' is the right thing to do. Also, I was not able to find a reasonable substitute for `_inode'. These symbols are used to display a symbolic wait state, so only the output of `sps -l' is affected. A set of diff's is available from `archive-server@cs.leidenuniv.nl' by sending a message: send source sps.sunos41.diff.shar Since my original copy of sps has been submerged in BITNET for too long a time, these diffs may not work flawlessly. I will submit a proper diff to comp.sys.sun as soon as I can get my hands on an unmutilated version of sps from the RICE archives. Cheers, --P. Kranenburg, Dept. C. Sc., Leiden, NL. e-mail: pk@cs.leidenuniv.nl