From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2ec21ab5eedfdf3b,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-09 14:42:14 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!ames!purdue!mentor.cc.purdue.edu!vic.cc.purdue.edu!abe From: abe@vic.cc.purdue.edu (Vic Abell) Subject: lsof for Ultrix -- need help Message-ID: Sender: news@mentor.cc.purdue.edu (USENET News) Organization: Purdue University Date: Wed, 9 Feb 1994 22:42:14 GMT I maintain and freely provide a program called lsof -- for LiSt Open Files. It is a descendant of a freely distributed program (found in the comp.sources.unix archive), called ofiles, and the fstat program from 4.2BSD-Tahoe. Lsof displays files open by active processes. It displays information about network files (sockets), NFS files, and regular files, and its filters enable searching for specific instances of open files. Currently lsof runs on a number of Unix OS versions, including AIX for the RISC/System 6000, HP-UX for the HP 700 series, NeXTStep for the NeXT work station, OSF/1 for the DEC Alpha (just completed), and SunOS and Solaris for Sun work stations. Now I am trying to port it to Ultrix. My development system's uname reports the version is 4.2. I need some help finding kernel information: 1. How does one read a dynamically swapped user structure? It appears the proc structure members p_dmap, p_cdmap, p_smap, and p_csmap have something to do with it. 2. How does one find the gnodes (or whatever) that hold references to the executable text file and libraries? I would appreciate replies via email to . A contact with access to kernel sources would be welcome. Thanks in advance. Vic Abell