Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!math.lsa.umich.edu!math.lsa.umich.edu!emv From: emv@math.lsa.umich.edu (Edward Vielmetti) Newsgroups: comp.sources.wanted Subject: Re: SPS for Sun OS 4.1 Message-ID: Date: 19 Sep 90 03:22:57 GMT References: Sender: usenet@math.lsa.umich.edu Distribution: comp Organization: University of Michigan Math Dept., Ann Arbor MI. Lines: 58 In-Reply-To: joshua5@bucsf.bu.edu's message of 18 Sep 90 14:24:08 GMT In article joshua5@bucsf.bu.edu (Jim Peters) writes: Where can I find the source for sps for a Sun 4/280 running 4.1? sun-spots of 21 May 90 points to sources for "skill"/"snice" on snake.utah.edu. perhaps patches by analogy would be possible. Greg Earle of Sun said then that he hadn't tried to tackle sps. Paul Kranenburg got to working on things in sun-spots of 18 Jul 90 with patches to sps, as follows: 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 Good luck. --Ed Edward Vielmetti, U of Michigan math dept moderator, comp.archives