Debian Codegraph @

00DIST

raw
1 Notes for the distribution of lsof version 4
2
3 ********************************************************************
4 | The latest release of lsof is always available from
5 | https://github.com/lsof-org/lsof/releases
6 |
7 | From 4.92.1, git is introduced to manage changes.
8 | You can consult the details of changes with git.
9 ********************************************************************
10
11 Contents
12
13 Dialects Supported
14 How Lsof Works
15 Lsof Output
16 Getting Started Quickly
17 Limiting, Filtering, and Selecting Lsof Output
18 Parsing Lsof Output with Another Program
19 Repeat Mode
20 Distribution Restrictions
21 Cautions
22 Distribution Contents
23 Warranty
24 Bug Reports
25 The lsof-l Mailing List
26 Version 3 Release Notes
27 3.0, May 24, 1994
28 ...
29 3.88, February 17, 1997
30 What's New in Version 4
31 Version 4 Release Notes
32 4.0, February 24, 1997
33 4.01, March 3, 1997
34 4.02, March 21, 1997
35 4.03, April 7, 1997
36 4.04, April 17, 1997
37 4.04 supplement, April 18, 1997
38 4.05, April 24, 1997
39 4.06, April 30, 1997
40 4.07, May 12, 1997
41 4.08, May 23, 1997
42 4.09, June 1, 1997
43 4.10, June 8, 1997
44 4.11, June 12, 1997
45 4.12, June 24, 1997
46 4.13, July 9, 1997
47 4.14, July 22, 1997
48 4.15, August 15, 1997
49 4.16, September 25, 1997
50 4.17, October 14, 1997
51 4.18, October 25, 1997
52 4.19, October 30, 1997
53 4.20, November 11, 1997
54 4.21, December 1, 1997
55 4.22, December 15, 1997
56 4.23, January 16, 1998
57 4.24, January 28, 1998
58 4.25, February 7, 1998
59 4.26, February 17, 1998
60 4.27, March 6, 1998
61 4.28, March 10, 1998
62 4.29, March 26, 1998
63 4.30, April 9, 1998
64 4.31, April 21, 1998
65 4.32, May 13, 1998
66 4.33, May 22, 1998
67 4.34, June 26, 1998
68 4.35, July 17, 1998
69 4.36, August 4, 1998
70 4.37, September 15, 1998
71 4.38, November 25, 1998
72 4.39, December 29, 1998
73 4.40, January 25, 1999
74 4.41, February 27, 1999
75 4.42, March 30, 1999
76 4.43, May 11, 1999
77 4.44, June 24, 1999
78 4.45, July 30, 1999
79 4.46, October 23, 1999
80 4.47, November 29, 1999
81 4.48, January 14, 2000
82 4.49, April 3, 2000
83 4.50, June 29, 2000
84 4.51, August 21, 2000
85 4.52, November 8, 2000
86 4.53, December 6, 2000
87 4.54, January 19, 2001
88 4.55, February 15, 2001
89 4.56, May 3, 2001
90 4.57, July 19, 2001
91 4.58, September 13, 2001
92 4.59, October 20, 2001
93 4.60, November 9, 2001
94 4.61, January 22, 2002
95 4.62, March 7, 2002
96 4.63, April 23, 2002
97 4.64, June 26, 2002
98 4.65, October 10, 2002
99 4.66, December 22, 2002
100 4.67, March 27, 2003
101 4.68, June 18, 2003
102 4.69, October 16, 2003
103 4.70, January 16, 2004
104 4.71, March 11, 2004
105 4.72, July 13, 2004
106 4.73, October 21, 2004
107 4.74, January 17, 2005
108 4.75, May 16, 2005
109 4.76, August 30, 2005
110 4.77, April 10, 2006
111 4.78, April 24, 2007
112 4.79, April 15, 2008
113 4.80, May 12, 2008
114 4.81, October 21, 2008
115 4.82, March 25, 2009
116 4.83, January 18, 2010
117 4.84, July 29, 2010
118 4.85, September 27, 2011
119 4.86, April 10, 2012
120 4.87, January 2, 2013
121 4.88, October 13, 2014
122 4.89, July 7, 2015
123 4.90, February 14, 2018
124 4.91, March 26, 2018
125 4.92, May 5, 2018
126 4.93.0 May 7, 2019
127 4.93.1 May 7, 2019
128 4.93.2 May 8, 2019
129 4.94.0 November 11, 2020
130 4.95.0 April 28, 2022
131 4.96.0 September 16, 2022
132 4.96.1 September 16, 2022
133 4.96.2 September 16, 2022
134 4.96.3 September 16, 2022
135 4.96.4 October 18, 2022
136 4.96.5 December 26, 2022
137 4.97.0 January 17, 2023
138 4.98.0 January 22, 2023
139 4.99.0 November 10, 2023
140
141
142
143 Dialects Supported
144 ==================
145
146 Lsof (for LiSt Open Files) lists files opened by processes on
147 selected Unix systems. Version 4 is a source reorganization of
148 version 3, itself a major revision of version 2. Version 4 has
149 been tested on:
150
151 Apple Darwin 9 and Mac OS X 10.[567]
152 FreeBSD 10.3, 11.0, 12.0 and 13.0 for AMD64-based systems
153 Solaris 9
154
155 (The pub/tools/unix/lsof/contrib directory on lsof.itap.purdue.edu
156 contains information on other ports.)
157
158 If your favorite Unix dialect is not in the list, or if your version
159 of it is more recent than the ones listed, please file a new issue at
160 https://github.com/lsof-org/lsof.
161
162 Version 3 of lsof was tested on:
163
164 AIX 3.2.5, 4.1[.[1234]], and 4.2
165 BSDI BSD/OS 2.0, 2.0.1, and 2.1 for x86-based systems
166 DC/OSx 1.1 for Pyramid systems
167 Digital UNIX (DEC OSF/1) 2.0, 3.0, 3.2, and 4.0
168 EP/IX 2.1.1 for the CDC 4680
169 FreeBSD 1.1.5.1, 2.0, 2.0.5, 2.1, 2.1.5 for x86-based
170 systems
171 HP-UX 8.x, 9.x, 10.01, 10.10, and 10.20
172 IRIX 5.2, 5.3, 6.0, 6.0.1, and 6.[124]
173 Linux through 2.0.27 for x86-based systems
174 NetBSD 1.0, 1.1, and 1.2 for x86 and SPARC-based
175 systems
176 NEXTSTEP 2.1 and 3.[0123]
177 OpenBSD 1.2 and 2.0 for x86-based systems
178 Reliant UNIX 5.43 for Pyramid systems
179 RISC/os 4.52 for MIPS R2000-based systems
180 SCO OpenServer Release 1.1, 3.0, and 5.0.x for x86-based
181 systems
182 SCO UnixWare 2.1 and 2.1.1 for x86-based systems
183 Sequent PTX 2.1.[1569], 4.0.[23], 4.1.[024], 4.2[.1],
184 and 4.3
185 Solaris 2.[12345], 2.5.1, and 2.6-Beta
186 SunOS 4.1.x
187 Ultrix 4.2, 4.3, 4.4, and 4.5
188
189 Version 3 and its predecessor, version 2, may be found at:
190
191 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD
192
193
194 How Lsof Works
195 ==============
196
197 Using available kernel data access methods -- getproc(), getuser(),
198 kvm_*(), nlist(), pstat(), read(), readx(), /proc -- lsof reads
199 process table entries, task table entries, user areas and file
200 pointers to reach the underlying structures that describe files
201 opened by processes.
202
203 Lsof interprets most file node structures -- advfsnodes, autonodes,
204 cnodes, cdrnodes, devnodes, fifonodes, gnodes, hsnodes, inodes,
205 mfsnodes, pcnodes, procnodes, rnodes, snodes, specnodes, s5inodes,
206 tmpnodes. It understands NFS connections. It recognizes FIFOs,
207 multiplexed files, Unix and Internet sockets. It knows about
208 streams. It understands /proc file systems for some dialects. On
209 many dialects it recognizes execution text and library references.
210 It knows about AFS on some Unix dialects.
211
212
213 Lsof Output
214 ===========
215
216 The lsof output describes:
217
218 * the identification number of the process (PID) that has opened
219 the file;
220
221 * the process group identification number (PGID) of the process
222 (optional);
223
224 * the process identification number of the parent process (PPID)
225 (optional);
226
227 * the command the process is executing;
228
229 * the owner of the process;
230
231 * for all files in use by the process, including the executing
232 text file and the shared libraries it is using:
233
234 * the file descriptor number of the file, if applicable;
235
236 * the file's access mode;
237
238 * the file's lock status;
239
240 * the file's device numbers;
241
242 * the file's inode number;
243
244 * the file's size or offset;
245
246 * the name of the file system containing the file;
247
248 * any available components of the file's path name;
249
250 * the names of the file's stream components;
251
252 * the file's local and remote network addresses;
253
254 * the TLI network (typically UDP) state of the file;
255
256 * the TCP state, read queue length, and write queue length
257 of the file;
258
259 * the file's TCP window read and write lengths (Solaris
260 only);
261
262 * other file or dialect-specific values.
263
264
265 Getting Started Quickly
266 =======================
267
268 If you want to get started using lsof quickly, or see some examples
269 of how lsof can be used, consult the 00QUICKSTART file of the lsof
270 distribution.
271
272 The 00QUICKSTART file won't help you build or install lsof, but it
273 will cut through the density of the lsof man page, giving you more
274 readily an idea of what you can do with lsof.
275
276 For information on building and installing lsof, consult the 00README
277 file of the lsof distribution.
278
279
280 Limiting, Filtering, and Selecting Lsof Output
281 ==============================================
282
283 Lsof accepts options to limit, filter, and select its output.
284 These are the possible criteria:
285
286 * Process ID (PID) number -- to list the open files for a given
287 process;
288
289 * Process Group ID (PGID) -- to list the open files for all
290 the processes of a given process group;
291
292 * User ID number or login name -- to list the open files for
293 all the processes of a given user;
294
295 * Internet address -- to list the open files using a given
296 Internet address (host name), protocol, or port (number or
297 name); or to list all open Internet files;
298
299 * command name;
300
301 * file descriptor name or number;
302
303 * list all open NFS files;
304
305 * list all open Unix domain socket files;
306
307 * list all uses of a specific file;
308
309 * list all open files on a file system.
310
311 Selection options are normally ORed -- i.e., an open file meeting
312 any of the criteria is listed. The selection options may be ANDed
313 so that an open file will be listed only if it meets all the
314 criteria.
315
316 In the absence of any selection criteria, lsof lists files open to
317 all processes.
318
319
320 Parsing Lsof Output with Another Program
321 ========================================
322
323 The lsof -F option directs it to produce "field" output that can
324 easily be parsed by another program. The lsof distribution contains
325 sample awk, perl 4, and perl 5 scripts in its scripts subdirectory
326 that show how to post-process field output.
327
328
329 Repeat Mode
330 ===========
331
332 Lsof can be directed to produce output, delay for a specified time,
333 then repeat the output, cycling until stopped by an interrupt or
334 quit signal. This mode is useful for monitoring the status of some
335 file operation -- e.g., an ftp transfer or a tape backup operation.
336
337 Repeat mode is more efficient when combined with lsof's selection
338 options, since they limit lsof overhead.
339
340 It's possible to use lsof's field output options to supply repeat
341 mode output to another process for its manipulation. The scripts
342 subdirectory of the lsof distribution has sample Perl scripts
343 showing how to consume lsof repeat mode output from a pipe.
344
345
346 Distribution Restrictions
347 =========================
348
349 Lsof may be used and distributed freely, subject to these limitations:
350
351 1. Neither the author nor Purdue University is responsible for
352 any consequences of the use of this software.
353
354 2. The origin of this software must not be misrepresented, either
355 by explicit claim or by omission. Credit to the author and
356 Purdue University must appear in documentation and sources.
357
358 3. Altered versions must be plainly marked as such, and must not
359 be misrepresented as being the original software.
360
361 4. This notice may not be removed from or altered in the lsof source
362 files.
363
364
365 Cautions
366 ========
367
368 Lsof is a tool that is closely tied to the Unix operating system
369 version. It uses header files that describe kernel structures and
370 reads kernel structures that typically change from OS version to
371 OS version.
372
373 DON'T TRY TO USE AN LSOF BINARY, COMPILED FOR ONE UNIX OS VERSION,
374 ON ANOTHER.
375
376 On some Unix dialects, notably SunOS and Solaris, lsof versions
377 may be even more restricted by architecture type. An lsof binary,
378 compiled for SunOS 4.1.3 on a sun4c machine, for example, won't
379 work on a sun4m machine.
380
381 AN LSOF BINARY, COMPILED FOR ONE SOLARIS 1.X ARCHITECTURE, ISN'T
382 GUARANTEED TO WORK ON A DIFFERENT SOLARIS 1.X ARCHITECTURE.
383
384
385 Distribution Contents
386 =====================
387
388 The lsof distribution is checked for completeness when it is
389 constructed and by the Inventory script when you run the Configure
390 script. (See The Inventory Script section of the 00README file of
391 this distribution.)
392
393 Lsof is organized in these parts:
394
395 * The main lsof directory, containing common sources,
396 configuration and setup scripts and three subdirectories:
397 dialects/, lib/, and scripts/.
398
399 Lsof is compiled in the main lsof directory after configuration.
400 The selected dialect sources are copied or linked from the
401 specified subdirectory. (Symbolic linking is the standard
402 method.)
403
404 Common lsof definitions may be found in lsof.h; common
405 function prototypes, proto.h; and common storage, store.c.
406
407 * The dialects/ subdirectory contains subdirectories with
408 sources specific to UNIX dialect implementations -- e.g.,
409 the dialects/sun/ subdirectory contains sources for the
410 SunOS (Solaris 1.x) and Solaris (2.x) implementations of
411 lsof. The dialects subdirectories also contain Makefiles
412 and scripts for assisting dialect source configuration.
413
414 Dialect configuration definitions may be found in dlsof.h;
415 other dialect definitions, dlsof.h; dialect prototypes,
416 dproto.h; and dialect storage, dstore.c.
417
418 * The lib/ subdirectory contains sources for common lsof
419 functions. Not all dialects use the functions -- some have
420 their own versions of them. The lib/ functions are enabled
421 and customized with #define's in the dialect machine.h header
422 files.
423
424 * The scripts/ subdirectory contains sample scripts for
425 processing lsof field (-F) output. The scripts are written
426 in AWK, Perl 4, and Perl 5.
427
428 The 00PORTING file of the lsof distribution has more information
429 on lsof components, configuration, and construction.
430
431
432 Warranty
433 ========
434
435 Lsof is provided as-is without any warranty of any kind, either
436 expressed or implied, including, but not limited to, the implied
437 warranties of merchantability and fitness for a particular purpose.
438 The entire risk as to the quality and performance of lsof is with
439 you. Should lsof prove defective, you assume the cost of all
440 necessary servicing, repair, or correction.
441
442
443 Bug Reports
444 ===========
445
446 Now that the obligatory disclaimer is out of the way, let me hasten
447 to add that I accept lsof bug reports and try hard to respond to
448 them. I will also consider and discuss requests for new features,
449 ports to new dialects, or ports to new OS versions.
450
451 PLEASE DON'T SEND A BUG REPORT ABOUT LSOF TO THE UNIX DIALECT
452 VENDOR.
453
454 At worst such a bug report will confuse the vendor; at best, the
455 vendor will forward the bug report to me.
456
457 Please send all bug reports, requests, etc. to https://github.com/lsof-org/lsof.
458
459
460 The lsof-l Mailing List
461 =======================
462
463 Information about lsof, including notices about the availability
464 of new revisions, may be found in mailings of the lsof-l listserv.
465 For more information about it, including instructions on how to
466 subscribe, read the 00LSOF-L file of the lsof distribution.
467
468
469 Version 3 Release Notes
470 =======================
471
472 See 00DIST in the last lsof 3 revision 3.88, for its complete
473 set of release notes. Lsof revision 3.88 may be found at:
474
475 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/OLD
476
477 3.0 May 24, 1994
478 This is the first official release of lsof 3.
479
480 ...
481
482 3.88 February 17, 1997
483
484 +======================================+
485 | This is the last version 3 revision. |
486 +======================================+
487
488 Added documentation files -- 00.README.FIRST[_<version>]
489 and 00RELEASE.SUMMARY_<version> -- to the distribution.
490
491
492 What's new in Version 4
493 =======================
494
495 The main goal of version 4 was to eliminate the confusing common/
496 fragment source file technique. Changing the version number also
497 provided an opportunity to restart the numbering, which at 3.88
498 had risen to a large value.
499
500 The sources that appeared in the dialects/common subdirectory of
501 version 3 in fragment files have been incorporated into the version
502 4 liblsof.a library as *.c files. This results in significant
503 changes to many source files, scripts, and Makefiles of all dialect
504 versions. It allows elimination of some source files -- ddev.c,
505 dfile.c, dmnt.c -- for dialects now obtaining functions from
506 liblsof.a that formerly came from making dialect source files by
507 combining fragment files.
508
509 The version 4 liblsof.a sources are stored in the lib/ subdirectory
510 of the main lsof directory. The liblsof.a functions are activated
511 and conditioned in their source files by values #define'd in the
512 dialect dlsof.h and machine.h header files.
513
514 Dialects that provide a private version of a library function refrain
515 from #define'ing the symbol that would activate the library function
516 code.
517
518
519 Version 4 Release Notes
520 =======================
521
522 4.0 February 24, 1997
523
524 +====================================+
525 | This is the first lsof 4 revision. |
526 +====================================+
527
528 Reorganized sources: eliminated code fragment files
529 and created a library in their place. Modified or
530 deleted many dialect source and header files.
531 Changed documentation accordingly.
532
533 Added a warning to sgi/Makefile and 00FAQ that advises
534 against using the IRIX C compiler -n32 option when
535 compiling lsof. Thanks go to Peter Ilieve
536 <[email protected]> for bringing this to my attention.
537
538 Dropped IRIX 5.2 in mid-stream, because my 5.2 test
539 system was upgraded to 5.3.
540
541 4.01 March 3, 1997
542 Added TFS support for Pyramid dialects.
543
544 Added test to Configure and to the IRIX dnode.c
545 for the different cnode struct that appears in
546 <cachefs/cachefs_fs.h> on the 6.2 IMPACT distribution.
547 Heddy Boubaker <[email protected]>
548 alerted me to the cnode change and helped test this
549 lsof adjustment.
550
551 Shut down the lsof child process before doing a -r
552 sleep(). A comment from Dan Mercer <[email protected]>
553 prompted this.
554
555 4.02 March 21, 1997
556
557 Based on a report from Pasi Kaara <[email protected]>,
558 disabled HP-UX CCIT support in lsof for HP-UX
559 versions 10 and above. Pasi's report also led to
560 changes in the HP-UX machine.h to support use of
561 gcc to compile lsof for HP-UX 10.20 and warnings
562 against using `cc -Aa` or `gcc -ansi` to compile
563 lsof under HP-UX 10.x.
564
565 With help from Richard Allen <[email protected]> taught
566 HP-UX 10.x lsof to name file systems better by
567 using the virtual file system device number. Elias
568 Halldor Agustsson <[email protected]> provided a test
569 system.
570
571 Changed NEXTSTEP and UNIXWARE Makefiles to use
572 safer quoting when generating version.h. The change
573 was suggested by Bob Farmer <[email protected]>.
574
575 Added SHELL=/bin/sh string to all Makefiles.
576
577 Added support for Linux 2.1.28 on a test system,
578 kindly provided by Jonathan Sergent <[email protected]>.
579 Configure tests the Linux 2.1.x's C library lseek()
580 function for proper handling of kernel offsets.
581 If lseek() appears suspect, Configure activates
582 the use of a private lseek() function. Changed
583 the private nlist() function to nlist_private()
584 and taught it to use the query_module() syscall in
585 place of the deprecated get_kernel_syms() one.
586 Added rudimentary AX.25 support for Pierfrancesco
587 Caci <[email protected]> who helped test it.
588 Updated the old get_kernel_syms() code to recognize
589 and skip module name entries.
590
591 Prompted by Marty Leisner <[email protected]>,
592 eased the requirement that service name lookup for
593 the -i option be accompanied by a protocol name. The
594 name is not needed if both TCP and UDP names yield the
595 same port number.
596
597 Added xusers.awk script from Dan Mercer <[email protected]>
598 to the distribution scripts/ subdirectory.
599
600 Changed Configure script to use LSOF_VERS for all
601 UNIX dialect version numbers and to pass LSOF_VERS
602 to the dialect Mksrc functions. Also added the
603 ability for a dialect stanza to declare a different
604 dialect Makefile source. Modified dialect Mksrc
605 files -- e.g., linux and sun -- accordingly.
606
607 Added support for BSD/OS 3.0 with help from Jim
608 Reid <[email protected]>. Terry Kennedy
609 <[email protected]> kindly provided a test
610 system. During the port corrected a bug that
611 prevented proper handling of revoked files.
612
613 4.03 April 7, 1997
614 At the suggestion of Dan Mercer <[email protected]>,
615 made HP-UX building of lsof aware of differences
616 between the HP-UX bundled and unbundled C compilers.
617
618 Added the ability for the lsof builder to define the
619 default warning message issuance state. By default the
620 issuance of warning messages is disabled; defining
621 WARNINGSTATE in machine.h disables it. The Customize
622 script was updated to handle WARNINGSTATE. Dan Mercer
623 suggested this.
624
625 Eliminated compiler complaint about improperly cast
626 get_Nl_value() argument in ncache_load() in lib/rnch.c.
627
628 Corrected zeromem() argument error in SCO dproc.c.
629 Sped up parent directory cache lookup slightly.
630
631 Updated for PTX 4.4, including additional VxFS (EFS)
632 file system support.
633
634 4.04 April 17, 1997
635 At the suggestion of Bela Lubkin <[email protected]>
636 changed device cache handling to be more tolerant
637 of a device cache file whose [cm]times are older
638 than the ones on /dev or /devices. The change
639 required adding information to Solaris device cache
640 file clone lines, so the first time lsof 4.04 is
641 run under Solaris it will complain about a bad
642 cached clone device in a previous device cache
643 file, then regenerate it.
644
645 Added boot file path detection for SCO OSR 5 and
646 above, based on information supplied by Bela.
647
648 Fixed two bugs in DEC OSF/1 lsof -- an error in
649 reporting locks and a missing continue statement
650 in readdev() after a failure to open a directory.
651 Jan Ole Suhr <[email protected]>
652 reported the second bug and supplied a fix.
653
654 Fixed XFS problems with IRIX 6.2 by abandoning the
655 idea that SGI will distribute XFS header files and
656 defining an lsof-private xfs_inode structure. John
657 Paul Morrison <[email protected]>
658 helped develop and test the 5.3 definition. John
659 R. Vanderpool <[email protected]> helped
660 develop and test the 6.2 definition.
661
662 Remove obsolete comments about common/*.frag files.
663
664 Updated Linux lsof for Linux version 2.1.35.
665
666 4.04 April 18, 1997
667 Supplement Regenerated the 4.04 distribution to correct a non-
668 device-cache #define misplacement in the Solaris and
669 SunOS dlsof.h. Alexandre Oliva <[email protected]>
670 reported the problem.
671
672 4.05 April 24, 1997
673 Corrected an error in 00DCACHE.
674
675 Made sure SCO /etc/ps/booted.systems is closed.
676
677 Based on an observation by Bela Lubkin <[email protected]>
678 that the lsof child had needless file descriptors
679 open, closed all but the open pipes between the
680 lsof parent and child.
681
682 Decommissioned CDC EP/IX support; I no longer have a
683 test system.
684
685 Based on a suggestion from Patrick Connor
686 <[email protected]>, added -xansi to CFLAGS
687 for IRIX 5.3 and 6.[234].
688
689 Also at Patrick's suggestion changed Configure to
690 propagate exact SunOS 4.1.x version to the main
691 and library Makefiles. This allowed the sunos413
692 and sunos413cc Configure abbreviations to be
693 shortened to sunos and sunoscc.
694
695 Updated obsolete argument uses (-H changed to -n)
696 in count_pf.perl* and watch_a_file.perl scripts.
697
698 Adjusted Solaris 2.6 lsof for Beta_Update with tips
699 from Casper Dik <[email protected]>.
700
701 Fixed a Solaris 2.4 TCP address reporting bug.
702
703 4.06 April 30, 1997
704 Added a step to the Makefile clean rules that does
705 a make clean in the lib subdirectory; suggested by
706 Casper Dik <[email protected]>. (Configure's
707 -clean argument already did this.)
708
709 Fixed an incorrect awk argument in the sunos*)
710 Configure stanza, reported by Alexandre Oliva
711 <[email protected]>.
712
713 Added CD9660 (aka ISO) file system support to
714 FreeBSD, NetBSD, and OpenBSD with mods and help
715 from Kenneth Stailey <[email protected]>.
716 (BSDI already had CD9660 support.) While at it,
717 added file descriptor system support to BSDI and
718 FreeBSD.
719
720 Added /kern file system support to OpenBSD. The
721 support wasn't extended to BSDI, FreeBSD, or NetBSD,
722 because it requires Kenneth Stailey's changes to
723 /sys/miscfs/kernfs/kernfs.h.
724
725 Updated IRIX 6.3 support after getting access to
726 a test system, provided by John Paul Morrison
727 <[email protected]>. Improved
728 the handling of IRIX 5.1 and greater FIFOs.
729
730 4.07 May 12, 1997
731 Based on AIX problem reports from David Capshaw
732 <[email protected]>, changed the aix*
733 Configure script stanza to avoid -bnolibpath for
734 gcc (which the GNU loader doesn't grok) and AIX
735 below 4.1.4 (where -bnolibpath hasn't been tested
736 or is known to be unimplemented), and to refuse to
737 use gcc for compiling lsof in AIX versions below
738 4.1 (because of possible structure alignment
739 problems). Updated 00FAQ appropriately.
740
741 Added OpenBSD support for EXT2FS. This support
742 has yet to be tested.
743
744 Tested lsof under OpenBSD 2.1.
745
746 Activated /kern file system support for NetBSD when
747 Configure senses that /sys/miscfs/kernfs/kernfs.h
748 defines the kern_target structure. This support
749 has not been tested under NetBSD, although it has
750 been tested under OpenBSD.
751
752 Made some simple changes to the BSDI machine.h,
753 suggested by Jeffrey C. Honig <[email protected]>.
754
755 Improved handling of alternate dialect Configure
756 abbreviations -- aix and aixgcc, hpux and hpuxgcc,
757 solaris and solariscc, and sunos and sunoscc.
758
759 4.08 May 23, 1997
760 Cleaned up dialect Makefile's, staring with a suggestion
761 from Christopher Schanzle <[email protected]>.
762
763 Improved Configure's -clean processing.
764
765 Corrected bugs in Solaris lock reporting.
766
767 Changed NetBSD Configure stanza to put -I/usr/include
768 before -I/sys.
769
770 4.09 June 1, 1997
771 Adjusted for latest FreeBSD 3.0 release. This
772 required adding a new kernel name cache module for
773 reading BSD-form hashed kernel name cache entries,
774 rnmh.c, to the lsof library, and adding a #define
775 to each machine.h to select it.
776
777 Activated rnmh.c for BSDI 2.1, BSDI 3.0, NetBSD
778 1.2, and OpenBSD 2.1.
779
780 4.10 June 8, 1997
781 Adjusted for Linux 2.1.x (x > 35) kernels with
782 hashed task structure pointers. Marty Leisner
783 <[email protected]> and Jonathan Sergent
784 <[email protected]> tested the adjustment.
785
786 Replaced readdev() stat() calls with lstat() to
787 reduce device table and cache entries with the same
788 device number and inode values. Added code to
789 remove all remaining duplicates. This fixes a
790 Linux problem reported by Jonathan Sergent and
791 makes device node name output predictable.
792
793 Corrected a bug in UnixWare stream file handling
794 that prevented searching for the stream file by
795 its associated character device name.
796
797 Added Pyramid code to determine Reliant UNIX clone
798 major device number differently from that of DC/OSx.
799
800 4.11 June 12, 1997
801 Changed Configure to sense that the PTX inp_[fl]addr
802 members of the inpcb structure of <netinet/in_pcb.h>
803 have a struct type and set HASINADDRSTR for use in
804 PTX dnode.c and dsock.c tests.
805
806 Changed PTX version 4.1.4 tests to use 4.1.3 instead.
807 Carson Wilson <[email protected]> reported the need
808 to do this and tested the change.
809
810 Fixed a block device table indexing bug in lib/rdev.c,
811 reported by Carson Wilson. The same bug was squashed
812 in pyramid/ddev.c.
813
814 Added code to the Pyramid Reliant UNIX kread()
815 function to compensate for an address boundary
816 error in the kernel's /dev/kmem driver.
817
818 Verified that lsof compiles and works under AIX
819 4.2.1. Added an AIX test for the presence of NFS
820 header files, defined HAS_NFS and adjusted AIX
821 dialect sources accordingly.
822
823 Based on a suggestion from Gaylord Holder
824 <[email protected]>, added DEC OSF/1 code to
825 auto-detect the booted file, whence kernel symbol
826 addresses are obtained.
827
828 4.12 June 24, 1997
829 Corrected a device number sign extension problem
830 in the reading and writing of device cache file.
831 The problem was reported by Bela Lubkin <[email protected]>
832 and he suggested a fix.
833
834 Fixed an SCO stream device lookup problem. The
835 report and solution came from Bela Lubkin
836
837 Enhanced the Configure script to enable cross-
838 configuration of lsof, based on suggestions from
839 Marty Leisner <[email protected]>. A new
840 documentation file, 00XCONFIG, describes the process.
841
842 Made Pyramid OBJFS support conditional on the
843 presence of supporting header files. Corrected
844 the Pyramid MkKernOpts script so it generates the
845 necessary -D's for the Nile/Jolt architecture.
846 Richard Coley <[email protected]> helped.
847
848 Added another IRIX xfs_inode variant for 6.2, 32
849 bits, no XFS rollup patch.
850
851 Tested under UnixWare 2.1.2.
852
853 4.13 July 9, 1997
854 Taught Pyramid lsof to grok ttyfs vnodes with help
855 from Richard Coley <[email protected]>. Fixed some
856 minor bugs in Pyramid FIFO reporting. Eliminated
857 use of the Pyramid UCB compatibility library at
858 Richard's suggestion.
859
860 Eliminated reporting of "strange" inode numbers
861 for SCO OSR 3.2v5.0.x HPPS files with help from
862 Bela Lubkin <[email protected]>
863
864 Modified port to service name lookup to use a small
865 number of getservbyport() calls before reading the
866 entire map with getservent(). Changed port reporting
867 to represent a zero as `*' to be consistent with
868 other prt number reporting tools like netstat.
869 Casper Dik <[email protected]> suggested these
870 changes -- the getserv*() one to improve performance
871 for large NIS service name maps.
872
873 Changed all readdev() functions to make the absence
874 of block devices a warning instead of a fatal error
875 after Brian Redman <[email protected]> reported his IRIX
876 6.4 system had no block devices. (It really did
877 have block devices, but readdev()'s lstat() use
878 caused it to miss them in a directory symbolically
879 linked from /dev/dsk->/hw/disk.) Fixed Brian's
880 real problem by changing the IRIX readdev() to use
881 stat() on /dev nodes if a Configure test shows /hw
882 is readable. Extended the potential to do the same
883 to all readdev() functions.
884
885 For consistency and convenience changed some
886 Configure abbreviations and dialect subdirectory
887 names: "decosf" abbreviation and "osf" dialect
888 subdirectory name to "du"; "netbsd" dialect
889 subdirectory name to "n+obsd"; "next3" abbreviation
890 and "next" dialect subdirectory name to "ns"; "sco"
891 abbreviation and dialect subdirectory name to "osr";
892 "sgi" dialect subdirectory name to "irix"; and
893 "unixware" abbreviation and dialect subdirectory
894 name to "uw".
895
896 Added #if/#endif clauses to the AIX rmdupdev()
897 function to avoid clone processing for AIX versions
898 less than 4.1.4. The problem was reported by Toralf
899 Foerster <[email protected]>, who
900 supplied corrective code.
901
902 Added support for new style NetBSD inode with i_ffs
903 and i_e2fs union members.
904
905 Improved Configure and 00FAQ information on Digital
906 UNIX configuration subdirectory with suggestions
907 from Brad Krebs <[email protected]>.
908
909 4.14 July 22, 1997
910 Reorganized the Solaris handling of the inode
911 structure header file, ufs_inode.h, to eliminate
912 VxFS structure definition conflicts for Solaris
913 2.4, based on information from Greg Earle
914 <[email protected]>.
915
916 Cleaned up some typos and confusion in Configure's
917 help output, based on comments from Bela Lubkin
918 <[email protected]>
919
920 Added a 00DIALECTS file, containing UNIX dialect
921 version numbers, that can be used by Configure and
922 the man page.
923
924 4.15 August 15, 1997
925 Aligned `Configure -help` output better. Removed
926 Configure's 2.6 Beta test adjustments.
927
928 Added improved Solaris VxFS configuration and
929 handling, based on information from Greg Earle
930 <[email protected]>.
931
932 Added socket state -- TCO or TPI -- for socket
933 files at the suggestion of Ian Fitchet
934 <[email protected]>.
935
936 4.16 September 25, 1997
937 Added reporting of TCP/TPI queue lengths and window
938 sizes ala netstat to NAME column. Added -T option
939 to select or de-select TCP/TPI info reporting.
940 (Window sizes are only reported for Solaris.)
941 Fixed anomalies along the way in SIZE/OFF processing
942 for some dialects.
943
944 Fixed service name argument processor to allow
945 minus signs as part of the name. Consequently this
946 disallows names with embedded minus signs from
947 being specified as the start of a range.
948
949 Added 00FAQ entries explaining why lsof won't find
950 a file being edited with vi, why window sizes aren't
951 reported for all dialects, and what the "no more
952 information" message means.
953
954 Forced Pyramid CC to be /usr/ccs/bin/cc to avoid
955 accidental use of the BSD variant in /usr/ucb/cc.
956
957 Added support for Linux glibc2, including a Configure
958 test; cross-Configure support (00XCONFIG); and much
959 unfortunate and risky sleight-of-hand in lsof Linux
960 dialect header and source files, forced upon lsof
961 by incompatibilities between Linux kernel and glibc2
962 header files.
963
964 Included in scripts/identd.perl5 a Perl 5 implementation
965 of an identd server, using lsof, provided by Kapil
966 Chowksey <[email protected]>.
967
968 Updated IRIX 6.4 xfs_inode guess.
969
970 4.17 October 14, 1997
971 Added -V option for verbose search result reporting.
972 Verbose reports are prepared for failure to locate
973 file names, command names, Internet addresses or
974 files, login names, NFS files, PIDs, PGIDs, and UIDs.
975
976 Augmented Linux NFS file test to cope with kernels
977 whose NFS code is in a loadable module. Need for
978 the test was pointed out by Jonathan Sergent
979 <[email protected]>. The change
980 required that Linux have private dmnt.c source,
981
982 Completed a Linux 2.1.57 port on a system provided
983 by Jonathan Sergent.
984
985 4.18 October 25, 1997
986 Eliminated memory leaks in alloc_lfile(), lkup_port(),
987 and NEXTSTEP's process_text() function.
988
989 Added recognition of OpenBSD 2.2 in Configure,
990 supplied by Kenneth Stailey <[email protected]>.
991
992 Consolidated print_file() functions to use the one
993 in lib/prtf.c. Made it configurable and changed
994 it to size print columns dynamically.
995
996 !!! WARNING !!!
997
998 WITH DYNAMICALLY SIZED PRINT COLUMNS LSOF 4.18
999 PRODUCES OUTPUT SIGNIFICANTLY DIFFERENT FROM THAT
1000 OF PREVIOUS REVISIONS. LINES ARE GENERALLY SHORTER
1001 AND THERE IS GENERALLY LESS BLANK SPACE BETWEEN
1002 COLUMNS AND THE ITEMS IN THEM. THERE ARE NO LONGER
1003 ANY SPACES BETWEEN DEVICE NUMBER ELEMENTS, ONLY
1004 COMMAS.
1005
1006 !!! WARNING !!!
1007
1008 Added special types and print specification modifiers
1009 for file size and offset to handle UNIX dialects
1010 with 64 bit sizes and offsets. Paul Eggert
1011 <[email protected]> reported the need for this
1012 addition.
1013
1014 With Paul Eggert's help picked lint from the lsof
1015 library, the main level lsof sources, and the Sun
1016 dialect sources.
1017
1018 Added documentation, including the file 00LSOF-L,
1019 about the lsof-l LISTSERV.
1020
1021 Added support for Reliant UNIX on the RM600. Bob
1022 Passarella <[email protected]> supplied the
1023 changes. Kevin Smith <[email protected]> helped
1024 arrange test systems. While incorporating Bob's
1025 changes, modified lib/rnch.c to handle kernel ncache
1026 structs whose name is accessed via a char *, rather
1027 than in a char array.
1028
1029 Changed #include order of <sys/socketvar.h> for
1030 Solaris 2.x. W. Richard Stevens <[email protected]>
1031 pointed out the need to do this.
1032
1033 4.19 October 30, 1997
1034 Changed Pyramid Reliant RM600 proc scan to skip
1035 SSYS (p_flag) processes, since they don't seem to
1036 have a readable u_cdir vnode.
1037
1038 Enabled Pyramid Reliant UNIX kread() work-around
1039 for DC/OSx, too, since its read(/dev/kmem) kernel
1040 driver seems to share the page boundary bug this
1041 work-around circumvents.
1042
1043 Changed SzOffFtm_d and SzOffFtm_dv (new formats at
1044 4.18 to print size and offset) from signed to
1045 unsigned. Setting them signed at 4.18 was an
1046 oversight.
1047
1048 Plugged a memory leak that caused the loss of 130
1049 bytes per repeat-mode pass. Fixed it with a simple
1050 work-around in main(). Lionel Cons <[email protected]>
1051 reported the leak.
1052
1053 4.20 November 11, 1997
1054 Tested under BSDI 3.1.
1055
1056 Added support for Reliant UNIX Mesh IPC files with
1057 help from Billy Ho <[email protected]>.
1058
1059 Added support to Digital UNIX lsof that uses the
1060 libmsfs tag_to_path() function (when it exists) to
1061 look up AdvFS path names. The idea and sample code
1062 came from Dean Brock <[email protected]>. Converted
1063 Dean's code into more general purpose support for
1064 private name cache lookups via the HASPRIVNMCACHE
1065 #define in the dialect machine.h file and code
1066 conditional on it in the printname() function.
1067
1068 Taught Digital UNIX lsof to recognize NFS3 file
1069 systems. Corrected Digital UNIX lsof DEVICE column
1070 alignment.
1071
1072 4.21 December 1, 1997
1073 Squashed bug, introduced at revision 4.18, that
1074 resulted in double reporting of each selected PID
1075 when terse mode (-t) was specified.
1076
1077 Corrected minor bug, also introduced at 4.18, that
1078 might cause an extra print_proc() pass when one
1079 PID has been specified.
1080
1081 Added -R to lsof options in scripts/idrlogin.perl*.
1082 The option should have been there -- it was supposed
1083 to be mandatory for PGID reporting -- but a bug,
1084 corrected in revision 4.18, previously made -R
1085 unnecessary.
1086
1087 Enabled configuring for BSDI BSD/OS 4.0 per a
1088 suggestion from Jeff Honig <[email protected]>.
1089
1090 Enabled replacement of scoff_t with off64_t (scoff_t
1091 is used to type r_size and r_localsize in the rnode
1092 struct) for IRIX 5.3 systems that have the NFS
1093 kernel rollup patch (1477). This compensates for
1094 SGI's failure to distribute an updated <sys/fs/rnode.h>
1095 with their patch.
1096
1097 Validated under Linux 2.0.3[12], Linux 2.1.64, and
1098 NetBSD 1.3.
1099
1100 Added FreeBSD root directory reporting, courtesy
1101 of Dan Nelson <[email protected]>.
1102
1103 4.22 December 15, 1997
1104 Made adjustments for Linux 2.1.7[02].
1105
1106 Improved NAME information for Linux UNIX domain
1107 sockets.
1108
1109 Added option +|-M to control the reporting of
1110 portmapper registration information in square
1111 brackets after the TCP or UDP port or service name.
1112 Kenneth Stailey <[email protected]> suggested
1113 the feature and provided sample code from OpenBSD.
1114 Reporting is disabled by default in the distribution
1115 and may be enabled with +M; if lsof is compiled
1116 with HASPMAPENABLED (e.g., from machine.h), reporting
1117 will be enabled by default and can be disabled with
1118 -M.
1119
1120 Changed the -w option to +|-w to match the syntax
1121 of the +|-M option and to eliminate any options
1122 that flip meaning when a symbol is defined at
1123 compile time. For both +|-M and +|-w, specifying
1124 `-' when the default state is disabled or specifying
1125 `+' when the default state is enabled causes no
1126 problems.
1127
1128 !!!WARNING The -w option has changed in lsof 4.22. WARNING!!!
1129
1130 Made the +|- prefix legal for most options, but
1131 didn't document it in the man page or help panel.
1132 Most options that disable something -- e.g., -b,
1133 -C, -n, -P -- now disable when the prefix is `-'
1134 and enable when it is `+'. Since the states these
1135 options disable are enabled by default, I chose to
1136 avoid documentation complexity and confusion by
1137 not mentioning that they can be used with the `+'
1138 prefix.
1139
1140 Condensed the help panel.
1141
1142 Made sure Digital UNIX Configure stanza puts normal
1143 include path (e.g., /usr/include) before system
1144 include paths.
1145
1146 Added IPX socket information reporting to Linux
1147 with help from Jonathan Sergent <[email protected]>.
1148
1149 4.23 January 16, 1998
1150 Fixed conflict arising from the quondam replacement
1151 of the Sun Solaris <netdb.h> with a BIND/BSD version.
1152
1153 With help from Jonathan Sergent <[email protected]>
1154 developed a /proc file system based Linux lsof.
1155 It needs some Linux 2.1.x release to work -- I'm
1156 not sure which, but I tested under 2.1.72, 2.1.76,
1157 and 2.1.79. The Configure script selects special
1158 sources for this lsof, so the full lsof distribution
1159 now contains both /dev/kmem and /proc based sources
1160 for Linux lsof. An optional kernel mod, written
1161 by Jonathan, enhances the /proc-based lsof ability
1162 to recognize IPX socket files. Reorganized and
1163 augmented the Linux sections in 00FAQ to explain
1164 the two types of Linux lsof.
1165
1166 Defined DOSTAT_FUNCTION for dostat() in misc.c to
1167 select the function, stat() or lstat(), it will use.
1168 DOSTAT_FUNCTION is normally undefined, defaults to
1169 lstat(), and is only defined for the /proc-based
1170 Linux lsof in its dlsof.h.
1171
1172 Made conditional on the presence of IRIX 6.4 XFS
1173 rollup patch #6 an XFS node change introduced in
1174 revision 4.16. Identified the patch with help
1175 from John R. Vanderpool <[email protected]>.
1176
1177 Added NFS node compensation for NetBSD 1.3. The
1178 code and suggestion for it was supplied by Jean-Luc
1179 Richier <[email protected]>.
1180
1181 Added diagnostic messages to the /dev/kmem-based
1182 Linux Mksrc script to report errors during the
1183 construction of the kernel name cache header file,
1184 kncache.h. Added 00FAQ information on kncache.h.
1185
1186 Added a new Linux test host, running 2.0.33 and
1187 GlibC, provided by Steve Logue <[email protected]>.
1188
1189 Ported to PTX 4.1.3 and 4.4.2. Adjusted lib/rnch.c
1190 for 4.4.2 to allow customization f additional ncache
1191 struct element names.
1192
1193 4.24 January 28, 1998
1194 Changed /proc-based Linux lsof offset test to use "/"
1195 instead of "/etc/passwd".
1196
1197 To assist Jim Mintha <[email protected]> with the
1198 packaging of lsof for Debian Linux, added a
1199 DEBIAN_LINUX_LSOF #define to trigger the activation
1200 of special system map file location code in the
1201 /dev/kmem-based dproc.c.
1202
1203 Applied modification to dialects/bsdi/dlsof.h from
1204 Ingimar Robertson <[email protected]>, enabling lsof to
1205 compile for BSDI BSD/OS 2.0.
1206
1207 Corrected a documentation error in 00DCACHE, pointed
1208 out by Thomas Anders <[email protected]>. The error was
1209 created when the -V option was added at lsof 4.17.
1210
1211 Made IRIX 5.3 through 6.3 lsof aware of IRIX SCSI
1212 tape devices (e.g., /dev/tape). Dave Olson of SGI
1213 and Randolph J. Herber of FNAL provided valuable
1214 advice, and Igor Schein <[email protected]>
1215 helped test.
1216
1217 Added a machine.h symbol (NEVER_HASDCACHE) that
1218 prevents Customize from offering to change HASDCACHE.
1219 The symbol may appear anywhere in machine.h --
1220 e.g., in a comment. Included the symbol in a
1221 comment of the HASDCACHE section of the /proc-based
1222 Linux lsof machine.h, and accompanied it with
1223 warnings against #define'ing HASDCACHE. Did the
1224 same thing for WARNDEVACCESS (NEVER_WARNDEVACCESS
1225 is the suppressant.)
1226
1227 4.25 February 7, 1998
1228 Corrected an IRIX mis-cast of file offset (position).
1229 Igor Schein <[email protected]> reported the
1230 problem. This was offered as a patch to 4.24.
1231 Picked some lint Igor pointed out.
1232
1233 At Igor's suggestion added an optional decimal
1234 digit size argument to the -o option. This argument
1235 specifies how many file offset decimal digits can
1236 follow "0t" before lsof switches to a "0x..." form.
1237 The argument size specification doesn't count the
1238 two characters of the "0t". A size of 0 means
1239 unlimited. The default is OFFDECDIG (8), preserving
1240 compatibility with existing lsof output; it can be
1241 changed by the lsof builder. When size is specified
1242 with -o it does not force offset display; -o without
1243 a size still must be used to do that.
1244
1245 Added an IRIX 6.2, 32 bit system, XFS node patch,
1246 courtesy of Ulrich Bernhard <[email protected]>.
1247
1248 For my own convenience enabled Configure to use
1249 /usr/local/bin/gcc for NEXTSTEP. This allows
1250 circumvention of a gcc 2.8.0 ranlib problem on
1251 my test 3.1 `040 cube.
1252
1253 Added flags recommended by the RISC/os and Ultrix
1254 compilers for the updated (and longer) main.c.
1255
1256 Updated FreeBSD cd9660_node.h Configure test.
1257
1258 4.26 February 17, 1998
1259 Added shared process group processing for IRIX 5.3,
1260 and IRIX 6.1 and above, based on investigation of
1261 a bug report from Igor Schein <[email protected]>.
1262 Igor helped test this addition.
1263
1264 Improved handling of file system name arguments.
1265 It's now done in a manner similar to fuser. The
1266 -f argument forces path names to be considered as
1267 simple files, rather than as file system names.
1268 The +f flag forces them to be considered as file
1269 system names. Normally path arguments are considered
1270 file system names when they match a mounted-on
1271 directory in the system's mount table, or when they
1272 match a mounted file system's block device. Igor
1273 Schein helped test this change.
1274
1275 Igor also suggests that the proper compilation of
1276 the IRIX 6.4 proc structure after patch 2536 has
1277 been installed may need -DPIOMEMOPS. So lsof's
1278 MkKernOpts script was updated to propagate that
1279 option from CCOPTS in /var/sysgen/system/irix.sm,
1280 even though patch 2536 doesn't add -DPIOMEMOPS to
1281 it. Added a 00FAQ item on this patch.
1282
1283 Added a fatal warning message about names forced
1284 to be file system names (with +f) that have no
1285 match in the mount table.
1286
1287 Improved the -V message for files and file systems
1288 for which no open files were found. Added reporting
1289 of /proc file and file system search failures.
1290
1291 Did some code reorganization to combine the multiple
1292 ck_file_arg() functions into one. Moved the new
1293 function from the library to the top level and put
1294 it in arg.c; moved the usage function from arg.c
1295 to a new top-level source file, usage.c, to balance
1296 top-level source file size. The new usage.c depends
1297 on version.h; arg.c no longer does.
1298
1299 Added flag recommended by the DU compiler for the
1300 updated (and longer) main.c.
1301
1302 4.27 March 6, 1998
1303 At the request of Igor Schein <[email protected]>
1304 added a conditional repeat mode option, using the
1305 `+' prefix to the `r' option. +r operates as does
1306 -r with the exception that it exits the first time
1307 no open files have been listed during a cycle.
1308 The exit code will be zero when any open files have
1309 been listed; one, if none were ever listed.
1310
1311 Ported lsof to HP-UX 11.0 with the help of Richard
1312 Allen. This port hasn't been tested on a 64 bit
1313 kernel; I'm sure it won't work there without more
1314 mods. It may not work on PA 2 architectures; I've
1315 only tested it under PA 1 and a separate, busy
1316 tester reported PA 2 problems that I've been unable
1317 to investigate.
1318
1319 In anticipation of getting access to a 64 bit HP-UX
1320 kernel and the pending start of the Solaris 2.7
1321 Beta test (It will have 64 bit kernel addressing.),
1322 started adding support for 64 bit kernel pointers.
1323 This includes: ubiquitous use of the KA_T cast
1324 for kernel pointers; a format to print them,
1325 KA_T_FMT_X; a function to print them, print_kptr();
1326 and modifications to most kernel-related functions
1327 -- e.g., process_file(), process_node(),
1328 process_socket(), readvfs() -- to process kernel
1329 addresses as KA_T types.
1330
1331 Fixed minor bug in handling path name arguments
1332 that end with a `/'.
1333
1334 Removed support for RISC/os; its test system is no
1335 longer available.
1336
1337 Made modifications to insure that lsof output
1338 doesn't contain non-printable characters. All such
1339 characters are now printed in the printf form
1340 "\x%02x". Several new common functions were
1341 installed in misc.c to support "safe" printing.
1342 This second major modification in 4.27 to common
1343 and dialect code could have introduced bugs not
1344 yet detected.
1345
1346 4.28 March 10, 1998
1347 Refined unprintable format to use \b, \f, \r, \n,
1348 \t, and ^* (for CTRL) forms. Corrected omission
1349 of safestrprt() use for field output command name.
1350 These changes were offered as patches to 4.27.
1351
1352 Made space an unprintable character (\x20) in the
1353 COMMAND column; printable elsewhere, including the
1354 NAME column, field output, and error messages.
1355
1356 Made sure FD column is parseable as a single entity
1357 -- i.e., has no embedded space. Thus, if the access
1358 mode is unknown but there is a known lock mode, (a
1359 very rare case) the access mode will be printed as
1360 `-'.
1361
1362 Picked lint with gcc 2.8.0 under Solaris 2.6.
1363
1364 With the help of Dave Olson of SGI identified a
1365 proc struct element that should have been added to
1366 <sys/proc.h> by IRIX 6.4 patch 2536. Added a
1367 work-around for it to the lsof Configure script.
1368 Igor Schein <[email protected]> identified
1369 that the patch caused a proc structure length
1370 complaint from lsof. Removed an obsolete 00FAQ
1371 item on the patch, installed at lsof 4.26, explaining
1372 that no solution was yet available.
1373
1374 Added a 00FAQ item on how BIND installs its own
1375 header files, including <netdb.h>, which may cause
1376 the rpcent struct definition to vanish. Solaris
1377 has an automatic lsof work-around, but that hasn't
1378 been (and probably can't be) propagated to all
1379 dialects supported by lsof. The 00FAQ item recommends
1380 re-installation of the vendor header files that
1381 BIND has replaced. (Others include <rpcent.h>,
1382 <sys/bitypes.h>, and <sys/ctypes.h>.)
1383
1384 Made AIX AFS fixes.
1385
1386 4.29 March 26, 1998
1387 Corrected bug in Internet address matching. The
1388 matching formerly stopped if the foreign address
1389 matched, thus failing to check the local address
1390 for a match. That led to a possible false "Internet
1391 address not located" warning (i.e., in response to
1392 -V) about the local address, when both foreign and
1393 local addresses were specified with -i. This
1394 correction was offered as a patch to 4.28.
1395
1396 Changed readmnt() usage in an attempt to defer
1397 mount readlink() and stat() delays until they are
1398 necessary.
1399
1400 Corrected two bugs in the Digital UNIX readdev()
1401 function. Made the correction available as a patch
1402 to 4.28 and regenerated the 4.28 DU binaries.
1403
1404 Added a missing argument to a print-kptr() call in
1405 the HP-UX dsock.c. The missing argument causes a
1406 fatal gcc error. The problem was reported by Eyal
1407 Shaynis <[email protected]>. The fix was
1408 offered as a 4.28 patch.
1409
1410 Adjusted for Digital UNIX 4.0D; the spec_node
1411 structure is now defined in <sys/specdev.h>. Kris
1412 Chandrasekhar <[email protected]>
1413 identified the need for the adjustment.
1414
1415 Incorporated a bug fix from Brian McAllister
1416 <[email protected]> to the DU readmnt() function.
1417 This fix was offered as a patch to 4.28.
1418
1419 Added "safe" printing to a SunOS clone device error
1420 message.
1421
1422 Corrected bug in tabling of Linux /proc-based lock
1423 info.
1424
1425 Corrected bug in handling of SunOS TLI streams.
1426 Dan Farmer <[email protected]> reported the problem.
1427
1428 Added a Solaris 2.6 work-around to keep the BIND
1429 <sys/bitypes.h> from colliding with the Solaris
1430 <sys/int_types.h>.
1431
1432 Strengthened the Configure test for /proc-based
1433 Linux lsof, based on a report from Marty Leisner
1434 <[email protected]>.
1435
1436 Tested on OpenBSD 2.3.
1437
1438 Made AIX changes that allow use with 3.2.5. The
1439 changes were suggested and tested by Brett Hogden
1440 <[email protected]>.
1441
1442 Added Solaris 2.6 AFS support. Disabled reporting
1443 of some node numbers for Solaris 2.5 and above open
1444 AFS files. The node number computation algorithms
1445 used for SunOS 4.1.x and Solaris less than 2.5 no
1446 longer always work under Solaris 2.5 and above.
1447
1448 4.30 April 9, 1998
1449 Corrected a pid structure member naming error for
1450 UnixWare < 2.1.2. The problem was reported by
1451 Richard van Meurs <[email protected]>. He
1452 supplied the correction. This was offered as a
1453 patch to 4.29.
1454
1455 Had a report from Igor Schein <[email protected]>
1456 that IRIX 6.4 patch 2839 is another SGI kernel
1457 patch, along with 2536, that changes the size of
1458 the proc structure in the kernel without changing
1459 the proc structure in <sys/proc.h>. Upon further
1460 investigation found that the effect of these patches
1461 on the proc structure is not consistent. Therefore,
1462 dropped the Configure patch test for IRIX 6.4 and
1463 made the code in irix/dproc.c slightly more tolerant
1464 of proc structure size differences for IRIX 6.4.
1465 Igor help test the change.
1466
1467 Corrected Solaris >= 2.5 AFS inode number generation.
1468 Craig Everhart <[email protected]> helped
1469 find the cause of the problem. This was offered as
1470 a patch to 4.29.
1471
1472 Refined the Linux /dev/kmem-based glibc evasion
1473 for the timeval structure to make it work with
1474 glibc version 2.0.7. This required defining a new
1475 global symbol, TIMEVAL_LSOF, default timeval, that
1476 the /dev/kmem-based Linux lsof can set to its
1477 private glibc timeval name, distinct from the kernel
1478 timeval name.
1479
1480 Added support for Alpha to the /dev/kmem-based
1481 Linux lsof. Alexandre Oliva <[email protected]>
1482 provided a test system. Added an item to 00FAQ
1483 about lsof, the Alpha processor, and Linux.
1484
1485 Added a 00FAQ item about lsof year 2000 compliance.
1486 Basically it says lsof is probably compliant,
1487 because its only date or time computations are done
1488 with time_t values, but I haven't done any specific
1489 Y2K validation. I don't have plans to do any.
1490
1491 Added support for UnixWare 7. Chris Daniels
1492 <[email protected]> provided a test system and Don
1493 Draper <[email protected]> provided technical information.
1494 Added BFS and SFS file system support to lsof for
1495 UW 2.1.[12] and 7.
1496
1497 Updated Solaris VxFS support for VxFS 3.2.1. Greg
1498 Earle <[email protected]> reported the
1499 need for the update. Greg and Roger Klorese
1500 <[email protected]> provided technical information.
1501 Scott McClung <[email protected]> tested.
1502
1503 Changed IRIX XFS patch detection in anticipation of
1504 learning there are multiple XFS patches for IRIX 6.4
1505 that require different versions of the lsof-invented
1506 xfs_inode structure.
1507
1508 4.31 April 21, 1998
1509 Added a VxFS #if/#endif wrap to a section of the
1510 HP-UX dnode.c that wasn't properly protected. The
1511 problem was reported by Peter Klosky <[email protected]>.
1512 This was offered as a patch to 4.30.
1513
1514 Added support for Solaris 2.7 (first Beta release).
1515 Mike Sullivan <[email protected]> provided
1516 technical advice and helped test. Charles Stephens
1517 <[email protected]> also helped test.
1518
1519 Fixed bug in /proc-based Linux that caused it to
1520 access /proc/mounts excessively. Marty Leisner
1521 <[email protected]> provided a syscall
1522 trace that identified the bug. The fix was offered
1523 as a patch to 4.30.
1524
1525 Adjusted the IRIX 6.4 private structure definition
1526 for the XFS node to accommodate patch 2970. Igor
1527 Schein <[email protected]> identified the
1528 patch and the required adjustment.
1529
1530 4.32 May 11, 1998
1531 Corrected Solaris 2.7 code for reporting PCFS
1532 (floppy disk) node numbers. Casper Dik
1533 <[email protected]> supplied the fix. The
1534 fix was offered as a patch to 4.31.
1535
1536 Corrected a bug in conditional repeat mode handling
1537 pointed out by Igor Schein <[email protected]>.
1538 This was offered as a patch to 4.31.
1539
1540 Improved reporting of AIX open(/dev/memory device)
1541 errors.
1542
1543 Corrected a Solaris < 2.5 KA_T declaration error,
1544 pointed out by Robert Kiessling <[email protected]>.
1545 Changed KA_T from a #define to a typedef for all
1546 dialects to prevent future problems of this kind.
1547
1548 Changed the sample Perl 5 script big_brother.perl5
1549 to report a four digit year from localtime().
1550
1551 Added support for AIX 4.3[.1]. Bill Pemberton
1552 <[email protected]> provided a test
1553 system. Andrew Kephart <[email protected]>
1554 and Tom Weaver <[email protected]> provided
1555 technical assistance. Niklas Edmundsson
1556 <[email protected]> did 4.3.1 testing.
1557
1558 Added -qmaxmem option to CFLAGs for an AIX compilation
1559 with an xlc version 4.x compiler.
1560
1561 Adjusted Linux socket handling for changes in the
1562 AX25 members of the sock struct. Richard Green
1563 <[email protected]> pointed out the problem. Tested
1564 /dev/kmem-based lsof under Linux 2.0.34.
1565
1566 4.33 May 22, 1998
1567 Added generic IPv6 support to common lsof sources
1568 and specific IPv6 support to AIX sources. Andrew
1569 Kephart <[email protected]> supplied the
1570 additions and helped with testing. Bill Pemberton
1571 <[email protected]> provided a test
1572 system. The modification affected sources for
1573 every dialect, whether it supports IPv6 or not, by
1574 changing the interfaces to the common Internet
1575 address function ent_inaddr().
1576
1577 Added support for the NetBSD UVM virtual memory
1578 system. Paul Kranenburg <[email protected]> supplied
1579 technical details.
1580
1581 Bracketed HP-UX 11 use of <sys/spinlock.h> with
1582 #if/#endif _KERNEL.
1583
1584 Corrected printing of PCB address in DEVICE column
1585 for IRIX.
1586
1587 4.34 June 26, 1998
1588 Updated 00FAQ to discuss TCP and UDP ports private
1589 to the AIX kernel and 00README to describe how ACLs
1590 can be used to give lsof permission to read the
1591 kernel memory devices. Add information to 00FAQ
1592 and 00README about other OpenBSD architectures
1593 where lsof is reported to compile and run. Added
1594 section to 00FAQ discussing how an incorrect loader
1595 path environment variable value can prevent lsof
1596 from loading correctly.
1597
1598 Improved Solaris namefs and doorfs support so that
1599 it is now possible to search for an open VDOOR file
1600 by the path name of its fattached file system
1601 object. Igor Schein <[email protected]> requested the
1602 ability to do such a search. Even with the change,
1603 lsof can't always identify path names for open
1604 VDOOR files.
1605
1606 Also at Igor's request, improved reporting of
1607 information on open Solaris VCHR files that share
1608 a common vnode, and Solaris UNIX domain socket
1609 files.
1610
1611 Corrected print_kptr() argument error in PTX dnode.c,
1612 reported by Mark Price <[email protected]>.
1613 Compensated for ncache element naming differences,
1614 introduced at PTX 4.4.2; Kurtis D. Rader
1615 <[email protected]> reported the problem.
1616
1617 Changed output column title from INODE to NODE to
1618 better reflect the column's contents of node IDs
1619 for more than just inodes.
1620
1621 Improved Configuration and processing for Solaris
1622 AFS. Corrected AIX AFS 3.4 afs_rwlock_t simulation.
1623
1624 Corrected a cast problem with two AIX knlist()
1625 calls, thus quieting an AIX 4.2.1 compiler argument
1626 type warning. Jon Champlin <[email protected]>
1627 reported the problem.
1628
1629 Added support to most dialect versions (exception:
1630 /proc-based Linux) to warn when the identity of
1631 the kernel where lsof was compiled doesn't match
1632 the running identity. The warning can be suppressed
1633 with -w. Note: determining AIX state requires
1634 calling oslevel, a potentially slow operation.
1635 Jon Champlin <[email protected]> suggested this
1636 addition.
1637
1638 !!!! WARNING !!!! !!!! WARNING !!!! !!!! WARNING !!!!
1639
1640 Those using the lsof cross-configuration capability
1641 (see 00XCONFIG), should be aware that the kernel
1642 identity test feature introduces two new basic
1643 cross configuration environment variables, LSOF_ARCH
1644 and LSOF_VSTR.
1645
1646 !!!! WARNING !!!! !!!! WARNING !!!! !!!! WARNING !!!!
1647
1648 Identified a situation where a Solaris UNIX domain
1649 socket name is known and can be searched for by
1650 name; added the necessary code.
1651
1652 4.35 July 17, 1998
1653 Made the kernel identity check an option with the
1654 HASKERNIDCK #define in machine.h. Enabled altering
1655 of HASKERNIDCK with the Customize script. Added
1656 a clause to the help output that indicates the
1657 build-time HASKERNIDCK status.
1658
1659 Added more information to the NAME column for
1660 Solaris UNIX domain sockets. Made them searchable
1661 by their clone device path name. Igor Schein
1662 <[email protected]> requested this.
1663
1664 Completed the HP-UX 11 port with support for its
1665 optional 64 bit kernel. Rich Rauenzahn
1666 <[email protected]> provided a test system.
1667 Corrected errors with HP-UX 11 lock reporting and
1668 private kernel structure and type definitions.
1669 Added support for HP-UX NFS3 files.
1670
1671 Limited mount table warnings -- e.g., when -b is
1672 used -- to one set per mount point.
1673
1674 Fixed some mount table scanning and usage bugs,
1675 including one in Solaris, reported by Kjetil Torgrim
1676 Homme <[email protected]>.
1677
1678 4.36 August 4, 1998
1679 Made corrections and additions to IPv6 support and
1680 to AF_ROUTE socket handling, supplied by Jean-Luc
1681 Richier <[email protected]>. Jean-Luc's
1682 additions provide IPv6 support for the Inria IPv6
1683 implementations on FreeBSD and NetBSD.
1684
1685 Fixed two Solaris 2.5, 2.5.1, 2.6 and 2.7 TCP and
1686 UDP host name or IP address reporting bugs, reported
1687 by James Mathiesen <[email protected]>.
1688 This fix was offered as a patch to 4.35.
1689
1690 Updated the Customize script to cause ENTER to use
1691 all defaults. Amir J. Katz <[email protected]>
1692 suggested this and helped test the changes.
1693
1694 Updated Solaris ICMP and IP stream handling, based
1695 on a report from Igor Schein <[email protected]>.
1696
1697 Fixed a bug in the Digital UNIX mount table handling,
1698 reported by Bob Ward <[email protected]>.
1699 While working on the bug, found and updated some
1700 obsolete AdvFS code. This fix was offered as a
1701 patch to 4.35.
1702
1703 4.37 September 15, 1998
1704 Deactivated SGI IRIX support and archived revision
1705 4.36 sources and binaries in pub/tools/unix/lsof/OLD.
1706
1707 Improved performance of FD searching. This was
1708 offered as a patch to 4.36.
1709
1710 Amir J. Katz <[email protected]> pointed out that
1711 ranlib isn't needed for AIX or Solaris. Made
1712 appropriate Configure script changes.
1713
1714 Fixed a file offset reporting bug for HP-UX VCHR
1715 and VBLK device nodes located on a VxFS root. Doug
1716 Siebert <[email protected]> reported the
1717 bug. The fix was offered as a patch to 4.36.
1718
1719 Resolved an HP-UX root device name reporting bug,
1720 partly caused by an out-dated local copy of the
1721 <sys/mount.h> mount structure, by generating a
1722 local header file with the structure that can be
1723 compiled without needing _KERNEL defined. Doug
1724 Siebert also reported this bug.
1725
1726 Changed some dialect source code -- Digital UNIX,
1727 Solaris, SunOS, and UnixWare -- to make more
1728 consistent with ps the user ID lsof reports in the
1729 USER column. Added a 00FAQ entry about it. Igor
1730 Schein <[email protected]> reported the Solaris and
1731 SunOS lsof inconsistencies with what ps(1) reports.
1732
1733 Ported lsof to Pyramid ReliantUNIX 5.44.
1734
1735 Added brackets as comments to case, do, done, else,
1736 endif, esac, if, and while statements in Configure
1737 to assist in navigating its clauses.
1738
1739 Added more Linux 2.0.x glibc work-arounds.
1740
1741 Added support for UnixWare 7.0.1.
1742
1743 Ralph Forsythe <[email protected]> provided
1744 a new FreeBSD test system.
1745
1746 4.38 November 25, 1998
1747 Added support for recent FreeBSD 3.0 distributions.
1748 A 3.0 test system was provided by David O'Brien
1749 <[email protected]>. This was offered as a patch
1750 to 4.37.
1751
1752 Updated the scripts/idrlogin.perl* files to look
1753 for sshd processes in addition to rlogind and
1754 telnetd ones.
1755
1756 Added support for DU 5.0 Beta. Berkley Shands
1757 <[email protected]> provided a test system.
1758
1759 Added support for OpenBSD 2.4 with changes supplied
1760 by Kenneth Stailey <[email protected]>.
1761
1762 Changed the Solaris 2.7 tests and documentation to
1763 Solaris 7.
1764
1765 Made some changes to the header files for NEXTSTEP
1766 3.3 and added support for OPENSTEP 4.x with help
1767 from Michael A. Hovan III <[email protected]>
1768 and Carl Lindberg <[email protected]>.
1769 The combined dialect subdirectory is named n+os.
1770 One of Carl's changes propagates RC_CFLAGS to the
1771 library Makefile. Timothy J. Luoma <[email protected]>
1772 helped test under NEXTSTEP 3.3 and OPENSTEP 4.2.
1773
1774 Made UW 7.x version sensitive to the presence of
1775 ptf7038. Added peer PCB address to Unix domain
1776 socket Name column, even when a path name has been
1777 located. Information for these changes was supplied
1778 by Francis Le Bourse <[email protected]>. Lee
1779 Penn <[email protected]> provided a test system.
1780
1781 Tested lsof under OSR 5.0.5 on a test system also
1782 provided by Lee Penn.
1783
1784 Made path name argument processing more tolerant
1785 of errors per a suggestion from Julian Gordon
1786 <[email protected]>.
1787
1788 Acquired a new UnixWare 2.x test system, generously
1789 provided by Computer Classroom, Inc. -- Matthew
1790 Thurmaier <[email protected]>, Ken Laing
1791 <[email protected]>, and Andrew Merril
1792 <[email protected]>. Updated Configure to accept
1793 a UnixWare version of 2.1.3.
1794
1795 Updated kmem-based lsof for Linux 2.0.36.
1796
1797 Updated NetBSD sources for a change in a UVM virtual
1798 mapping header file.
1799
1800 Corrected a cache allocation bug in Sun format
1801 kernel name cache handling. The bug only shows up
1802 when the kernel name cache is inaccessible.
1803
1804 4.39 December 29, 1998
1805 Corrected problems with large device number handling
1806 for 64 bit Solaris 7. The problems were reported
1807 by Steve Bellenot <[email protected]>. Steve
1808 helped test the fixes. The fixes were offered as
1809 two patches to lsof 4.38.
1810
1811 Improved FreeBSD Configure operations for header
1812 files that must be obtained from the kernel source
1813 tree, based on a suggestion from David O'Brien
1814 <[email protected]>.
1815
1816 For Bela Lubkin <[email protected]> made
1817 optional with +f[cfn] the display of file structure
1818 address, shared use count, and node structure
1819 address. /proc-based Linux doesn't implement this
1820 feature, because it doesn't read kernel structures
1821 from kernel memory. Modified the PTX -X option to
1822 take advantage of the new file structure display
1823 option. Added shared.perl5 to the scripts/
1824 subdirectory to provide an example of how +f[fn]
1825 might be used to track shared file descriptors and
1826 files.
1827
1828 Added more /dev/kmem-based Linux glibc evasions,
1829 provided by Jeff Johnson <[email protected]> and Maciej
1830 Lesniewski <[email protected]>. Jeff helped test
1831 them on various Linux architectures.
1832
1833 Tested on AIX 4.3.2; no changes were required.
1834 Doug Crabill <[email protected]> provided a test
1835 system.
1836
1837 Fixed -c option to detect missing command name when
1838 following option begins with `+'.
1839
1840 4.40 January 25, 1999
1841 Added support for using the CDS compiler for Reliant
1842 Unix 5.44 and above. Made Reliant Unix MIPC support
1843 optional, dependent on the presence of <sys/mipc.h>.
1844
1845 Based on a report from Michael Schmitz <[email protected]>
1846 that /dev/kmem-based lsof misbehaves on a Linux
1847 2.0.x m68k kernel without module support, made the
1848 absence of query_module() or get_kernel_syms()
1849 Linux kernel support a fatal error. Updated relevant
1850 sections of 00FAQ to reflect the change.
1851
1852 Added the ability to force the Linux Configure
1853 stanza to use the /proc or /dev/kmem source base
1854 via a LINUX_BASE environment variable specification.
1855 This is a cross-configuration assist.
1856
1857 Added "+D <dir>" and "+d <dir>" options for directory
1858 searching. +D searches the entire tree, starting
1859 at <dir>, including <dir>, its contents, and its
1860 subdirectory branches; +d searches only <dir> and
1861 its contents, but not its subdirectory branches.
1862 Improved lsof's searching of the specified name
1863 list to compensate for anticipated long lists from
1864 +d and +D.
1865
1866 Made an egrep in the Solaris Configure stanza usable
1867 by the standard and XPG4 egrep's. Kenneth Stailey
1868 <[email protected]> pointed out the improvement.
1869
1870 Fixed bugs in /dev/kmem-based Linux and UnixWare
1871 Unix domain socket name searching.
1872
1873 Changed a Linux Alpha #include to be conditional
1874 on the presence of its named header file, so that
1875 lsof will compile on Red Hat 5.1 and 5.2 (Linux
1876 kernel 2.0.35) where the header file is absent.
1877 The problem was reported by Alexandre Oliva
1878 <[email protected]>.
1879
1880 Fixed an AIX 4.3+ bug in procinfo struct space
1881 allocation, reported by Jeff Stewart <[email protected]>.
1882 This was offered as a patch to 4.39.
1883
1884 Added an lstatsafely() function to offer the same
1885 isolation for lstat() calls that statsafely() offers
1886 for stat() calls. This made DOSTAT_FUNCTION no
1887 longer necessary, so deleted it.
1888
1889 With help from Laurent P. Montaron <[email protected]>
1890 ported lsof to PTX 4.4.4. Laurent did a monumental
1891 job of identifying TCP/IP changes by their TCP
1892 version, rather than by their PTX (With mix 'n
1893 match PTX and TCP/IP versions, the PTX version
1894 often has no bearing on the TCP/IP version.), and
1895 changed the Configure script and pre-processor
1896 #if/#else/#endif blocks to match. He also updated
1897 Unix domain socket handling for PTX TCP/IP versions
1898 4.5 and above.
1899
1900 Updated CLIENT handle acquisition of fill_portmap()
1901 in print.c to use the more modern RPC function
1902 clnt_create() in place of clnttcp_create() where
1903 possible. PTX 4.4.4 requires clnt_create().
1904
1905 4.41 February 27, 1999
1906 Added FreeBSD 3.1 and 4.0 support with help
1907 from Sheldon Hearn <[email protected]>, David O'Brien
1908 <[email protected]>, and John Polstra <[email protected]>.
1909
1910 Corrected bungled AIX 4.3+ patch that went into
1911 lsof 4.40.
1912
1913 Reorganized the Configure script to improve Makefile
1914 construction. A specific impetus for this was to
1915 allow FreeBSD system-wide make flags to be propagated
1916 to the lsof Makefiles, but other goals were to make
1917 sure that the DEBUG= make entry can over-ride
1918 standard CFLAGS values, and to better manage the
1919 identification of compilers and their versions.
1920 Two compiler-related values may now be supplied in
1921 environment variables: 1) the compiler path in
1922 LSOF_CC; and 2) the compiler version in LSOF_CCV.
1923 00XCONFIG documents them.
1924
1925 Added support for Pyramid Reliant Unix bsdsfs,
1926 msockfs, and sockfs file systems.
1927
1928 Added an optional LSOF_CINFO string to Configure,
1929 producing a CINFO string in selected Makefiles,
1930 producing a #define LSOF_CINFO in selected version.h
1931 header files. The purpose of this is to allow
1932 Configure the option to propagate information to
1933 the lsof -v output. It is now used for Linux to
1934 identify the code base, and for HP-UX 10.30 and
1935 11.0 and Solaris 7 to identify the kernel bit size.
1936
1937 Added system information to NEXTSTEP and OPENSTEP
1938 -v output, from the second line of hostinfo's
1939 output.
1940
1941 Fixed a login name buffer overflow problem in the
1942 processing of -u option values. This was offered
1943 as a patch to 4.40. !!!THIS IS A SERIOUS STACK
1944 OVERFLOW BUG; A LINUX EXPLOIT EXISTS FOR IT THAT
1945 OPENS A BASH SHELL WITH LSOF'S AUTHORITY -- E.G,
1946 SETGID(KMEM) POWER!!!
1947
1948 Improved the Solaris mount table filter so the
1949 volume manager's fake mount point, "/vol", is
1950 ignored and doesn't supplant "/" in NAME column
1951 path assemblies. Igor Schein <[email protected]> reported
1952 this bug and provided important help in finding
1953 it. This was offered as a patch to 4.40.
1954
1955 Changed the Linux /dev/kmem-based lock ownership
1956 test to answer a problem reported by Tom Christiansen
1957 <[email protected]>. This was offered as a
1958 patch to 4.40.
1959
1960 Installed an HP-UX 11 patch, suggested by Kevin
1961 Vajk <[email protected]>, that adjusts a private
1962 lsof kernel header file, derived via Q4, to correspond
1963 to an HP-UX patch bundle.
1964
1965 Made NetBSD 1.3I sockproto structure adjustment.
1966
1967 4.42 March 30, 1999
1968 Fixed a typo in the HP-UX dfile.c that caused +fF
1969 and +fN output controls to swap effect.
1970
1971 Enabled for OpenBSD 2.5 per notice from Kenneth
1972 Stailey <[email protected]>
1973
1974 Made more VM accommodations for FreeBSD 4.0.
1975
1976 Improved file system search reporting to include
1977 path name components when they're available, instead
1978 of mindlessly reporting the file system name in
1979 the NAME column. Guy Dallaire <[email protected]>
1980 brought the need for this change to my attention.
1981
1982 Updated Solaris 2.6 VxFS for Veritas Oracle Database
1983 Edition 2.0, VxFS version 3.3, and VxVm version
1984 2.5.4, based on a report from Chris Kordish
1985 <[email protected]>. Chris kindly provided
1986 a test system.
1987
1988 Improved HP-UX ipc_s patch detection in Configure,
1989 response in .../dialects/hpux/hpux11/ipc_s.h, and
1990 documentation in 00FAQ, Kevin Vajk <[email protected]>
1991 helped test.
1992
1993 Added to Customize the option to suppress HASKERNIDCK
1994 selection for specified dialects. Suppressed it
1995 for /proc-based Linux lsof, and removed its test
1996 and code from there. Tin Le <[email protected]>
1997 alerted me to the need for this update.
1998
1999 Ported to official Digital UNIX 5.0 release.
2000
2001 Changed DU lsof to use the knlist(3) function when
2002 no kernel file has been specified with -k. This
2003 change was suggested by Erich Wimmer
2004 <[email protected]>.
2005
2006 Updated Configure for latest NetBSD (1.3I?) with
2007 UVM support the default.
2008
2009 4.43 May 11, 1999
2010 Corrected a typo in the Solaris gcc discussion in
2011 00FAQ. Made changes to the Solaris 2.5[.1] private
2012 tcp_s structure. Both changes were done in response
2013 to reports from Igor Schein <[email protected]>, who
2014 tested the Solaris 2.5 change.
2015
2016 Made more IPv6 adjustments to lsof for Tru64 UNIX
2017 (Digital UNIX) 5.0, based on information obtained
2018 from Compaq by Berkley Shands <[email protected]>.
2019
2020 Corrected HP-UX error message about HP-UX 11 q4 usage.
2021 Amir Katz <[email protected]> reported the correction.
2022
2023 Fixed a GlibC 2.1 conflict in /proc-based Linux lsof.
2024
2025 Fixed a man page typo reported by Vlad Harchev
2026 <[email protected]>.
2027
2028 Changed some Solaris 2.7 references to Solaris 7
2029 in Configure and 00XPORTING.
2030
2031 Added a Solaris example to the echo statements that
2032 are the install rule in the SunOS/Solaris Makefile.
2033
2034 Added a field to the file structure output --
2035 FILE-FLAG (file structure open flags, f_flag[s],
2036 and process file flags, typically u_pofile)) --
2037 enabled with +f[gG]. Its field output character
2038 is 'G'.
2039
2040 Figured out another piece of the HP-UX 11 patched
2041 ipc_s structure puzzle with the help of Keith Kalet
2042 <[email protected]>.
2043
2044 Fixed a PTX real vnode to real inode interpretation
2045 bug.
2046
2047 Added link count to lsof output. Eric Dumazet
2048 <[email protected]> requested and helped test
2049 it. The new +L option enables and filters it.
2050 Its field output character is `k'.
2051
2052 Updated Configure script to recognize NetBSD 1.4.
2053
2054 Updated AFSConfig to handle default answers to
2055 questions.
2056
2057 Incorporated patch from Jonathan Sergent <[email protected]>
2058 that enables /proc-based Linux lsof to run on both
2059 32 and 64 bit kernels.
2060
2061 Updated Configure script with a patch from David
2062 O'Brien <[email protected]> that recognizes FreeBSD 3.2.
2063
2064 4.44 June 24, 1999
2065 Corrected use of nlink member of hsnode for SunOS
2066 4.1.x High Sierra File System files. John Dzubera
2067 <[email protected]> reported the
2068 problem and helped test the fix. Also fixed a
2069 SunOS segmentation fault bug. These fixes were
2070 offered as a patch to 4.43.
2071
2072 Improved handling of /proc-based Linux UNIX PCB
2073 address.
2074
2075 Fixed a NEXTSTEP and OPENSTEP bug that made repeat
2076 option (-r) processing malfunction. This fix was
2077 offered as a patch to 4.43.
2078
2079 Fixed Configure so it doesn't use -O in the Cflags
2080 for the bundled HP-UX C compiler. Jim Ankenbrandt
2081 <[email protected]> reported the problem.
2082
2083 Corrected output ordering of parent PID and process
2084 group ID when both -R and -g are specified.
2085
2086 Enhanced the pdev.c and pdvn.c library modules for
2087 wider use. These dialect versions use the new
2088 library modules: DEC OSF/1, Digital UNIX, and Tru64
2089 UNIX; Pyramid DC/OSx and Reliant UNIX; SCO OSR and
2090 UnixWare; and Sequent PTX.
2091
2092 Added basic clone device support to /dev/kmem-based
2093 HP-UX lsof for HP-UX 10.30 and higher.
2094
2095 Added raw socket support to /proc-based Linux lsof.
2096
2097 Changed NODE-ADDR column title to NODE-ID in
2098 anticipation of using more general identification
2099 information in the column.
2100
2101 Ported to UnixWare 7.1, using a test system kindly
2102 provided by Matt Thurmaier <[email protected]>
2103 and Don Draper <[email protected]>.
2104
2105 Updated for NetBSD 1.4C VM changes, and a new
2106 current and root working directory structure.
2107
2108 Made minor adjustment for latest Tru64 UNIX 5.0
2109 Beta release.
2110
2111 4.45 July 30, 1999
2112 Fixed quoting problem in DEC OSF/1, Digital Unix,
2113 and Tru64 UNIX Makefile's install rule. The problem
2114 was reported by Berkley Shands <[email protected]>.
2115 Fixed bug in Tru64 UNIX 4 lsof that caused FDs to
2116 be skipped. These fixes were offered in a patch
2117 to 4.44.
2118
2119 Fixed a repeat-mode /proc-based Linux lsof bug,
2120 reported by Sami Farin <[email protected]>. This
2121 was offered as a patch to 4.44.
2122
2123 Picked lint, some reported by Sami Farin.
2124
2125 Corrected a 00DCACHE documentation error in a sample
2126 shell script. The problem was reported by Chad R.
2127 Larson <[email protected]>. Changed commented-out
2128 entries in machine.h files so they require more
2129 thought and work when the comments are removed,
2130 based on a remark by Chad.
2131
2132 Compensated for the practice of Solaris 7 and above
2133 to record the dev= value in /etc/mnttab in 32 bit
2134 mode, even on 64 bit systems. This was offered as
2135 a patch to 4.44.
2136
2137 Added a C library test for /proc-based Linux lsof,
2138 so that the #include files can be adjusted for a
2139 non-GlibC environment. The need for this was
2140 reported by Andrew Hill <[email protected]>.
2141 This was offered as a patch to 4.44.
2142
2143 Added support for Auspex LFS 1.8.1 and 1.9.2 to
2144 SunOS 4.1.4 lsof. The support was requested by
2145 Quentin Fennessy <[email protected]>, who
2146 provided information and did testing.
2147
2148 Enabled IPv6 support code for NetBSD and OpenBSD,
2149 conditional on Configure script tests. Wolfgang
2150 Rupprecht <[email protected]> supplied the NetBSD
2151 code and tested it. The OpenBSD code I constructed
2152 has been compiled but not tested.
2153
2154 Updated the identd Perl 5 script, based on a report
2155 from Wendy Lin <[email protected]> that
2156 the space in its response line in front of the user
2157 name violates RFC 1413.
2158
2159 Added IPv6 support to /proc-based Linux lsof.
2160 Jonathan Sergent <[email protected]> and Andrew
2161 Thomas Sydelko <[email protected]> kindly
2162 provided a test system.
2163
2164 Updated man page description of AIX multiplexed
2165 files to indicate that they might be /dev/ptc or
2166 /dev/pts, depending on the AIX version. The
2167 correction was suggested by Onno van der Linden
2168 <[email protected]>.
2169
2170 Sylvain Robitaille <[email protected]> reports
2171 lsof passes his Y2K tests.
2172
2173 4.46 October 23, 1999
2174 Corrected /proc-based Linux lsof to detect that an
2175 IPv6 address is a mapped IPv4 address. The problem
2176 was reported and analyzed by Arkadiusz Miskiewicz
2177 <[email protected]>, who also tested the fix.
2178
2179 Added a libc5 library /dev/kmem-based Linux lsof
2180 circumvention, supplied by Jason Lingohr
2181 <[email protected]>.
2182
2183 Corrected a bug in -t (terse) AIX output, reported
2184 by Wendy Lin <[email protected]>. I
2185 introduced the bug at revision 4.43 when adding
2186 FILE_FLAG reporting. This was offered as a patch
2187 to 4.45.
2188
2189 Added a work-around for a problem in the OpenBSD
2190 2.3 <sys/pipe.h> header file. Volker Borchert
2191 <[email protected]> provided and tested it.
2192
2193 Improved description of cross-building lsof for a
2194 64 bit Solaris 7 system on a 32 bit system with
2195 suggestions from Phillip Edwards
2196 <[email protected]>.
2197
2198 Fixed a gawk POSIX-mode pattern error in the Linux
2199 /dev/kmem-based Mksrc script, based on a tip from
2200 Ambrose C. Li <[email protected]>.
2201
2202 Fixed a bug in the Tru64 UNIX IPv6 handling, courtesy
2203 of a report from Casper Dik <[email protected]>.
2204
2205 Enabled support for OpenBSD 2.6.
2206
2207 Enabled support for BSDI BSD/OS 4.1, based on a
2208 report from Jeffrey C Honig <[email protected]> that
2209 only a Configure script change is necessary.
2210
2211 Enabled Configure script to use gcc for building
2212 lsof for a 64 bit Solaris 7 and 8 kernels, if the
2213 gcc version is 2.95 or above.
2214
2215 Improved -i option handling for systems with IPv6
2216 support so that it will search for a host name in
2217 both IPv4 and IPv6 families, when that is possible.
2218 As a companion modification, changed -V processing
2219 to report a single error when a multiple host name
2220 match is requested. Casper Dik <[email protected]>
2221 helped test.
2222
2223 Fixed a DEC OSF/1, Digital UNIX, Tru64 UNIX repeat
2224 mode bug, reported by Mayer Ilovitz <[email protected]>.
2225 Mayer helped test the fix. The fix was offered as a
2226 patch to 4.45.
2227
2228 Changed Solaris socket file recognition scheme, so it
2229 is (nearly) the same through Solaris 8, where the
2230 previous clone device scheme no longer works.
2231
2232 With significant assistance from Casper Dik, added
2233 support for Solaris 8 Beta and Beta refresh. The
2234 IPv6 support in Solaris 8 is still in some flux,
2235 so there are temporary compensations for the
2236 differences between Beta IPv6 support and Beta
2237 refresh IPv6 support. Casper and I hope those
2238 differences disappear by FCS.
2239
2240 Improved the delivery of information on Solaris
2241 2.5.1, 2.6, 7, and 8 door files.
2242
2243 Fixed a repeat mode bug that surfaces when /etc/passwd
2244 changes between cycles. The bug report and diagnostic
2245 help were supplied by Igor Schein <[email protected]>.
2246 The fix was offered as a patch to 4.45.
2247
2248 Added support for INRIA IPv6 to NetBSD. Jean-Luc
2249 Richier <[email protected]> provided patches
2250 and a test system on which to verify them.
2251
2252 Added support for AIX 4.3.3. Jeff W. Stewart
2253 <[email protected]> provided a test system.
2254
2255 Made adjustments for FreeBSD 4.0-current.
2256
2257 Improved reporting of information for AIX sockets that
2258 lack protocol control blocks.
2259
2260 4.47 November 29, 1999
2261 Based on a query from Jean-Pierre Radley <[email protected]>,
2262 changed the lsof top-level Makefile to propagate
2263 CFGF to the library Makefile. (DEBUG was already
2264 being propagated.) Added osrgcc and scogcc Configure
2265 abbreviations (to use gcc) for Jean-Pierre.
2266
2267 In response to a query from Igor Schein <[email protected]>,
2268 improved the Configure script test for Solaris 7
2269 and 8 that decides if the compiler can produce 64
2270 bit executables.
2271
2272 Made an ugly hack, based on making a private rnode
2273 structure definition from q4 output, to compensate
2274 for HP-UX 10.20 and lower recent NFS3 patches. HP
2275 didn't supply an updated <nfs/rnode.h> with the
2276 patches. The problem was reported by Will Partain
2277 <[email protected]>. Elias Halldor Agustsson
2278 <[email protected]> helped identify the patches as
2279 PHNE_18173, PHNE_19426, PHNE_19937, and PHNE_20091,
2280 and provided a test system.
2281
2282 Switched BSDI test system from 2.1 and 3.1 to 4.0.1,
2283 courtesy of Terry Kennedy <[email protected]>.
2284
2285 Added some more dev_t hacks for Alpha FreeBSD 4.0.
2286
2287 Added support for IPv6 on BSD 4.x. The support hasn't
2288 yet been tested, just compiled.
2289
2290 Added support for the mnt file system (mntfs or
2291 /etc/mnttab) on Solaris 8. Tested on Solaris 8
2292 BETA-Refresh.
2293
2294 Made selection of optional fields (e.g., PPID with
2295 -FR) in a field output specification select the
2296 optional field, too, so that the option selector
2297 for the field (e.g., -R) isn't also required. This
2298 change was made in response to an inquiry from John
2299 DuBois <[email protected]>. This may require some
2300 revision to scripts that parse all field output;
2301 two scripts in the lsof distribution's scripts/
2302 subdirectory had to be updated.
2303
2304 Corrected handling of Linux IPv4 addresses mapped
2305 in IPv6 addresses.
2306
2307 Tested under OpenBSD 2.6.
2308
2309 4.48 January 14, 2000
2310 Modified -i argument processing of colon-separated
2311 IPv6 addresses to recognize an IPv4 address mapped
2312 in an IPv6 address and handle it as an IPv4 address.
2313 This was offered as a patch to 4.47.
2314
2315 Added a defined symbol (NOWARNBLKDEV) to control
2316 (inhibit) the issuance of a warning when no block
2317 devices are found. This was done anticipating its
2318 need in FreeBSD 4.x, but that dialect version no
2319 longer has any block devices, so HASBLKDEV was
2320 disabled for it instead. NOWARNBLKDEV was left in
2321 place for possible use in the future.
2322
2323 Enabled KAME IPv6 Configure support for FreeBSD
2324 when <netinet6/in6.h> is found.
2325
2326 Disabled use of gcc to compile lsof for 64 bit
2327 HP-UX 11.
2328
2329 Updated Configure to recognized FreeBSD 3.4.
2330
2331 Based on suggestions from Bernt Christandl
2332 <[email protected]> improved AFS configuration
2333 for AIX and Solaris, and updated AIX AFS 3.5 support.
2334 Johannes Tax <[email protected]>, Hung T.
2335 Pham <[email protected]>, and Curt Freeland
2336 <[email protected]> provided test systems.
2337
2338 Updated lsof's private rnode definition for AIX
2339 4.3.3, since IBM still doesn't ship the
2340 <oncplus/nfs/rnode.h> header file and the rnode
2341 structure definition in <nfs/rnode.h> doesn't match
2342 what the kernel uses. This was offered as a patch
2343 to 4.47.
2344
2345 Weakened the test in the Linux /proc-based lsof of
2346 the field count of data lines in /proc/net/{tcp,udp}.
2347 It appears that recent 2.3.x Linux kernels have
2348 added untitled fields to these files. The bug
2349 report came from Gabor Liptak <[email protected]>.
2350
2351 Adjusted for a FreeBSD 4.0 change in the definition
2352 of [_]KERNEL. David O'Brien <[email protected]> reported
2353 the problem and provided a test system.
2354
2355 Removed the HASPPID bracket from Fppid (the -R
2356 option state variable) so that the field select
2357 table will compile even when HASPPID is not defined.
2358 This problem was introduced at revision 4.47 with
2359 code that causes some field output characters to
2360 set option states. The problem was reported by
2361 David Bacon <[email protected]>.
2362
2363 4.49 April 3, 2000
2364 Made clearer in man page that "Lxx" FDs are AIX
2365 loader table references. Also updated the 00FAQ
2366 discussion of the Stale Segment ID bug to include
2367 AIX 4.3.x.
2368
2369 Modified support for NetBSD 1.4Q to include the
2370 <sys/buf.h> header file to cope with an MFS change.
2371
2372 Added support for OpenBSD UVM virtual memory.
2373
2374 Added support for AIX systems with > 2GB of memory.
2375 Chris Sylvain <[email protected]>
2376 reported the problem and provided the solution.
2377 Chris also supplied some minor code cleanup. This
2378 was offered as a patch to 4.48.
2379
2380 Based on new information from Igor Schein <[email protected]>
2381 made additional compensation in Configure script
2382 for 64 bit Solaris 7 and 8 gcc.
2383
2384 Added some 00FAQ info on the effect ordering of
2385 the +fg and -FG options has on output format.
2386
2387 Improved NetBSD IPv6 configuration, based on a
2388 suggestion from Thomas Klausner
2389 <[email protected]>. Added code to
2390 convert IPv4-mapped-in-IPv6 addresses to IPv4
2391 addresses.
2392
2393 Updated the information in 00FAQ and the HP-UX 11
2394 binary directory README files on the HP-UX 11 ipis_s
2395 patch with new information supplied by Eric McWhorter
2396 <[email protected]>.
2397
2398 Added documentation on changes to HASFSTYPE and
2399 HASNCACHE, and the new HASPRIVPRIPP.
2400
2401 Adjusted Configure for FreeBSD 5.0. Made additional,
2402 necessary changes to Configure and the BSDI sources
2403 to eliminate load errors.
2404
2405 Added KAME IPv6 support to FreeBSD at the request
2406 of Ollivier Robert <[email protected]>, who
2407 provided a test system.
2408
2409 Corrected the script that generates the CHECKSUMS
2410 files for binaries to correctly name the detached
2411 PGP certificate. The documentation bug was reported
2412 by Michael Hennecke <[email protected]>.
2413
2414 4.50 June 29, 2000
2415 Added a NetBSD alpha test host, courtesy of Ray
2416 Phillips <[email protected]>. An lsof
2417 4.49 binary, built on Ray's 1.4.1 system was made
2418 available prior to the 3.50 release.
2419
2420 Upgraded the system map file tests in /dev/kmem-based
2421 Linux lsof, making the use of DEBIAN_LINUX_LSOF
2422 unnecessary. Tested the changes on a system made
2423 available by Vincent Kujala <[email protected]>
2424 and Jim Mintha <[email protected]>.
2425
2426 Forced AIX to use the large-file-enabled versions
2427 of lstat (lstat64) and stat (stat64) if <sys/stat.h>
2428 contains stat64. This should allow lsof to stat()
2429 AIX files > 2GB even when the builder has not
2430 defined the "large file enabled programming
2431 environment." Configure tests <sys/stat.h> and
2432 puts -DHASSTAT64 in the Makefile's CFLAGS to make
2433 this happen. Fernando A.B. Whitaker
2434 <[email protected]> reported the problem.
2435 This was offered as a patch to 4.48.
2436
2437 Enabled Configure script to handle OpenBSD 2.7.
2438 Angelos D. Keromytis <[email protected]>
2439 reported the availability of OpenBSD 2.7 and supplied
2440 the Configure script patch.
2441
2442 Improved handling of DOOR and fattach()'d files in
2443 Solaris.
2444
2445 Changed message about missing kernel symbol file
2446 from "not yet determined" to "none found".
2447
2448 Updated FreeBSD, NetBSD, NEXTSTEP, OpenBSD, and
2449 OPENSTEP support to report "no PCB" and the values
2450 of the SO_CANTSENDMORE and SO_CANTRCVMORE state
2451 flags when a socket structure has no inpcb pointer.
2452 This modification was made to AIX lsof at revision
2453 4.46. Added an entry to 00FAQ about sockets that
2454 have no inpcb pointer.
2455
2456 Upgraded support for FreeBSD 5.0-CURRENT. Ben
2457 Smithurst <[email protected]> supplied
2458 patches and did testing. David O'Brien <[email protected]>
2459 supplied a test system. The update included dropping
2460 the Fctty part of file descriptor file system
2461 support, conditional on a Configure script test.
2462 I propagated those changes to BSDI, NetBSD, and
2463 OpenBSD in anticipation of their having the
2464 modification in the future. David also arranged
2465 with Michael Haro <[email protected]> for
2466 a FreeBSD 3.4 test system.
2467
2468 In response to an lsof 3.72 bug report from Jim Mewes
2469 <[email protected]>, added more kernel address
2470 filtering to the lsof function, kread(), that reads
2471 Solaris kernel data.
2472
2473 In response to a report from Marc Duponcheel
2474 <[email protected]>, added tests to the /proc-based
2475 Linux lsof to ignore file systems of types "autofs"
2476 and "pipfs".
2477
2478 Based on a report and information supplied by Casper
2479 Dik <[email protected]>, updated the ncache_load()
2480 function in lib/rnch.c with new code that deals
2481 with a post Solaris 8 change in kernel name cache
2482 (DNLC) handling. Casper tested the update, which
2483 should be invisible to Solaris versions without
2484 the new DNLC code.
2485
2486 Added support for Solaris VxFS QIO files, based on
2487 a report from Kieran Broadfoot <[email protected]>.
2488 Kieran help test the support.
2489
2490 Added support for PTX 4.4.6 and 4.5[.1] with help
2491 from the usual cast of good people at Sequent.
2492
2493 Added support for 64 bit file sizes and offsets on
2494 BSDI, FreeBSD, NetBSD, and OpenBSD, based on a
2495 report from Dan Nelson <[email protected]>.
2496 Dan supplied a patch and did FreeBSD testing.
2497
2498 Added Configure script recognition of NetBSD 1.5,
2499 based on a report from Andrew Brown <[email protected]>.
2500 Thomas Klausner <[email protected]> updated
2501 the NetBSD port package to use a pre-release of this
2502 addition.
2503
2504 At the last minute saw a notice via deja.com's
2505 UseNet search service that FreeBSD 3.5 had been
2506 released and lsof didn't grok it. Added recognition
2507 of 3.5 to lsof's Configure script, but didn't have
2508 the opportunity to test lsof on 3.5.
2509
2510 4.51 August 21, 2000
2511 Added Configure script support for the upcoming
2512 Solaris 9 release based on suggestions from Casper
2513 Dik <[email protected]>.
2514
2515 Changed sample Perl scripts to assume that
2516 /usr/local/bin/perl is Perl 5 and Perl 4 may be
2517 found in /usr/local/bin/perl4.
2518
2519 Updated Configure to recognize FreeBSD 4.1 and made
2520 a FreeBSD pre-release distribution available.
2521
2522 Bela Lubkin <[email protected]> tested lsof on the
2523 upcoming SCO OSR 5.0.6 release and reports that
2524 lsof appears to work properly.
2525
2526 Updated the AIX compiler test in Configure to
2527 recognize its version 5.
2528
2529 Updated AIX 4.3.3 support with automatic recognition
2530 of the proper rnode structure, based on machine
2531 bit width. Also added code to detect when processing
2532 the -X option that lsof has been compiled with the
2533 "other" AIX 4.3.3 user structure and to apply
2534 compensations. When a compensation method works,
2535 it's applied during subsequent -X processing; when
2536 none works, further -X processing is disabled.
2537
2538 Added Tru64 UNIX 5.1 support. Updated Tru64 UNIX
2539 library text file support to recognize new kernel
2540 support for AdvFS library files. Berkley Shands
2541 <[email protected]> and Klaus Saggerer USG
2542 [[email protected]> helped put me in contact
2543 with Chang Song <[email protected]>, the developer
2544 of 5.1's new kernel name cache and he helped me
2545 develop new code in lsof to access it.
2546
2547 Corrected reporting of PTX fattach()'d address.
2548
2549 Changed Configure and dlsof.h for NetBSD and OpenBSD
2550 to use /usr/include/uvm header files when available.
2551 Andrew Brown <[email protected]>, Thomas Klausner
2552 <[email protected]>, and Wolfgang
2553 Rupprecht <[email protected]> pointed out the need
2554 to do this for NetBSD. Andrew provided access to
2555 a NetBSD 1.5 system for verifying the changes.
2556
2557 Installed snprintf() support, including a private
2558 version in the lsof library for those UNIX dialects
2559 without the function. Changed all sources to use
2560 it instead of sprintf() and strcpy().
2561
2562 Fixed a memory leak in the readvfs() functions of
2563 BSDI, DEC/OSF1, Digital UNIX, FreeBSD, NetBSD,
2564 OpenBSD, and Tru64 UNIX.
2565
2566 Tested on Linux 2.4.
2567
2568 Modified the Pyramid MkKernOpts script to compensate
2569 for `uname -s` configuration alternatives. Robert
2570 Dahlem <[email protected]> supplied
2571 the modification.
2572
2573 Obtained access to an FCS Solaris 8 64 bit system
2574 and built lsof on it, using Sun Workshop C 5.0 and
2575 gcc 2.96 20000814 (experimental). Both compilers
2576 produce a working lsof.
2577
2578
2579 4.52 November 8, 2000
2580 Completed work on an HP-UX 11.11 port that uses a
2581 pstat(2) interface provided by HP. To distinguish
2582 it from its predecessors for HP-UX, this lsof
2583 version is called PSTAT-based and the predecessor
2584 versions are now called /dev/kmem-based. I am
2585 indebted to the far-sightedness and support of
2586 these good people at HP for making PSTAT-based lsof
2587 possible: Carl Davidson, Louis Huemiller, Rich
2588 Rauenzahn, and Sailu Yallapragada. The PSTAT-based
2589 sources are in lsof_4.52/dialects/hpux/pstat, the
2590 /dev/kmem-based ones in lsof_4.52/dialects/hpux/kmem.
2591
2592 Ported to IBM Monterey for Merced|Itanium, aka AIX
2593 5L. It configures via the Configure script's "aix"
2594 abbreviation and has been tested on AIX 5L Beta 3.
2595 Jay Beck, Steve Dibbell, Loc Le, Nasser Momtaheni,
2596 and Malcom Zung of IBM provided generous support.
2597 Since AIX 5L is still in Beta testing, this port
2598 can't be considered complete.
2599
2600 Added Configure support for OpenBSD 2.8. David
2601 Mazieres <[email protected]> provided a test system.
2602
2603 Based on a report from Marc Christensen
2604 <[email protected]> added sockfs to the mount scan
2605 exemption list for /proc-based Linux lsof.
2606
2607 Added large file, CDFS, and DOSFS for UnixWare 7.x.
2608 Added UnixWare device memory mapping support. All
2609 UnixWare changes were supplied by Eric Dumazet
2610 <[email protected]> Eric also supplied some
2611 miscellaneous bug fixes.
2612
2613 Deferred name cache loading until printname() needs
2614 to use the name cache.
2615
2616 Terminated Pyramid, SunOS 4.1.x, and Ultrix support,
2617 because test systems are no longer available.
2618 Final Pyramid and Ultrix source code distributions
2619 for lsof revision 4.51 may be found on lsof.itap.purdue.edu
2620 in pub/tools/unix/lsof/OLD/src. The no longer
2621 supported SunOS 4.1.x source code is still distributed
2622 with the Solaris source code.
2623
2624 Added code to set Solaris node address to real vnode
2625 address, when applicable.
2626
2627 John Speno <[email protected]> provided
2628 information that enabled me to update the Tru64
2629 AdvFS (MSFS) node definition for AdvFS version 5.
2630
2631 Added Tru64 5.x CFS support with help from Kris
2632 Chandrasekhar <[email protected]>,
2633 Diane Lebel <[email protected]>, and John Speno.
2634 The support only provides information about cached
2635 file attributes.
2636
2637 Installed a Configure patch for HP-UX 11 supplied by
2638 Kenneth Stailey <[email protected]> that adds
2639 another command to q4 input.
2640
2641 Tested on FreeBSD 4.2.
2642
2643 Will Day <[email protected]> and Frank
2644 Winkler <[email protected]> graciously
2645 supplied Solaris 8 binaries.
2646
2647 Added Solaris 9 text file support, supplied by
2648 Casper Dik <[email protected]>.
2649
2650 4.53 December 6, 2000
2651 Added the AIX 5L j2_lock.h to the distribution with
2652 a Configure script step to use it when it's missing
2653 from /usr/include/j2.
2654
2655 Removed SunOS 4.1.x support.
2656
2657 Removed Linux 2.0.x /dev/kmem support.
2658
2659 Fixed VBLK and VCHR special device file reporting
2660 to handle /dev information more accurately.
2661
2662 Added a Apple Darwin / Mac OS X 1.2 port, provided
2663 by Allan Nathanson <[email protected]>. Allan also
2664 arranged for a test system so I can maintain this
2665 port. An additional test system was provided by
2666 Dale Talcott.
2667
2668 Dropped claims of support for all UnixWare versions
2669 except 7.1.0, since that is the only version on
2670 which I can test lsof. Even though lsof 4.53 is
2671 deprecated for UnixWare 2.1.3, installed a patch
2672 for it with testing done by A. Channing Clark
2673 <[email protected]>.
2674
2675 Dropped claims of support for all SCO OpenServer
2676 versions except 5.0.5, since that is the only
2677 version on which I can test lsof.
2678
2679 4.54 January 19, 2001
2680 Added compensation for a change that made the
2681 FreeBSD mount structure invisible. I can only test
2682 back to 3.2 and the compensation works there, so
2683 it's been #ifdef'd for 3.2 and above. David O'Brien
2684 <[email protected]> provided the necessary clue.
2685
2686 Based on a report from Valdis Kletnieks
2687 <[email protected]>, changed all IPv6 support
2688 to report a TYPE of IPv6 for sockets with IPv4
2689 addresses mapped in IPv6 addresses. The previous
2690 lsof behavior was to report their TYPE as IPv4.
2691
2692 Restored the Linux GlibC test to Configure, removed
2693 at revision 4.53, based on a report from John Dzubera
2694 <[email protected]>, that RedHat Linux 6.0 still
2695 needs the test.
2696
2697 Made setting of link count for Solaris more selective.
2698
2699 Limited Readlink() recursion to MAXSYMLINKS. The bug
2700 was reported by Jan Dvorak <[email protected]>.
2701
2702 Dropped the *claim* that lsof runs on Solaris 2.5.1.
2703 It may well do so, but I no longer have access to a
2704 test system.
2705
2706 Fixed an #endif comment typo, reported by Igor Schein.
2707
2708 Fixed a typo in a cast for a Tru64 UNIX 5.1 function
2709 and updated Configure for Tru64 UNIX 5.0 and 5.1 with
2710 information from Jesse Perry <[email protected]>.
2711
2712 Corrected non-fatal typos in the AdvFS support in
2713 dnode.c for Tru64 UNIX.
2714
2715 Added msdos file system support for NetBSD and OpenBSD.
2716 Andrew Brown <[email protected]> requested and helped
2717 test it.
2718
2719 4.55 February 15, 2001
2720 Based on a report from Bernd Eckenfels <[email protected]>
2721 added support in lsof for files in /proc/<PID>/maps
2722 that have been deleted.
2723
2724 Changed PGRP output title to PGID, conforming to
2725 the most common current abbreviation for Process
2726 Group ID (PGID). While some systems continue to
2727 use *pgrp for internal kernel variable names, most
2728 systems that support the display of PGID via ps(1)
2729 now title it PGID. The lsof -g and -Fg options
2730 operations are unchanged in function; only titles
2731 and descriptions have changed. Also changed internal
2732 variable names from *PGRP and *pgrp to *PGID and
2733 *pgid where possible.
2734
2735 Dropped the *claim* that lsof runs on HP-UX 9.x.
2736 It may well do so, but I no longer have access to
2737 a test system.
2738
2739 In response to a suggestion from Jeff Howie
2740 <[email protected]> added support for command
2741 name selection by regular expression. A new form
2742 of the -c option value is use to identify and
2743 specify a regular expression.
2744
2745 Restore the *claim* that lsof works on UnixWare
2746 7.0, since I re-acquired a test system.
2747
2748 4.56 May 3, 2001
2749 Corrected some problems Amir Katz <[email protected]>
2750 found with Insure++, one in lib/dvch.c, the rest
2751 in Solaris sources. Amir's report also helped me
2752 find an error in an snpf() call that caused (the
2753 unsupported) Solaris 2.5.1 lsof to crash. Wally
2754 Winzer, Jr. <[email protected]> helped test.
2755
2756 Added support for UnixWare 7.1.1 and above in-kernel
2757 UNIX sockets. John Hughes <[email protected]> kindly
2758 provided code and access to a test system. John
2759 also provided a test system and advice for adding
2760 UnixWare 7.1.1 NonStop Cluster and CFS support.
2761 More help with that effort came from Kurt Gollhardt
2762 (SCO), Barbara Howe (SCO), Bela Lubkin (SCO), and
2763 Dewan Rashid <[email protected]>.
2764
2765 Archived a set of compilation hints (patches) from
2766 Bill Melvin <[email protected]> that make it
2767 possible to compile the old, unsupported lsof 3.08
2768 sources on UnixWare 1.x without NFS or CDFS support.
2769
2770 Installed support supplied by Allan Nathanson
2771 <[email protected]> for the Darwin "Gold Master" release,
2772 Mac OS X 10.0 (aka Darwin 1.3 in its public source
2773 version). Added Allan's CVS repository suggestions
2774 to the script that gets additional header files
2775 from an open source repository.
2776
2777 Tested an HP-UX 11.11 kernel patch from Sailu
2778 Yallapragada that enables reporting of TCP/IP
2779 information for telnetd processes that use the
2780 telnet multiplexor. I don't yet know the kernel
2781 patch ID.
2782
2783 Made the Solaris inclusion of <inet/mi.h> conditional
2784 on the Solaris version. (It's apparently not needed
2785 at 2.6 and above.) Bill Watson <[email protected]>
2786 brought this to my attention.
2787
2788 Added alternate Linux 2.4.x lock extent test, supplied
2789 by Jim Mintha <[email protected]>.
2790
2791 Rearranged the lines and pre-processor tests in
2792 regex.h, lib/regex.c, and lib/snpf.c so that unifdef
2793 can be used to eliminate copyright and GPL statements
2794 when the files aren't being used for a particular
2795 dialect. (USE_LIB_* definitions in a dialect's
2796 machine.h header file determine if one or more of
2797 those three files are to be used.)
2798
2799 Added preliminary support for Solaris 8 with VxFS
2800 3.4. This support will be refined as I get
2801 information from Veritas about how they will
2802 distribute the kernel header files lsof needs.
2803 Those header files were omitted from the standard
2804 VxFS 3.4 distribution. Technical assistance and
2805 testing were provided by Calle Dybedahl <[email protected]>,
2806 Gary Millen <[email protected]>, Rainer Orth
2807 <[email protected]>, Peter C. Vernam
2808 <[email protected]>, and Donna Yobs
2809 <[email protected]>
2810
2811 Tested on FreeBSD 4.3-STABLE.
2812
2813 Dropped the *claim* that lsof works on UNIX dialects
2814 where I no longer have test systems: BSDI 2.1,
2815 3.[01] and 4.0; DEC OSF/1, Digital UNIX and True
2816 64 UNIX 2.0 and 3.2; FreeBSD 2.1.[67], 2.2[.x],
2817 3.[012345] and 4.[01]; HP-UX 10.20; NetBSD 1.[234];
2818 SCO OpenServer 5.0.5; and SCO UnixWare 7.0
2819
2820 Tested on Solaris 9 BETA, s81_36.
2821
2822 4.57 July 19, 2001
2823 Help (-h) and version (-v) output now have URLs
2824 for the newly created and timeliest lsof FAQ
2825 (00FAQ in the lsof distribution) at:
2826
2827 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
2828
2829 and the man page for the current lsof distribution
2830 at:
2831
2832 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
2833
2834 Based on a report from Steve Laubscher
2835 <[email protected]>, modified dlsof.h for PTX
2836 4.6[.1] to avoid a temporary dnlc_t definition
2837 needed at PTX 4.5.1.
2838
2839 Corrected test for old Linux kernels in Configure.
2840 Henri Karrenbeld <[email protected]>
2841 brought the error to my attention. Limited Linux
2842 claims to 2.1.72 and above in the documentation.
2843
2844 Improved HP-UX 11 Configure stanza and stream socket
2845 handling.
2846
2847 Constructed a work-around for the HP-UX 11 optional
2848 OnlineJFS package. The work-around sadly requires
2849 lsof to have a private version of the vx_inode
2850 structure, since the OnlineJFS package doesn't
2851 update <sys/fs/vx_inode.h>. Troyan Krastev
2852 <[email protected]> brought the bug to
2853 my attention and Michael Bracewell
2854 <[email protected]> provided a test system
2855 where I developed the work-around.
2856
2857 Added locale support to lsof's isprint() test,
2858 based on a suggestion from Dan Mercer <[email protected]>.
2859 Lsof will use setlocale(), when that function and
2860 its supporting <locale.h> header file are available.
2861
2862 Added OpenBSD 2.9 support.
2863
2864 Based on a report from Aaron Rhodes <[email protected]>
2865 and with testing help from Aaron, made the lsof
2866 4.56 revision compile and work on OpenBSD 2.6.
2867 While that OpenBSD version is no longer supported,
2868 Aaron's report exposed a Configure script bug
2869 affecting OpenBSD versions lsof does support.
2870
2871 Updated for FreeBSD 5.0-CURRENT. Szilveszter Adam
2872 <[email protected]> help test. The lsof
2873 FreeBSD ports packager, David O'Brien <[email protected]>,
2874 assisted.
2875
2876 Tested on AIX 5.1. Loc Le and Nasser Momtaheni of
2877 IBM provided test systems.
2878
2879 4.58 September 13, 2001
2880 Added options to safestrprt() and safestrprtn() to
2881 surround the string with '"' and to suppress the
2882 printing of an ending '\n'. Use of these functions
2883 in device cache file error message reporting answers
2884 a suggestion for better error reporting from John
2885 Jackson <[email protected]>.
2886
2887 Fixed a Solaris 2.6 and above problem related to
2888 searching for "large" (O_LARGEFILE) files by name;
2889 lsof was using the wrong version of [l]stat(2).
2890 The bug was reported by Daniel Trinkle
2891 <[email protected]>.
2892
2893 Added AIX 4.1.4 and above XTI socket support.
2894
2895 Added OSR Xenix Shared Data and Semaphore file type
2896 support with modifications supplied by Bela Lubkin.
2897
2898 Updated OPENSTEP support with modifications from Carl
2899 E. Lindberg <[email protected]>. The changes
2900 enable the correct reporting of executable and
2901 library open files ("txt" type).
2902
2903 Limited claims of OpenServer support to the versions
2904 where I currently test, 5.0.4 and 5.0.6. (Lsof
2905 probably works on 5.0.5.)
2906
2907 Enabled processing of -C option for PSTAT-based HP-UX
2908 lsof.
2909
2910 Enabled and tested on FreeBSD 4.4.
2911
2912 Corrected a file system test example in 00QUICKSTART,
2913 based on a report from Jun Biao WANG <[email protected]>.
2914
2915 Made available for re-distribution a user-contributed
2916 port of lsof 4.51 to Reliant UNIX 5.45. Thomas
2917 Mauterer <[email protected]> contributed
2918 the port.
2919
2920 4.59 October 20, 2001
2921 With the closing of the Sequent Synergy Links Lab
2922 by IBM, terminated lsof support for PTX. The last
2923 tested PTX lsof revision, 4.58, is available on
2924 lsof.itap.purdue.edu in .../lsof/OLD/src.
2925
2926 Adjusted for FreeBSD 5.0-CURRENT NFS header file
2927 changes, based on a report from Jos Backus
2928 <[email protected]>.
2929
2930 Corrected a bug in the way Linux lsof identifies
2931 the owner of a process. Lionel Cons <[email protected]>
2932 reported the problem and tested the fix. Added
2933 code to avoid stat(2) calls on regular Linux files
2934 whenever possible. Lionel reported the need to do
2935 this (AFS files) and tested the new code.
2936
2937 Added new output field for raw device number in
2938 hex. The field is identified with 'r'. This field
2939 is NOT selected when -F or -F0 is specified so that
2940 its appearance won't disturb existing scripts that
2941 process field output.
2942
2943 Added support for OpenUNIX 8. A test system was
2944 provided by Larry Rosenman <[email protected]>.
2945 Matthew Thurmaier <[email protected]> and many
2946 people from Caldera provided technical assistance.
2947
2948 Added an additional UVM test to the NetBSD Configure
2949 stanza. Andrew Brown <[email protected]> supplied
2950 the test; it recognizes NetBSD 1.5Y UVM changes to
2951 the vnode structure recently committed by Chuck
2952 Silvers.
2953
2954 Applied Configure and get-xnu-headers.sh script
2955 changes suppled by Allan Nathanson <[email protected]>
2956 for Darwin 1.4.
2957
2958 Added for Bela Lubkin <[email protected]>
2959 OSR-specific environment variables to supply values
2960 to the Configure script. The variables are described
2961 in 00XCONFIG.
2962
2963 Added an IP version selector to the -i option
2964 parameters.
2965
2966 4.60 November 9, 2001
2967 Added special handling to and corrected bugs in
2968 the matching of IPv4 in IPv6 addresses to -i6:<...>
2969 selectors.
2970
2971 Made 00FAQ corrections and updates, based on
2972 discussions with Igor Schein <[email protected]>.
2973
2974 Modified Configure script to detect a 64 bit capable
2975 gcc compiler and permit it to be used to build 64
2976 bit (PA-RISC 2) lsof for HP-UX 11.00. Tested with
2977 HP's gcc package, which Rich Rauenzahn of HP kindly
2978 installed on a test system at HP. Stefan Marquardt
2979 <[email protected]> helped test.
2980
2981 Made lsof's method of killing its child process
2982 more robust, based on a suggestion from Bela Lubkin
2983 <[email protected]>.
2984
2985 Modified all dialect Makefile segments to accept
2986 select -v #define's from the environment -- a
2987 builder's comment, host, logname, system information
2988 and user name. This was done for Bela Lubkin, so
2989 he can "tune" the -v output when he packages lsof
2990 in the upcoming Caldera OSR 5.0.7 release.
2991
2992 Changed Perl scripts in scripts/ to put the lsof
2993 path consistently in $LSOF. Also added a fix from
2994 Bela Lubkin to scripts/big_brother.perl5 that allows
2995 it to tolerate SCO OSR "ago" clauses in open UDP
2996 file information. Strengthened emphasis in
2997 scripts/00README that the scripts are examples that
2998 shouldn't be expected to run on all UNIX dialects
2999 without modification.
3000
3001 At Bela Lubkin's suggestion changed the device
3002 cache file format examples in 00DCACHE and 00FAQ
3003 to avoid "%U%". That's an SCCS escape sequence.
3004
3005 Added support for OpenBSD 3.0.
3006
3007 Added +DAportable to CFLAGS for 32 bit HP-UX 11.
3008 Amir Katz <[email protected]> suggested the addition.
3009
3010 4.61 January 22, 2002
3011 Updated field output example Perl scripts in the
3012 scripts/ subdirectory to discover the lsof path,
3013 starting at .. and proceeding through the PATH
3014 environment variable's directories.
3015
3016 Added minor OSR Configure script fixes, provided
3017 by Bela Lubkin <[email protected]>.
3018
3019 In response to a report from Joshua Wright
3020 <[email protected]> modified NetBSD and OpenBSD
3021 Configure stanzas and sources so that lsof can be
3022 built when there is no system source tree (e.g.,
3023 /usr/src/sys).
3024
3025 In response to a report from Peter Valchev
3026 <[email protected]> improved the UVM test in
3027 the OpenBSD Configure stanza.
3028
3029 Updated Configure script to recognize FreeBSD 4.5.
3030 Updated for FreeBSD 5.0 procfs and pseudofs changes.
3031
3032 Updated HP-UX stanza to see if the compiler named
3033 in the LSOF_CC environment variable is the bundled
3034 compiler. If it is, "-O" is omitted from the
3035 compiler flags.
3036
3037 Updated Digital UNIX 4.x and Tru64 UNIX error message
3038 related to kernel name list failures. Added an FAQ
3039 section about how a kloadsrv daemon failure can cause
3040 knlist(3) to fail. The condition was reported by
3041 Douglas B. Jones <[email protected]>
3042
3043 Based on a report from Mark W. Eichin <[email protected]>
3044 made Linux lsof capable of handling and reporting
3045 file sizes greater than 32 bits.
3046
3047 Tested on Solaris 9 BETA-Refresh.
3048
3049 Corrected a bug in the matching of IPv4 addresses,
3050 mapped in IPv6 addresses, to an IPv4 parameter to
3051 an -i option.
3052
3053 Ported to 64 bit Power AIX 5.1 kernel with advice
3054 from David Clissold <[email protected]> and Marc
3055 Stephenson <[email protected]>, and on a test
3056 system provided by Loc Le <[email protected]>.
3057
3058 4.62 March 7, 2002
3059 Updated 00README to reflect the usefulness of gcc
3060 for building AIX lsof. Documented a report from
3061 Brian L. Gentry <[email protected]> of success
3062 on AIX 4.3.3. I documented my success on 32 bit
3063 Power AIX 5.1 and my lack of success on ia64 AIX
3064 5.1 and 64 bit Power AIX 5.1.
3065
3066 Improved UnixWare >=7.1.1 reporting of UNIX socket
3067 NAME field information for NonStop Cluster systems
3068 with a patch provided by John Hughes <[email protected]>.
3069 Offered John's improvement as a patch to lsof 4.61.
3070
3071 Corrected bugs in handling of open files on block
3072 devices by OSR lsof. The bugs were reported by
3073 Bela Lubkin <[email protected]>.
3074
3075 Fixed bug in writing >32 bit device numbers for
3076 block devices to the device cache file.
3077
3078 Added support for reporting block special nodes
3079 not in /dev (or /devices). That required "like
3080 device special" be changed to "like block special"
3081 and "like character special". (00FAQ was updated.)
3082
3083 Based on a report from Peter Valchev <[email protected]>
3084 improved the definition of the source for NetBSD
3085 and OpenBSD kernel symbols (the nlist() source
3086 file). NetBSD now defaults to getbootfile(3) if
3087 it is available, /netbsd otherwise. OpenBSD now
3088 defaults to /dev/ksyms if it is available, /bsd
3089 otherwise.
3090
3091 Made possible compilation under BSD/OS (BSDI) 5.0
3092 with changes to Configure, dialects/bsdi/dlsof,
3093 dialects/bsdi/dproc.c and lib/rnmh.c. The changes
3094 were suggested by Steven Hinkle <[email protected]>.
3095 Note that these changes do not substantiate a claim
3096 that lsof works on BSDI 5.0, because I haven't
3097 tested it there.
3098
3099 Updated OpenUNIX private <sys/fs/memfs_mnode.h>,
3100 based on a report from Larry Rosenman <[email protected]>
3101 that it had been updated by Caldera patch OU800PK3.
3102 Unfortunately the patch only corrects some of the
3103 problems with the header file, so it is still
3104 necessary to distribute a private patched version
3105 of it with the lsof sources.
3106
3107 Applied a man page correction reported by Frederic
3108 Delanoy <[email protected]>.
3109
3110 Corrected cast bugs related to using the HP-UX
3111 bundled C compiler on HP-UX 11.11.
3112
3113 4.63 April 23, 2002
3114 Added HPUX_BOOTFILE environment variable for use
3115 by the Configure script in determining HP-UX kernel
3116 configuration information -- e.g., the state of
3117 the ipis_s structure in the HP-UX 11 kernel. The
3118 change was suggested by Marc Bejarano <[email protected]>.
3119 Marc also suggested some changes to the HP-UX
3120 section in 00FAQ that discusses Configure's use of
3121 q4 for HP-UX 11.
3122
3123 Fixed a bug in the Solaris lsof file system matching
3124 code. It was not reporting that VCHR files in
3125 /devices were in / when /devices was in /, too.
3126
3127 Corrected bugs in device number, file size, file
3128 offset, and raw device number field output generation.
3129
3130 Added recognition of OpenBSD 3.1 to the Configure
3131 script with a suggestion from Peter Valchev
3132 <[email protected]>. Note that this change does
3133 not constitute a claim that lsof works on OpenBSD
3134 3.1, because I haven't tested it there.
3135
3136 Built an automated test suite. (See 00TEST and
3137 the tests/ sub-directory of the lsof main directory).
3138 Bela Lubkin requested it. Dale Talcott, John
3139 Hughes, and Larry Rosenman helped me validate it
3140 on their systems.
3141
3142 During the development of the test suite I discovered
3143 the following lsof bugs or missing features, and
3144 corrected or supplied them.
3145
3146 * Corrected the reporting of locks for:
3147 o Digital UNIX 4.0d and Tru64 Unix 5.[01];
3148 o HP-UX 10.30 and 11.00;
3149 o OpenUNIX 8;
3150 o UnixWare 7.1.1.
3151
3152 * Enabled HP-UX 10.30 and 11.00 to report open NFS
3153 file link counts.
3154
3155 * Corrected the reporting of UNIX domain socket
3156 names for Apple Darwin, FreeBSD 4.5 and above,
3157 NetBSD 1.4.1 and above, and for OpenBSD 3.0 and
3158 above.
3159
3160 * Enabled HP-UX 11.11 to stat(2) large files.
3161
3162 * Fixed handling of combination 32 and 64 bit
3163 device numbers in AIX 64 bit architectures.
3164
3165 Updated the AIX 4.3.3 NFS rnode recognition code,
3166 first installed at revision 4.51. It looks like
3167 some IBM update has restored a single rnode structure
3168 independent of the machine bit width.
3169
3170 Updated the NetBSD and OpenBSD sources so NetBSD
3171 can process DTYPE_PIPE files, as OpenBSD was already
3172 able to do.
3173
3174 Updated Darwin get-xnu-headers.sh script to reflect
3175 information about a recent reorganization of the
3176 Darwin CVS hierarchy, supplied by Allan Nathanson
3177 <[email protected]>.
3178
3179 Added defense against the standard I/O descriptor
3180 attack.
3181
3182 4.64 June 26, 2002
3183 Corrected some FreeBSD pre-processor directives.
3184 David O'Brien <[email protected]> pointed them out.
3185
3186 Updated lsof's main() function to: 1) close all
3187 open file descriptors above 2 before starting; and
3188 2) to set a non-interfering umask. Moved GET_MAX_FD
3189 test from misc.c to proto.h, so that main() could
3190 use it. Added multiple-include protection to
3191 proto.h.
3192
3193 Moved FAQ's test suite Q's & A's to a more appropriate
3194 section. Added a Q&A on HASSECURITY option and
3195 its affect on searching for open files. (That was
3196 already in the man page.)
3197
3198 Updated hpux/kmem/dnode.c for HP-UX < 11 compilation
3199 with information from John Dzubera <[email protected]>.
3200 While lsof doesn't support HP-UX < 11 any more, I
3201 try to avoid disabling it there when possible, and
3202 a locking fix for HP-UX >= 11 in lsof 4.63
3203 inadvertently disabled compilation of lsof for
3204 HP-UX < 11. Fixed long-standing bug in HP-UX 10.20
3205 lock reporting.
3206
3207 Removed language from the test suite programs that
3208 requires an ANSI-C compiler. This allowed the test
3209 suite to be validated with cc and gcc on the un-
3210 supported HP-UX 10.20.
3211
3212 At the suggestion of Manuel Bouyer <[email protected]>
3213 switched NetBSD and OpenBSD lsof from using nlist()
3214 to using kvm_nlist(). Made the same change for
3215 BSDI, Darwin, and FreeBSD.
3216
3217 Validated test suite on OPENSTEP 4.2.
3218
3219 In response to a suggestion from Jeff Stoner
3220 <[email protected]> enhanced support for the
3221 FD list of the -d option to allow it to be either
3222 an exclusion or inclusion list, using the '^' prefix
3223 to denote exclusions.
3224
3225 Made adjustments for FreeBSD 4.6 and 5.0-CURRENT.
3226 Fixed a FreeBSD /etc/make.conf CFLAGS extraction
3227 bug, reported by Kris Kennaway <[email protected]>,
3228 and new a bug in the fix, reported by Eric Cronin
3229 <[email protected]>
3230
3231 Added nullfs support for FreeBSD, NetBSD, and OpenBSD
3232 at the request of Andrew Brown <[email protected]>.
3233
3234 Modified all readmnt() functions to ignore mounted-on
3235 directory names that don't begin with '/'.
3236
3237 Tested on NetBSD 1.6A and OpenBSD 3.1.
3238
3239 Upgraded to Solaris 9 FCS with two changes to the
3240 BETA-Refresh support: 1) an adjustment to dnode.c
3241 for a change in the so_so (sonode) structure; and
3242 2) addition of Solaris 9 FCS specific DNLC code.
3243 David Comay <[email protected]> sent me the
3244 dnode.c change and Casper Dik <[email protected]>
3245 helped with the new DNLC support code.
3246
3247 Applied OpenUNIX changes that permit lsof to compile
3248 and run on the upcoming 8.0.1 release. The changes
3249 were supplied by Robert Lipe <[email protected]>.
3250 Larry Rosenman <[email protected]> provided a test
3251 system.
3252
3253 Added Solaris fd file system support.
3254
3255 4.65 October 10, 2002
3256 Adjusted for change in FreeBSD 5.0-CURRENT inode
3257 structure, reported by David O'Brien <[email protected]>.
3258 Adjusted for changes in FreeBSD 5.0-CURRENT <sys/vnode.h>.
3259 One change was reported by Anders Nordby
3260 <[email protected]>. Adjusted for FreeBSD 5.0-CURRENT
3261 on sparc64 architecture.
3262
3263 Enhanced the error reporting of Solaris lsof when
3264 it detects a kvm_open() failure, and added a 00FAQ
3265 entry on the cause, based on a report from Peter
3266 J. Bertoncini <[email protected]>.
3267
3268 Enabled compiling of lsof for NetBSD 1.5 with the
3269 NULL file system, using a patch from Andrew Brown
3270 <[email protected]>.
3271
3272 Removed a hack in the LTbigf test program that was
3273 once needed when it was compiled on Solaris 9 BETA-
3274 Refresh with gcc. The hack isn't needed on Solaris
3275 9 FCS. Janet Hempstead <[email protected]>
3276 brought the need for this change to my attention.
3277
3278 Applied a patch, supplied by Andrew Brown
3279 <[email protected]>, that updates lsof for NetBSD
3280 version 1.6F. Corrected handling of the NetBSD
3281 nullfs.
3282
3283 Updated to BSDI BSD/OS 4.3 on a test system kindly
3284 provided by Terry Kennedy <[email protected]>.
3285
3286 Updated to FreeBSD 4.7.
3287
3288 Updated to Apple Darwin 1.5, 5.x and 6.x with
3289 patches supplied by Allan Nathanson <[email protected]>.
3290 The patches include IPv6 support.
3291
3292 Updated Configure to use the -bnolibpath loader
3293 option when building lsof on a PowerPC, running
3294 AIX 5 or greater. Valdis Kletnieks
3295 <[email protected]> informed me this was
3296 needed. Lsof for AIX 5.x was initially developed
3297 on the IA64, where -bnolibpath can't be used and
3298 I didn't think to restore it to PowerPC loads when
3299 AIX 5.x became available for that architecture.
3300
3301 Updated to UnixWare 7.1.3 on a test system provided
3302 by Larry Rosenman <[email protected]>. Removed claims
3303 that lsof works on OpenUNIX 8.0.1, because UnixWare
3304 7.1.3 is the release name of OpenUNIX 8.0.1.
3305
3306 Based on a comment that his e-mail address was
3307 wrong in the lsof distribution from Kenneth Stailey
3308 <[email protected]>, removed all e-mail
3309 addresses from lsof documentation files except this
3310 one, 00DIST. The addresses in 00DIST are used to
3311 send revision release notices to those who contributed
3312 to a revision, but the addresses in this file for
3313 previous revisions and in other documentation files
3314 sometimes grow stale and are never validated.
3315
3316 4.66 December 22, 2002
3317 Acquired Solaris 7 and 8 test systems, courtesy of
3318 John Dzubera <[email protected]>. Updated
3319 00TEST and tests/TestDB accordingly.
3320
3321 Clarified FreeBSD 5.0 architecture claims at the
3322 suggestion of David O'Brien <[email protected]>.
3323 Also implemented David's suggestion to change
3324 Intel to x86.
3325
3326 Installed changes to DNLC handling in OSR lsof in
3327 preparation for handling changes in the OSR 5.0.7
3328 DNLC cache. Information about the changes and
3329 patches to handle them were supplied by Bela Lubkin
3330 <[email protected]>.
3331
3332 Upgraded True 64 UNIX support to the 5.1B release
3333 on a test system provided by Berkley Shands
3334 <[email protected]> Had to used relaxed ANSI
3335 compilation because of an error in a system header
3336 file and other lsof source usages.
3337
3338 Implemented the HASNOSOCKSECURITY compile-time
3339 option. When it and HASSECURITY are defined, lsof
3340 will be built to list only the user's open files,
3341 but will also list anyone else's open socket files,
3342 provided the "-i" option selects their listing.
3343 Updated the Customize script to ask about setting
3344 HASNOSOCKSECURITY. Left it undefined in all dialect
3345 machine.h header files. This change was requested
3346 by Kenneth Stailey <[email protected]> for
3347 use with ntop.
3348
3349 Added support for OpenBSD 3.2 and its kernel trace
3350 file.
3351
3352 Improved lsof help (-h) and version (-v) information
3353 reporting.
3354
3355 Fixed a FreeBSD 4.7 and above off-by-two UNIX domain
3356 socket path termination bug, reported by Ken Stailey
3357 <[email protected]>
3358
3359 4.67 March 27, 2003
3360 Began the transition of the lsof ftp server host
3361 name from vic.cc.purdue.edu to lsof.itap.purdue.edu.
3362 That reflects Purdue organizational changes. This
3363 first step makes the new name an alias to the old
3364 one. The old name, vic.cc.purdue.edu, will remain
3365 usable for an extended period.
3366
3367 Corrected a revision number reference in section
3368 17.17 of 00FAQ on the appearance of Solaris negative
3369 DNLC caching handing.
3370
3371 Updated 00FAQ discussion of compilers for 64 bit
3372 Solaris.
3373
3374 Validated test suite for 64 bit Solaris 8 and gcc.
3375
3376 At the request of Alek O. Komarnitsky <[email protected]>
3377 added the "+c <width>" option to enable optional
3378 changing of the COMMAND column output maximum width
3379 from the default to <width>. The default maximum
3380 width remains CMDL, as defined in lsof.h.
3381
3382 Fixed three AIX kernel bit size detection bugs,
3383 one in the AIX Configure script stanza, the second
3384 and third in the AIX dproc.c get_kernel_access()
3385 function. The bugs were reported by Pierre-Yves
3386 Fontaniere <[email protected]>, who tested the fixes.
3387
3388 Added kernel event queue file support for FreeBSD,
3389 NetBSD and OpenBSD. Andrew Brown <[email protected]>
3390 supplied the code.
3391
3392 Updated to AIX 5.2 on a test system provided by
3393 Dale Talcott <[email protected]>. Had to build
3394 work-arounds for two missing AIX 5.2 header files,
3395 <j2/j2_snapshot> and <proc/proc_public.h>. Corrected
3396 an off-by-one UNIX socket addressing bug. Taught
3397 AIX lsof to handle both jfs and jfs2 files at the
3398 same time. Adjusted for an IBM mistake in the
3399 sizing of the fdsinfo structure in <procinfo.h>
3400 Toshiya Nakamura <[email protected]> helped test,
3401
3402 Updated to FreeBSD 4.8. Corrected another bug in
3403 FreeBSD UNIX domain socket name handling.
3404
3405 Corrected gcc build problems on HP-UX 11i, reported
3406 by Yuliy Minchev <[email protected]>.
3407
3408 Updated BSDI BSD/OS support to 4.3.1.
3409
3410 Augmented a lock ID test on NetBSD to check if the
3411 ID is an LWP pointer.
3412
3413 4.68 June 18, 2003
3414 Enhanced Configure script's cleanup operations.
3415
3416 Added support for OpenBSD 3.3, based on a report
3417 from Peter Valchev <[email protected]>.
3418
3419 Improved the description of the detached PGP
3420 signature certificate file in the main lsof README
3421 file, based on a suggestion from Diana Stockdale
3422 <[email protected]>.
3423
3424 Installed a work-around for FreeBSD 5.0-CURRENT on
3425 Alpha to avoid a compiler register use complaint.
3426
3427 Corrected a 'c' option error message. Gnele
3428 <[email protected]> reported the problem.
3429
3430 Upgraded EXT2FS and UFS support for NetBSD and
3431 OpenBSD to handle new inode information, and the
3432 fast UFS1 and UFS2 file systems.
3433
3434 With the help of Andrew Brown <[email protected]>
3435 determined the NetBSD snapshot (1.6F) at which
3436 <sys/mount.h> could be included under _KERNEL, thus
3437 eliminating the lsof netexport.h hack. The same
3438 change applies to OpenBSD versions 3.3 and above.
3439
3440 Applied a patch from Armin Gruner <[email protected]> that
3441 corrects the use of the HASPROCFS definition in the
3442 FreeBSD dialect sources.
3443
3444 Corrected spelling errors in 00FAQ and in the
3445 generated 00.README.FIRST_<version> file of the
3446 distribution archive. John Jackson <[email protected]>
3447 and Ray Phillips <[email protected]>
3448 spotted and reported the errors.
3449
3450 Corrected a spelling error in a comment and incorrect
3451 use of an alarm function in the LTsock test program.
3452
3453 At the suggestion of Stuart Anderson <[email protected]>
3454 added preliminary (and incomplete) SAM-FS file system
3455 support to Solaris lsof. Completion awaits availability
3456 of SAM-FS internals.
3457
3458 Fixed a Solaris device name printing bug, reported by
3459 Ric Anderson <[email protected]>, only
3460 visible when HASDCACHE is not defined. Ric helped
3461 test the fix.
3462
3463 Fixed an AIX kernel bit size handling bug related
3464 to the NFS node (rnode) structure.
3465
3466 Corrected a print_kptr() function call error in the AIX
3467 AFS code, reported by David Steiner
3468 <[email protected]>. Upon further reflection
3469 and because I no longer have appropriate AIX AFS test
3470 systems, disabled AIX AFS support in the Configure script
3471 for AIX versions above 4.3.3.0 or AIX AFS versions above 3.5.
3472
3473 Added support for FreeBSD 5.1.
3474
3475 With advice from Allan Nathanson <[email protected]> adjusted
3476 the Darwin get-xnu-headers.sh script to access the kernel
3477 header files needed by lsof from a new form of the Apple
3478 open source repository.
3479
3480 Installed Linux and lsof library bug fixes and
3481 improvements, supplied by Marian Jancar <[email protected]>.
3482 One Linux improvement handles mount strings that
3483 have octal escapes in them, eg., \040 for embedded
3484 blanks. Marian tested the changes.
3485
3486 4.69 October 16, 2003
3487 Received and applied an OpenBSD patch from Peter Valchev
3488 <[email protected]> that replaces a ctob() call with
3489 a sysconf() call. Peter claims sysconf() is needed for
3490 OpenBSD on SPARC. (It is not needed for NetBSD on SPARC.)
3491
3492 With the upgrade of my only Solaris 7 test system
3493 to, Solaris 8, dropped the *claim* that lsof works
3494 on Solaris 7. That doesn't mean it won't work
3495 there, so those who want lsof for Solaris 7 probably
3496 should be able to build it there and it probably
3497 will work there.
3498
3499 Revised lsof's DNLC handling for BSD derivatives,
3500 including: BSDI; Darwin, DEC OSF/1, Digital UNIX
3501 and Tru64 UNIX; FreeBSD; NetBSD; and OpenBSD. The
3502 latest NetBSD distribution's dropping of the vnode
3503 capability ID (v_id) required the revision.
3504
3505 Adjusted to the latest FreeBSD 5.1-CURRENT.
3506
3507 Added NetBSD support for using kvm_getproc2().
3508
3509 Added a patch from Andrew Brown <[email protected]>
3510 to handle NetBSD enum conflicts and changes in the
3511 <miscfs/kernfs/kernfs.h> and <miscfs/procfs/procfs.h>
3512 header files.
3513
3514 Added a "#define _KERNEL" to the AIX dnode2.c source
3515 file for compatibility with a new <j2/j2_inode.h>
3516 AIX 5.2 header file version. The addition was
3517 supplied by Dick Dunbar <[email protected]>
3518 and was offered as a patch to lsof 4.68/
3519
3520 Added support for a second type of Solaris SAMFS.
3521 Stuart Anderson <[email protected]> provided the
3522 support. SAMFS support in lsof SOLARIS remains
3523 scanty, because Sun won't release any details on
3524 its kernel structures.
3525
3526 Dropped the *claim* that lsof works on AIX 4.3.3,
3527 because I was unable to test it there. That doesn't
3528 mean it won't work there, so those who want lsof
3529 for AIX 4.3.3 probably should be able to build it
3530 there and it probably will work there.
3531
3532 Updated for Solaris 10 on test systems provided by
3533 Mike Miscevic <[email protected]>. Casper Dik
3534 <[email protected]> provided significant help.
3535 During the Solaris 10 port found and fixed an lofs
3536 handling bug that prevented reporting of open lofs
3537 file lock status.
3538
3539 Updated the DNLC test, LTdnlc, to provide a possible
3540 explanation about file systems on which the test
3541 might fail.
3542
3543 Modified the procedure for obtaining missing Darwin
3544 XNU kernel header files. The new one requires more
3545 manual intervention, but is the best that can be
3546 done with the way Apple open sources are now
3547 organized. 00FAQ explains the new procedures for
3548 those not used to downloading Apple open source
3549 files.
3550
3551 Added support for Apple Darwin 7.0 (Mac OS X 10.3)
3552 with patches supplied by Allan Nathanson <[email protected]>.
3553 Dropped the *claim* that lsof builds and works on
3554 Apple Darwin below 6.0.
3555
3556 Validated lsof on FreeBSD 4.9, using a test system
3557 provided by Ben Lewis <[email protected]>.
3558
3559 Validated lsof on FreeBSD 5.1-CURRENT for Amd64.
3560 David O'Brien <[email protected]> provided a test
3561 system.
3562
3563 Changed the NetBSD Configure stanza to do header
3564 file searches in /usr/include by default. The
3565 LSOF_INCLUDE and NETBSD_SYS environment variables
3566 may still be used to specify other search paths.
3567 Discussions with Andrew Brown and Wolfgang S.
3568 Rupprecht <[email protected]> led to the change.
3569
3570 4.70 January 16, 2004
3571 Improved shell-portability of the linux stanza of
3572 the Configure script with a patch from Paul Jarc
3573 <[email protected]>.
3574
3575 Added a "silent" rule to tests/Makefile for Paul.
3576 Updated, extended and clarified the test suite
3577 documentation in 00FAQ and 00TEST.
3578
3579 Fixed Solaris 10 dlsof.h typo, reported by Mike
3580 Miscevic <[email protected]>. The typo prevents lsof
3581 from loading cleanly in Solaris 10 builds past 40.
3582
3583 Fixed a Solaris HSFS node number reporting bug and
3584 added a structure definition work-around for Solaris
3585 10.
3586
3587 Converted PGP signing to GPG. My previous PGP key can
3588 be used, but the gpg "--allow-non-selfsigned-uid"
3589 option may have to be used when it is imported into a
3590 GPG key ring.
3591
3592 Added bz2 compression.
3593
3594 Updated for OpenBSD 3.4.
3595
3596 Added a work-around for a missing header file in the
3597 s10_44 Solaris 10 build.
3598
3599 Added support for FreeBSD 5.2-BETA and 5.2-CURRENT.
3600
3601 Updated Linux AX25 support with modifications supplied
3602 by Lutz Poetschulat <[email protected]>.
3603
3604 Added raw IPv6 support to Linux lsof.
3605
3606 Improved handling of parameters after "-i@".
3607
3608 Improved file name test in LTdnlc.c.
3609
3610 Added loop count controls to the reading of Solaris
3611 lock chains. The change was implemented as a result of
3612 a report from Steve Gonczi <[email protected]>.
3613
3614 Based on a report from John Jackson <[email protected]>,
3615 enabled a Solaris 10 <sys/lgrp.h> work-around for
3616 Solaris 9, too. (Patch 112233 installs an lgrp.h on
3617 Solaris 9 that needs the work-around.)
3618
3619 With help from Andrew Brown <[email protected]> and
3620 John Heasley <[email protected]> added log-structured
3621 file system (LFS) support for NetBSD and OpenBSD.
3622
3623 Added AMD64 to the list of FreeBSD 5.x-CURRENT
3624 supported architectures. FreeBSD.org provides a test
3625 system, courtesy of (I believe) David O'Brien
3626 <[email protected]>.
3627
3628 Added a cast to lseek() in the HP-UX /dev/kmem-based
3629 kread() function to make it work properly with the
3630 bundled HP C compiler.
3631
3632 4.71 March 11, 2004
3633 Added text file support to Apple Darwin lsof and
3634 enabled the lsof executable portion of the LTbasic
3635 test. Added support for Darwin kernel queue, POSIX
3636 semaphore and POSIX shared memory files. Tested on
3637 Darwin 7.2 (aka Mac OS 10.3.2).
3638
3639 Added process_kqueue() function prototypes for FreeBSD,
3640 NetBSD and OpenBSD.
3641
3642 Picked some lint in AIX sources, lib/rnmh.c and
3643 tests/LTsock.c.
3644
3645 Added "-x [fl]" cross-over option, which enables +d and
3646 +D processing to cross over symbolic links and|or file
3647 system mount points. Discussion with Johan Lindquist
3648 <[email protected]> and Eric Williams (aka The Ghost
3649 In The Machine) <[email protected]> on Linux news
3650 groups revealed the need for the option.
3651
3652 Updated support for UnixWare 7.1.4.
3653
3654 Added support for the optional reporting of socket
3655 options, socket states and TCP flags for most currently
3656 supported dialects. John Smith <[email protected]>
3657 and Tristan Nefzger <[email protected]> requested the
3658 information. The dialects and their versions for which
3659 this feature has become available include:
3660
3661 AIX 4.3.2 and 5.[12]
3662 Apple Darwin 7.2
3663 BSDI BSD/OS 4.3.1
3664 Digital UNIX and Tru64 UNIX 4.0
3665 FreeBSD 4.9 and 5.2
3666 HP-UX 11 and 11.11 (aka 11i)
3667 NetBSD 1.6ZH
3668 OpenBSD 3.4
3669 OPENSTEP 4.2
3670 OpenUNIX 8
3671 SCO OpenServer Release 5.0.6
3672 Solaris 2.6, 8, 9 and 10
3673 UnixWare 7.1.[134]
3674
3675 Modified the Configure stanza for HP-UX 11 with better
3676 q4 detection. Steve Bonds <[email protected]>
3677 supplied the modification.
3678
3679 Applied a patch from Mike Miscevic <[email protected]>
3680 to enable lsof to compile with the zone support in the
3681 Solaris 10 s10_b51 release. Added information on lsof
3682 zone behavior to 00FAQ.
3683
3684 Added a "-z [z]" option to Solaris 10 lsof. It enables
3685 the listing of zone name and can also be used to select
3686 the listing of processes and their files from specified
3687 zones.
3688
3689 4.72 July 13, 2004
3690 Corrected Solaris 10 ZONE column title display bug with
3691 a patch from Joep Vesseur <[email protected]>. Joep's
3692 fix was offered as a patch to 4.71.
3693
3694 Based on a report from Jean-Pierre Radley <[email protected]>
3695 about an unexpected GNU uname Configure interaction on
3696 OSR, and working from information received from Bela
3697 Lubkin, changed the OSR Configure stanza to use
3698 /bin/uname instead of uname. Added an FAQ entry about
3699 Configure version detection problems.
3700
3701 Added the +m and "+m m" options in response to a dialog
3702 with Robert T. Brown <[email protected]>. The
3703 options allow the creation of a mount table supplement
3704 file which can be used on selected dialects to get
3705 device numbers when stat(2) and lstat(2) can't deliver
3706 them. (That's generally the result of an inaccessible
3707 NFS server.) Currently the new options are supported
3708 only on Linux.
3709
3710 Made cpumask_t typedef _KERNEL compensation for FreeBSD
3711 5.2-CURRENT. Refined it for 5.2.1-RELEASE with testing
3712 help from Scott Ellentuch <[email protected]>.
3713
3714 Added support for FreeBSD 4.10. Larry Rosenman
3715 <[email protected]> kindly provided a test system.
3716
3717 Added support for NetBSD 2.0 with patches supplied by
3718 Andrew Brown <[email protected]>. Andrew also
3719 provided two test systems.
3720
3721 Made handling of Linux maps file more robust, based on
3722 a report from Jan Blunck <[email protected]>. As
3723 a side benefit, made handling of generated stat(2)
3724 information more flexible.
3725
3726 As a result of a discussion with Jason Fortezzo
3727 <[email protected]>, adjusted lsof for Solaris
3728 to obtain the maximum user name length from ut_name of
3729 the utmpx structure, if <utmpx.h> exists.
3730
3731 Tested under OpenBSD 3.5.
3732
3733 Updated 00README information about using gcc (via the
3734 Configure aixgcc abbrevisiation) to compile lsof on
3735 AIX. Ann Janssen <[email protected]> made me aware
3736 the information was out of date.
3737
3738 Added an AIX SIGDANGER handler and some 00FAQ sections
3739 on lsof memory usage after a discussion with Tom Qin
3740 <[email protected]> about lsof memory usage.
3741
3742 Added scripts/sort_res.perl5, contributed by Fabian
3743 Frederick <[email protected]>. The script
3744 displays lsof output sorted by size and path name.
3745
3746 Improved handling of files on Linux NFS mount points
3747 that use the root_squash option, based on discussions
3748 with Paul Szabo <[email protected]>.
3749
3750 Updated FreeBSD 5.2-CURRENT support, based on a problem
3751 report from Filippo Natali <[email protected]>.
3752
3753 Corrected improper FreeeBSD 5.x-CURRENT #if condition,
3754 reported by Kim Culhan <[email protected]>.
3755
3756 Added a Configure script work-around for AIX 5.2 lsof
3757 with JFS2, compiled by gcc >= 3.3. The work-around
3758 was supplied by Florian M. Weps <[email protected]>.
3759
3760 4.73 October 21, 2004
3761 Added an __XPG4_CHAR_CLASS__ #define before
3762 #include'ing <ctype.h> on Solaris to restore lsof's
3763 ability to display special characters such as acute-e.
3764
3765 Added wide-character (e.g., UTF-8) support where
3766 possible, prompted by a request from Kyungjoon Lee
3767 <[email protected]>. Some older dialects -- e.g.,
3768 NetBSD 1.4.1 -- don't support wide characters, so the
3769 wide character support is enabled by definitions in
3770 each dialect's machine.h. Dialects with wide-
3771 character support are listed in 00FAQ.
3772
3773 Make a FreeBSD 5.2-CURRENT adjustment for <sys/pipe.h>,
3774 supplied by Sergey A. Osokin <[email protected]>.
3775
3776 Implemented a Linux feature request made by Jakub
3777 Jelinek <[email protected]> that enhances lsof's ability
3778 to locate UNIX domain sockets whose paths are named as
3779 arguments. Jakub supplied suggested code.
3780
3781 Dropped *claims* that lsof works on AIX below 5.1, SCO
3782 Dropped *claims* that lsof works on AIX below 5.1, SCO
3783 Openserver 5.0.4, Tru64 UNIX 5.0, and UnixWare below
3784 7.1.4. Lsof will probably build and work on those UNIX
3785 dialect versions, but I no longer have any way to test
3786 lsof on them.
3787
3788 Added support for FreeBSD 5.3 and 6.0. The FreeBSD
3789 5.3 support hasn't been tested.
3790
3791 Added FD test code that will allow dialect versions to
3792 test FD option selections. Used the new code in the
3793 PSTAT-based HP-UX lsof to enable it to avoid scanning
3794 the mount table when its information is not needed.
3795 The addition was made in response to a query from
3796 Harvey Garner <[email protected]> about
3797 lsof performance in a busy NFS environment.
3798
3799 Upgraded lsof's AIX support level to AIX 5.3, based on
3800 a report from Dick Dunbar <[email protected]>. (I
3801 have not tested lsof under AIX 5.3.) Based on Dick's
3802 recommendation and local testing changed the C for AIX
3803 version 6 and higher -qmaxmem option value to -1.
3804
3805 Made LSOF_AR environment variable more useful and
3806 documented it in 00XCONFIG.
3807
3808 Corrected the use of sum(1) to generate signatures for
3809 the lsof distribution and binaries to match the
3810 documentation that claims it is sum -r output. Jin
3811 Guojun <[email protected]> noticed and reported the
3812 problem.
3813
3814 Tested under OpenBSD 3.6.
3815
3816 Added checksum and GPG certificate files for the bz2,
3817 gz and Z lsof distribution archives. The new files
3818 reside with the distribution archives and supplement
3819 the signature information already inside the archives.
3820
3821 Validated on Solaris 10, i8xpc, build s10_63.
3822
3823 4.74 January 17, 2005
3824 Fixed a Solaris segment fault bug on systems that lack
3825 a /dev/allkmem device. Offered the fix as a patch to
3826 lsof 4.73. The bug was reported by Donald Zoch
3827 <[email protected]>.
3828
3829 Updated lsof for FreeBSD 6.0 and higher for a change in
3830 <sys/vnode.h>, based on a report from Sergey A. Osokin
3831 <[email protected]>. Made the update available in a 4.74
3832 'A' edition pre-release.
3833
3834 Filed an HP bug report about missing pstat(2) CWD info
3835 for LOFS on HP-UX 11.11 and higher. The missing CWD
3836 info was noticed by Ermin Borovac <[email protected]>.
3837 Added info to 00FAQ about the problem, which can cause
3838 the lsof test suite's LTbasic test to fail.
3839
3840 Updated the q4-generated tcp_s.h in the lsof
3841 distribution and added socket option support for HP-UX
3842 11.00. Erwin Reyns <[email protected]> helped
3843 test.
3844
3845 Updated for Solaris 10, build s10_69, with a patch
3846 supplied by Mike Miscevic <[email protected]>.
3847
3848 Added v_path support to Solaris 10 lsof. That relieves
3849 it of having to read and decode the kernel DNLC, and
3850 delivers full paths more reliably.
3851
3852 Added specialized NFS4 support to Solaris 10 lsof.
3853
3854 Applied Solaris 10 patches to lsof supplied by Casper
3855 Dik <[email protected]>.
3856
3857 Updated lsof for NetBSD 2.99.10 and tested it on a
3858 system provided by Andrew Brown <[email protected]>.
3859
3860 Added support for the FreeBSD 6.0-CURRENT f_vnode
3861 pointer in the file structure.
3862
3863 Added BSDI, FreeBSD, NetBSD and OpenBSD support for the
3864 *effnlink member of the inode structure. This makes
3865 the lsof LTnlink test run faster on all modified
3866 dialects and correctly on OpenBSD.
3867
3868 Added ptyfs support for NetBSD, using modifications
3869 provided by Andrew Brown.
3870
3871 Changed the netbsd Configure stanza to look by default
3872 for system header files in both /usr/include and
3873 /usr/src. (The NETBSD_SYS environment variable can
3874 still be used to select an alternate for /usr/src.)
3875
3876 Corrects two FreeBSD 4.10 RPC/XDR type definitions.
3877
3878 Added an FAQ Q&A about setuid and setgid restrictions
3879 in HP-UX 11.11. The information in the answer was
3880 supplied by Frank Sanders <[email protected]>.
3881
3882 Added abbreviations for AXI FCIO and FSNAPSHOT file
3883 flags. Holger VanKoll <[email protected]>
3884 reported the missing FCIO.
3885
3886 Adjusted lsof's private AIX 64 bit rnode structure for
3887 64 bit AIX 5.2 systems. (IBM doesn't distribute a
3888 correct <nfs/rnode.h> for it.)
3889
3890 Corrected a Linux socket inode printing bug reported by
3891 Igor Schein <[email protected]>.
3892
3893 Updated for FreeBSD 4.11. The support compiles but
3894 hasn't been tested.
3895
3896 Back-ported a FreeBSD 6.0-CURRENT fix to FreeBSD
3897 5.3-RELEASE-p1. That was done to solve a compilation
3898 problem reported by Radko Keves <[email protected]>.
3899
3900 4.75 May 16, 2005
3901 Dropped the *claim* that lsof works on DEC OSF/1 and
3902 Digital UNIX, since my last 4.0 test system has been
3903 removed. The last tested distribution of lsof on DEC OSF/1
3904 and Digital UNIX was revision 4.74. It has been archived
3905 on lsof.itap.purdue.edu in pub/tools/unix/lsof/OLD/src.
3906
3907 Added negation forms to the values in the -g (PGID) and
3908 -p (PID) lists. Negated PGID and PID values, like
3909 negated UID or login name values, are applied without
3910 ORing or ANDing and take effect before any other
3911 selection criteria are applied.
3912
3913 At the request of Marcin Gozdalik <[email protected]>
3914 added a -X option for Linux. The option inhibits the
3915 reading of the /proc/net/tcp* and /proc/net/udp*
3916 files.
3917
3918 Based on a report from David Gutierrez
3919 <[email protected]> changed DEC OSF/1 process table
3920 allocation to request memory in smaller increments.
3921
3922 Based on a report from jayjwa <[email protected]>
3923 updated the Customize script to use "tail -n 1" where
3924 possible.
3925
3926 Enabled support for FreeBSD 5.4.
3927
3928 Improved the BSDI, FreeBSD, NetBSD, OpenBSD and Solaris
3929 kvm_open() and kvm_openfiles() error messages.
3930
3931 Enabled support for NetBSD 2.99.12.
3932
3933 Improved HP-UX Configure stanza with help from Piet
3934 Starreveld <[email protected]>. Picked some lint Piet
3935 found.
3936
3937 Enabled IPv6 support for HP-UX > 11. Piet Starreveld
3938 helped test it on 11.23, among others.
3939
3940 Updated for HP-UX 11.23 on the ia64 architecture.
3941
3942 Updated to latest FreeBSD 6.0-CURRENT, using a test
3943 system provided by Andrzej Tobola <[email protected]>.
3944
3945 Added support for SCO OSR 6.0.0 and UnixWare 7.1.4 with
3946 help from Richard at SCO.
3947
3948 Corrected a Linux bug in NFS handling, reported by Karel Zak
3949 <[email protected]>. Karel supplied a patch.
3950
3951 Improved the code for accessing an AIX 3.2 and higher
3952 sockaddr_un structure, thus eliminating a segmentation
3953 fault possibility.
3954
3955 Updated for AIX 5.3.
3956
3957 Added preliminary (DEBUG) support for the AIX SANFS
3958 file system.
3959
3960 Fixed a bug in the Solaris 10 processing of the vnode's
3961 v_path pointer with code supplied by Edward Jajko
3962 <[email protected]>. The fix was offered as a patch to
3963 4.74.
3964
3965 Dropped support for OpenUNIX 8, since a test system is
3966 no longer available. Archived an OpenUNIX-only
3967 distribution of the last revision (4.74) tested on
3968 OpenUNIX in pub/tools/unix/lsof/OLD/src.
3969
3970 Tested under Openbsd 3.7.
3971
3972 Tested under Darwin 7.7.0.
3973
3974 Enabled building on amd64 Solaris 10 with hints from
3975 Marc Aurele La France <[email protected]>. Marc provided
3976 a test system.
3977
3978 Supplied a missing quote in the FreeBSD Configure
3979 stanza. Carl Cook <[email protected]> reported the
3980 problem.
3981
3982 Removed "-O" option from tests/Makefile so that the
3983 HP-UX bundled compiler won't complain.
3984
3985 4.76 August 30, 2005
3986 Corrected an example and spelling errors in man page.
3987
3988 Updated for Apple Darwin 8.x with changes supplied by
3989 Allan Nathanson <[email protected]>. Allan also provided a
3990 test system.
3991
3992 Completed documentation of CLRLFILEADD in all machine.h
3993 files.
3994
3995 At the request of Chris Markle <[email protected]>
3996 added partial listen queue length to socket options
3997 displayed when -Tf is specified. Partial queue length
3998 is not reported for all dialects. (00FAQ lists the
3999 ones where it is reported.)
4000
4001 Updated for FreeBSD 7.0 with information supplied by
4002 Andrzej Tobola <[email protected]>.
4003
4004 Updated Solaris VxFS support for VxFS versions 4 and
4005 above with technical advice from Craig Harmer
4006 <[email protected]>, Gary Millen
4007 <[email protected]> and Chuck Silvers
4008 <[email protected]>. Testing help was
4009 provided by Michael Antlitz <[email protected]>,
4010 Steve Ginsberg <[email protected]> and Kenneth
4011 Stailey <[email protected]>.
4012
4013 Fixed a Solaris address space map processing bug.
4014 Janardhan Molumuri <[email protected]> reported the
4015 bug and help me identify it. Made the fix available as
4016 a patch to 4.75.
4017
4018 Added support for Solaris 10 port and CTFS files. The
4019 CTFS support is incomplete, because I don't know how
4020 to get inode number, size and link count. (There's
4021 a new 00FAQ entry about that.)
4022
4023 Investigated a report from Christopher J Warweg
4024 <[email protected]> that the CHECKSUMS for the lsof 4.75
4025 binary for 64 bit Solaris 8 was incorrect. It was my
4026 packaging error. I rebuilt and repackaged the binary.
4027
4028 Enabled support for Linux map file names with embedded
4029 spaces.
4030
4031 4.77 April 10, 2006
4032 Added -X option support for Solaris 10 and above. When
4033 -X is specified lsof will report cached v_node path
4034 names for unlinked files, followed by "(deleted)".
4035 Improved cached vnode path name handling by adding
4036 "(?)" to the end of path names of questionable accuracy.
4037 Updated 00FAQ to reflect these changes.
4038
4039 Updated for FreeBSD 7.0-CURRENT.
4040
4041 Fixed name addition spacing bug, reported by Stuart
4042 Anderson <[email protected]>. Also updated
4043 Solaris 10 SAMFS support at Stuart's request.
4044
4045 Added missing "break;" and another HASSTATVFS test to
4046 the NetBSD and OpenBSD dnode.c. Bill Behr
4047 <[email protected]> reported those needs.
4048
4049 Fixed an HP-UX 11 file descriptor "chunk" size problem,
4050 reported by Per Allansson <[email protected]>. Per helped
4051 devise the fix and tested it. This fix was offered as
4052 a patch to lsof 4.76.
4053
4054 Updated for FreeBSD 6.0-STABLE and FreeBSD
4055 6.1-PRERELEASE.
4056
4057 Updated scripts/sort_res.perl5 with changes supplied by
4058 Frederick Fabian <[email protected]>, the
4059 author of the script.
4060
4061 Corrected +|-M man page documentation error, reported
4062 by Roger Cornelius <[email protected]>.
4063
4064 Improved FreeBSD user device random seed generation in
4065 response to a problem report from Danny Braniss
4066 <[email protected]>.
4067
4068 Eliminated three syntax error bugs and other compiler
4069 complaints from the PSTAT-based lsof. H. Merijn Brand
4070 <[email protected]> reported the problems and tested
4071 the fixes.
4072
4073 Eliminated compiler complaints in the test suite.
4074
4075 Investigated problems with the building of lsof on
4076 PA-RISC HP-UX 11.23, based on a report from John
4077 Orndorff <[email protected]>. Found that
4078 neither the HP bundled C compiler nor gcc would build
4079 lsof, but the HP unbundled ANSI C compiler would.
4080 Concluded that HP bundled C compiler can't handle
4081 <gssapi/gssapi.h>. Devised a work-around to gcc's
4082 omission of the rpcent structure definition of
4083 <netdb.h> that allows it to compile lsof's print.c, but
4084 the resulting binary doesn't run reliably. Documented
4085 the situation in 00FAQ.
4086
4087 Changed reporting of unknown file types. The number of
4088 an unknown type is now reported as four octets. The
4089 change was made in response to a Linux lsof bug report
4090 from Karel Zak <[email protected]>.
4091
4092 Dropped the *claim* that lsof works on BSDI BSD/OS
4093 since my last test system has been removed. The last
4094 tested distribution of lsof for BSDI BSD/OS was
4095 revision 4.76. It has been archived on
4096 lsof.itap.purdue.edu in pub/tools/unix/lsof/OLD/src.
4097
4098 As a result of discussing the lsof source tar's MD5
4099 checksum with Andrew Bell <[email protected]>,
4100 changed the description of a suitable MD5 tool in the
4101 lsof distribution's documentation to name the openssl
4102 "dgst" command.
4103
4104 Enabled compilation on Solaris 10 1/06 with a fix sent
4105 by Jason Fortezzo <[email protected]>. Made
4106 the fix available as a patch to 4.76.
4107
4108 Adjusted to FreeBSD 5.5-PRERELEASE.
4109
4110 Corrected a bug in the lsof library's process_file()
4111 function to enable the locating of AIX XTI sockets by
4112 their TCP/IP address values. The bug was reported by
4113 Michel Dubois <[email protected]>.
4114
4115 Based on a bug report from Karel Zak <[email protected]>
4116 added command name length checking to as many dialects
4117 as possible (Linux for Karel) for the "-c c" option.
4118
4119 Updated for OpenBSD 3.[89]. Tested the 3.9 update on a
4120 system provided by David Mazieres. I have not tested
4121 on OpenBSD 3.8, but David reports lsof 4.76 worked
4122 there.
4123
4124 Ended regression testing of lsof on 32 bit Solaris 8
4125 with the ending of access to a test system. Lsof
4126 continues to be tested on 64 bit Solaris 8.
4127
4128 4.78 April 24, 2007
4129 Added more information to the lsof FAQ about missing
4130 link counts and sizes on Linux files.
4131
4132 Simplified Linux stat() and lstat() usage.
4133
4134 Relocated #define's that prevent OpenBSD compilation on
4135 systems without a /proc file system. Pieter Bowman
4136 <[email protected]> reported the problem.
4137
4138 Added code to avoid processing Linux /proc/<PID>/maps
4139 file entries with zero device and node numbers. Some
4140 such entries now have names associated with them that
4141 are not path names -- e.g., "[heap]", "[stack]" or
4142 "[vdso]". Scott Worley <[email protected]> reported
4143 lsof's mishandling of such entries.
4144
4145 Added SELinux security context support, provided by
4146 James Antill <[email protected]>. I have not
4147 tested this, but James and Karel Zak <[email protected]>
4148 have.
4149
4150 Added the #include of <sys/types.h> to Solaris lsof to
4151 enabled compilation on Solaris 10 6/06. Peter Harvey
4152 [email protected] diagnosed the problem and supplied
4153 a patch.
4154
4155 Added better support for JFS2 on AIX 5.2 and 5.3, based
4156 on bug reports and help from Thomas Braunbeck
4157 <[email protected]> and Tom Whitty <[email protected]>.
4158
4159 Documented that lsof supports AIX 5.3 only up through
4160 maintenance level 1 (ML1).
4161
4162 Enabled Solaris lsof to locate the AFS vnode operation
4163 address for OpenAFS 1.4.1. The fix was supplied by
4164 Robert Jelinek <[email protected]>.
4165
4166 Enabled support for Solaris 10 ZFS. If the necessary
4167 ZFS header files aren't found, lsof offers the option
4168 to drop ZFS support, to use internal, possibly
4169 inaccurate structure definitions, or to supply a path
4170 to the missing header files. Horst Scheuermann
4171 <[email protected]> provided a development
4172 system and helped test the support.
4173
4174 Corrected a typo in the man page, reported by Eric S.
4175 Raymond <[email protected]>.
4176
4177 Changed the spelling of macroes to macros in lsof
4178 source and documentations files, based on a suggestion
4179 from Josh Soref <[email protected]> and verification
4180 with the OED.
4181
4182 The following dialects are no longer supported: 32 bit
4183 AIX 5.2, HP-UX 11, OpenStep 4.2, Solaris 2.6, Solaris
4184 8, True Unix 64 and UnixWare 7.1.4. Lsof may work on
4185 them, but I no longer have test systems for them.
4186 Support for OpenBSD ends at its version 3.9 for lack of
4187 interest in the port.
4188
4189 4.79 April 15, 2008
4190
4191 **************** IMPORTANT NOTE ******************
4192 * *
4193 * Lsof support has been reduced to the following *
4194 * dialects: AIX, FreeBSD, Linux and Solaris, and *
4195 * only in selected versions of those dialects. *
4196 * The selected versions are listed in this file *
4197 * and in other lsof documentation. *
4198 * *
4199 * I have made this move because of retirement *
4200 * and because I no longer have many test systems *
4201 * available to me. *
4202 * *
4203 * Vic Abell *
4204 * *
4205 **************************************************
4206
4207 Fixed a Solaris VXFS permission problem when accessing
4208 the VXFS inode offsets. The bug was reported by
4209 Gregory A. Ivanov <[email protected]>. Gregory tested the
4210 fix.
4211
4212 Moved an #include <string.h> later in FreeBSD dlsof.h
4213 to enable compilation on recent FreeBSD releases. The
4214 change was supplied by Roy Marples <[email protected]>.
4215
4216 Improved Linux /proc file stream reading speed by applying
4217 an expanded version of a patch from Eric Dumazet
4218 <[email protected]> that allocates a page size buffer
4219 to each stream. Improved TCP, TCP6, UDP and UDP6 hashing
4220 by determining the hash bucket count from the /proc/net
4221 sockstat and sockstat6 files. The improvement was
4222 suggested by Eric and he provided sample code. Eric also
4223 tested both improvements.
4224
4225 Modified Configure script to build lsof on FreeBSD
4226 6.2. Tested it on a system provided by Larry Rosenman
4227 <[email protected]>.
4228
4229 Fixed a Linux maps file processing bug that prevented path
4230 names from having an embedded colon. James Lingard
4231 <[email protected]> reported the bug and helped with its
4232 fix.
4233
4234 Based on reports from Eric Dumazet and Samuel Thibault
4235 <[email protected]> added support for the
4236 Linux 2.6.22 kernel's /proc/<PID>/fdinfo files -- i.e.,
4237 file offset and flags. Samuel Thibault provided a test
4238 system.
4239
4240 Fixed a Linux UNIX socket memory leak, reported by
4241 Philip Shin <[email protected]>. Phillip supplied the
4242 fix.
4243
4244 With generous assistance from HP added support for an HP-UX
4245 11.23 patch that makes TLI/XTI socket address information
4246 available.
4247
4248 Fixed a header file problem for FreeBSD 6.2 on the Alpha
4249 architecture. The problem was reported by Pekka Honkanen
4250 <[email protected]>. Pekka tested the fix.
4251
4252 Based on a report and using suggested fixes from Karel Zak
4253 <[email protected]>, made these changes to Linux lsof: corrected
4254 a getpidcon() error message; insured that inode numbers are
4255 handled correctly for their unsigned long long type; and
4256 improved SELinux handling. At the request of Alon Bar-Lev
4257 <[email protected]> added the LINUX_HASSELINUX environment
4258 variable to enable or inhibit SElinux support unconditionally.
4259
4260 Updated Configure for FreeBSD 8.0-CURRENT and tested lsof on
4261 AMD64 there.
4262
4263 Added a patch provided by Oles Hnatkevych
4264 <[email protected]> for FreeBSD systems where the root
4265 file system is on a CD9660 device.
4266
4267 Added compensation for the disappearance of FMARK and FDEFER
4268 from the FreeBSD 8.0-CURRENT <sys/file.h>.
4269
4270 Updated FreeBSD lsof with ZFS support. Larry Rosenman
4271 <[email protected]>, Erwin Lansing <[email protected]>, Wesley
4272 Shields <[email protected]> and Dmitry Morozovsky
4273 <[email protected]> provided test systems.
4274
4275 Fixed a socket file identification problem reported by
4276 Pavol Rusnak <[email protected]>. Pavol also reported the
4277 cause of the problem.
4278
4279 Added the ability to format the repeat mode marker line
4280 with strftime(3), where the dialect supports the
4281 localtime(3) and strftime(3) C library functions. The
4282 addition was suggested by Mike Depot <[email protected]>,
4283 who also tested it. The addition required creating a new
4284 main lsof source module, util.c, that contains functions
4285 whose compilation conflicts with the general header file
4286 tree defined by lsof.h and dlsof.h.
4287
4288 Based on reports from Andrei V. Lavreniyuk
4289 <[email protected]> and Pav Lucistnik
4290 <[email protected]> updated the FreeBSD 7.0 and above
4291 file lock handling to use new locking structures. The
4292 update requires a terrible hack to get a definition for
4293 the lock owner structure from a kernel source module
4294 into a local lsof header file.
4295
4296 4.80 May 12, 2008
4297 Updated for a FreeBSD 7.0 and above byte level locking
4298 change. The problem was reported by Conrad J. Sabatier
4299 <[email protected]>, who helped test the update. Wesley
4300 Shields <[email protected]> provided an 8.0-CURRENT test
4301 system.
4302
4303 Propagated the FreeBSD 7.0 and above locking changes to
4304 FreeBSD 6.x, based on a report from Edwin Groothuis
4305 <[email protected]>.
4306
4307 Added warnings for unsupported dialects or versions.
4308
4309 Added Linux support for the UDPLITE protocol. Eric
4310 Dumazet <[email protected]> supplied a patch.
4311
4312 Added a missing quote to the Configure script's
4313 FreeBSD stanza.
4314
4315 Added a usage.o rule to the HP-UX PSTAT-based
4316 Makefile. I mistakenly deleted the rule at revision
4317 4.79. The missing rule was reported by Kawaljeet Kaur
4318 <[email protected]> who tested the corrected
4319 Makefile.
4320
4321 4.81 October 21, 2008
4322 Updated the Darwin libproc sources with changes from
4323 Allan Nathanson <[email protected]>. Tested them on a iMac
4324 mini, provided by Apple Inc.
4325
4326 Changed dummy declarations in library source files to
4327 eliminate complaints about unused variables and empty
4328 object files. This change may not work on dialects I
4329 can no longer test; it has been tested on some versions
4330 of AIX, Darwin, FreeBSD, Linux and Solaris.
4331
4332 At the request of Hal Brooks <[email protected]> added support
4333 for Linux /proc/net/packet files. Hal tested it.
4334
4335 Added socket file only performance enhancements to Linux
4336 and PSTAT-based HPUX lsof.
4337
4338 Added htonl call around improper usage of INADDR_LOOPBACK;
4339 report from an Apple engineer forwarded by Allan Nathanson
4340 <[email protected]>.
4341
4342 Adjusted for FreeBSD-8.0 change in device number handling.
4343 The adjustment should work for FreeBSD 5 and above, should
4344 the 8.0 change be propagated downward. The problem was
4345 reported by Pav Lucistnik <[email protected]>. An updated
4346 test system was provided by Erwin Lansing <[email protected]>.
4347
4348 Reduced AIX support to version 5.3, since test systems with
4349 older versions are no longer available to me.
4350
4351 At the request of Marjo F. Mercado <[email protected]>
4352 and Phil Shin <[email protected]> applied some speed
4353 improvements to lsof, particularly when the files of
4354 interest are /Internet files -- i.e., selected with lsof's
4355 "-i" option. Added a two new options to assist the
4356 improvements: 1) "-c^<command>" to tell lsof to exclude the
4357 named command(s); and 2) "-stcp|ud>:[^]state' to tell lsof
4358 to include in its reporting or exclude ('^') from its
4359 reporting Internet files in the named states (e.g., LISTEN,
4360 ^CLOSE_WAIT, IDLE, etc.) For the most part these changes
4361 apply only to AIX, Darwin, FreeBSD, PSTAT-based HP-UX, Linux
4362 and Solaris, since those are the only places I could test
4363 them. They are controlled by the HASTCPUDPSTATE definition
4364 in each dialect's machine.h header file. Marjo and Phil
4365 provided HP-UX 11.23 and 11.31 test systems.
4366
4367 Fixed a stat(2) problem on HP-UX 11.31 while testing the
4368 speed improvements.
4369
4370 Adjusted for kernel header file changes in FreeBSD
4371 8.0-CURRENT. Larry Rosenman <[email protected]> provided
4372 a test system.
4373
4374 Added a warning for Solaris systems where VxFS node info
4375 can't be obtained from the VxFS utility library. The
4376 warning was requested by Tom Matthews <[email protected]>.
4377
4378 Corrected mishandling of file system path name arguments
4379 that have trailing slashes, except, of course, the root
4380 file system, "/". Allan Nathanson <[email protected]> reported
4381 the bug.
4382
4383 4.82 March 25, 2009
4384 Corrected an over-zealous exclusion test that caused
4385 lsof to report nothing when it was given no arguments
4386 and built with HASSECURITY and HASNOSOCKSECURITY enabled.
4387 Joshua Kinard <[email protected]> reported the bug and
4388 supplied information for reproducing it.
4389
4390 Based on a report from Dan Trinkle <[email protected]>
4391 corrected use of <sys/utsname.h> for 32 bit Solaris 10
4392 and above compilations. Simultaneously eliminated a
4393 casting complaint in arg.c and updated Configure to use
4394 the appropriate 64 bit compilation option (-xarch=v9 or
4395 -m64) with the Solaris Sun C compiler.
4396
4397 Updated for FreeBSD 7.1-PRERELEASE with information
4398 supplied by Larry Rosenman <[email protected]>.
4399
4400 Updated the Darwin libproc sources with changes from
4401 Allan Nathanson <[email protected]>. Tested them on a iMac
4402 mini, provided by Apple Inc. Allan also provided man
4403 page corrections.
4404
4405 Updated the FreeBSD Makefile to use the ${MAKE} variable
4406 for ZFS dnode2.c module compilation, based on a suggestion
4407 from Alexis Ballier <[email protected]>.
4408
4409 Improved the Solaris VxFS library location test, based on a
4410 suggestion from Jason Fortezzo <[email protected]>.
4411 Jason tested the change.
4412
4413 Updated Solaris 10 ZFS support for ZFS version 4 and ZFS
4414 pool version 10, using a test system kindly provided by
4415 Vladislav Nespor <[email protected]>. Renata
4416 Maria Dart <[email protected]> tested on ZFS
4417 version 4, verifying that the update works there, too.
4418 (ZFS pool version 10 is apparently the ZFS version shipped
4419 with the 10/08 update to Solaris. The original ZFS
4420 support targeted ZFS version 3.)
4421
4422 I still consider ZFS support in Solaris lsof a hack,
4423 because it depends on a znode structure definition that
4424 I developed using dbx. Sun is remiss in not distributing
4425 the ZFS header files used to build the distributed kernel.
4426
4427 Because of the znode structure definition hack, I can't
4428 guarantee that lsof ZFS support will work for any other
4429 versions of ZFS.
4430
4431 Solaris 10: adjusted to a change in the way devices are
4432 stored in the kernel; fixed a problem in zone handling;
4433 and added rudimentary sharedfs support. Carson Gaspar
4434 <[email protected]> reported the device number problem,
4435 provided a test system, and tested the changes. Peter
4436 Vines <[email protected]> reported the zone
4437 handling problem and tested the fix.
4438
4439 Adapted to FreeBSD 8.0-CURRENT changes in device number
4440 computation. Problem was reported by Erwin Lansing
4441 <[email protected]>. Larry Rosenman <[email protected]>
4442 provided a test system.
4443
4444 Corrected Solaris Configure test for appropriate VxFS
4445 library when using gcc to compile lsof.
4446
4447 Updated for loss of KAME IPv6 FreeBSD accommodations.
4448
4449 Adapted to FreeBSD 7.2. Made Configure script recognized
4450 FreeBSD 6.3.
4451
4452 4.83 January 18, 2010
4453 Converted Solaris 10 and above ZFS support to use the CTF
4454 debugger library, libctf. Code was supplied by Robert
4455 Byrnes <[email protected]>.
4456
4457 Corrected a typo in the testing of the LINUX_HASSELINUX
4458 environment variable in the Configure script. The error
4459 was reported by Mike Frysinger <[email protected]>.
4460 At Mike's request made Configure script accept LSOF_RANLIB
4461 (ranlib command), LSOF_CFGF (additional configuration flags)
4462 and LSOF_CFGL (additional library specifications) from the
4463 environment.
4464
4465 Enabled complilation of Solaris 10 lsof after a recent Sun
4466 patch which changed the PC file system's structure. Peter
4467 Vernam <[email protected]> reported the problem and helped
4468 with the fix.
4469
4470 Made the sort of configuration CFLAGS in the CkTestDB
4471 script impervious to locale settings.
4472
4473 Ported to Solaris 11, using a test system kindly provided
4474 by David Day <[email protected]>.
4475
4476 Adjusted to the disappearance of <nfs/rpcv2.h> in FreeBSD
4477 8.0-BETA1.
4478
4479 Changed Solaris node type lookup to a hashed method and
4480 added some ability for it to handle duplicate vnodeop names
4481 in /dev/ksyms.
4482
4483 Updated for FreeBSD 9.0-CURRENT. Andrzej Tobola
4484 <[email protected]> provided a test system. Extends the
4485 fix to FreeBSD 6.0 and above via a Configure test and a
4486 compile-time definition. The need for the extension was
4487 reported by Erik Trulsson <[email protected]>>
4488
4489 Made corrections to FAQ typographical errors, suggested
4490 by Josh Soref <[email protected]>.
4491
4492 Added __UCLIBC__ test to Linux dlsof.h so lsof would compile
4493 on an Intel ARM XScale processor. The addition was provided
4494 by Doug Kehn <[email protected]>.
4495
4496 Added test for <utmpx.h> to FreeBSD configuration. Improved
4497 its use in lsof.h. The changes were supplied by Martin Wilke
4498 <[email protected]>.
4499
4500 4.84 July 29, 2010
4501 Fixed a man page nroff command error with a correction
4502 supplied by Josh Soref <[email protected]>.
4503
4504 Made Configure script recognize FreeBSD 7.3. Larry Rosenman
4505 <[email protected]> provided a test system.
4506
4507 Improved task support, initially for Linux only, with help
4508 provided by Jerome Marchand <[email protected]> and
4509 Miklos Szeredi <[email protected]>. The support includes a
4510 new compile-time definition, HASTASKS, and a new run time
4511 option, "-K" to select task reporting.
4512
4513 While adding help output support for "-K", reorganized the
4514 printing of help columns to make it much easier to add a new
4515 option description.
4516
4517 Updated the Solaris PC file system structure patch in
4518 revision 4.83 so it will compile with gcc.
4519
4520 Disabled the Solaris lgrp_root work-around in the Solaris
4521 machine.h so it won't cause compilation problems on Solaris
4522 11. It no longer causes compilation problems on my Solaris
4523 9 and 10 test systems, but some older Solaris 9 and 10
4524 versions may still need it, so the work-around was left in
4525 the Sun machine.h and a FAQ entry was created about it.
4526
4527 Updated for Solaris 11 b134, using a test system kindly
4528 provided by Carson Gaspar <[email protected]>. Made
4529 provisions for the next ZFS version. Added info about
4530 the failure of the LTnlink test on ZFS file systems.
4531
4532 Corrected typo in Configure script, reported by Dmitry
4533 Berezin <[email protected]>.
4534
4535 4.85 September 27, 2011
4536 John Dzubera <[email protected]> kindly provided a patched
4537 Solaris 9 test system with the lgrp_root conflict and I was
4538 able to devise an automatic work-around for the conflict. The
4539 special note in .../dialects/sun/machine.h was removed and
4540 the 17.28.1 FAQ entry was modified to reflect the update.
4541
4542 Added a Solaris 11 work-around for a typedef problem with
4543 <sys/mutex.h>. Carson Gaspar <[email protected]> reported
4544 the problem and supplied the work-around.
4545
4546 Added support for FreeBSD 7.4 and 8.2; tested on systems
4547 provided by Larry Rosenman <[email protected]>.
4548
4549 Added support for 32 bit Solaris 11 lsof with mods supplied
4550 by Jan Wortelboer <[email protected]>.
4551
4552 Added Solaris 11 support for using an alternate genunix
4553 location. Bill Goodridge <[email protected]>
4554 reported the alternate location.
4555
4556 Added further Linux cross configuration support to lsof's
4557 Configure script. The additional support was supplied by
4558 Grant Erickson <[email protected]>. See the descriptions of
4559 the LINUX_* environmen variables in 00XCONFIG for more
4560 information. Tested lsof on Linux kernel 2.6.32 and picked
4561 some lint that surfaced during the test.
4562
4563 Added fixes and changes for Apple Mac OS X 10.6, provided by
4564 Allan Nathanson <[email protected]>. Allan also provided a test
4565 system.
4566
4567 Tested on FreeBSD 6.4 i386, using a test system provided by
4568 Terry Kennedy <[email protected]>. Updated for recent FreeBSD ZFS
4569 changes on an 8.2 amd64 test system also provided by Terry.
4570
4571 Changed documentation to indicate FreeBSD 7.x is no longer
4572 supported, since I no longer have a test system.
4573
4574 Made some changes to the lsof man page, suggested by Navid
4575 <[email protected]>.
4576
4577 Added compensation for Solaris 10 systems that have patch
4578 144488-10. The patch requires that the new header file
4579 <sys/socket_proto.h> be included while _KERNEL is defined.
4580 Brett Bartick <[email protected]> reported the problem
4581 first, followed by Stuart Anderson <[email protected]>.
4582 Michael Hocke <[email protected]> suggested a work-around
4583 which I refined to limit it to the specific Solaris 10 instance
4584 and then tested on a system provided by Charles Stephens
4585 <[email protected]>
4586
4587 Added the +|-e option for Linux. It exempts file systems
4588 named by path from function calls that might block in the
4589 kernel -- i.e., stat(2) and lstat(2), and when the +e form
4590 is used, readlink (2). The new packager of lsof for the
4591 Linux Fedora and RHEL distributions, Peter Schiffer
4592 <[email protected]>, asked for the feature so it could
4593 be used with Clearcase file systems, whose implementation
4594 can block stat(2) calls. I consider this feature very risky
4595 and easy to misuse -- e.g., specifying the file system as
4596 '/' would exempt all file systems. I don't intend to
4597 propagate this option to any other UNIX dialect that lsof
4598 currently supports.
4599
4600 Made FreeBSD 9 adjustment.
4601
4602 Fixed a Linux bug that prevented the display of paths for
4603 abstract UNIX sockets. Masatake Yamato <[email protected]>
4604 reported the bug and supplied a patch.
4605
4606 Added compensation for the removal of RPC header files from
4607 GlibC 2.14 for Linux. Marek Behun <[email protected]>
4608 reported the problem and supplied a patch.
4609
4610 Added support for Linux Netlink protocol. Masatake Yamato
4611 requested the support and supplied a patch. Peter Schiffer
4612 <[email protected]> provided a test system.
4613
4614 Corrected Linux UDP6-lite path. The error was reported by
4615 Masatake Yamato and he also supplied a patch.
4616
4617 4.86 April 10, 2012
4618 Lsof for AIX is no longer supported on any versions of that
4619 operating system.
4620
4621 Added information about the clang compiler for FreeBSD to the
4622 FAQ.
4623
4624 Corrected an arg.c bug in the accumulation of +|-e option
4625 values, reported by Peter Schiffer <[email protected]>.
4626 This correction was supplied as a patch to revision 4.85.
4627
4628 Enabled FreeBSD 10 support and tested it there on a system
4629 provided by Larry Rosenman <[email protected]>.
4630
4631 Updated for latest Solaris 11 with patches supplied by
4632 Carson Gaspar <[email protected]>. Carson supplied a test
4633 system.
4634
4635 Adjusted Linux file system search method to compensate for
4636 NFS mounts that have duplicate device numbers. The problem
4637 was reported by Peter Schiffer <[email protected]>, who
4638 provided a test system.
4639
4640 At the request of Peter Schiffer <[email protected]>, added
4641 support for Linux SCTP socket files. Peter provided a test
4642 system. Applied a warning patch supplied by Peter.
4643
4644 Added support for Mac OS X 10.7 (Lion), provided by Allan
4645 Nathanson <[email protected]>. Allan also supplied a test
4646 system.
4647
4648 Enabled FreeBSD 8.3 support and tested it there on a system
4649 provided by Larry Rosenman <[email protected]>.
4650
4651 Corrected the FAQ information on ZFS with Solaris 10 after
4652 Steven Blackmon <[email protected]> and Prasad Jampala
4653 <[email protected]> pointed out that it was incorrect --
4654 i.e., outdated by the libctf changes at revision 4.83.
4655
4656 Added code to handle a Linux NFS-mounted root. Jia He
4657 <[email protected]> reported the need for this.
4658
4659 4.87 January 2, 2013
4660 Added an entry to 00FAQ about lsof behavior when the
4661 HASSECURITY and HASNOSOCKSECURITY options are defined.
4662 Carson Gaspar <[email protected]> pointed out the need
4663 for this clarification.
4664
4665 Added a work-around for a missing definition of mach_port_t
4666 in Darwin 9 (Mac OS/X 10.5.8). The work-around was supplied
4667 by Jim Reid <[email protected]>.
4668
4669 Added support for Linux anon_inodefs, provided by Masatake
4670 YAMATO <[email protected]>.
4671
4672 Documented a Solaris 9 and 10 portmap reporting problem
4673 (+M) in 00FAQ. The problem was reported by Clint
4674 Roberts <[email protected]>. I have no solution
4675 to the problem, but discuss a possible work-around in
4676 the answer to this 00FAQ question: "Why doesn't lsof
4677 report portmap registrations for some Solaris versions?"
4678
4679 Added FreeBSD support for the oldnfs and newnfs file system
4680 types. Daniel Braniss <[email protected]> reported the
4681 need for the addition.
4682
4683 Added ICMP socket support for Linux with code provided by
4684 Masatake YAMATO <[email protected]>.
4685
4686 Corrected the reporting of process group ID for libproc
4687 versions of Mac OS X with a patch from Jeff Trawick
4688 <[email protected]>. The patch has not been applied to
4689 Darwin kmem versions, because of little call for them
4690 and inadequate test system access. The patch has been
4691 tested on Mac OS X 10.8 (Mountain Lion), courtesy of a
4692 test system provided by Allan Nathanson <[email protected]>.
4693
4694 Added thread support to those FreeBSD versions that have
4695 ki_numthreads in their kinfo_proc structure. This also
4696 activates the -K option for those FreeBSD versions. Jeff
4697 Trawick reported problems with FreeBSD lsof when threads
4698 are present and this addition solves those problems.
4699
4700 Made changes to 00FAQ and the distribution, suggested by
4701 Warren Young <[email protected]>. The 00FAQ changes
4702 center on sections that discuss the -s option. The changes
4703 to the distribution include a ChangeLog file that is either
4704 a pointer to or a copy of 00DIST, the distribution notes.
4705
4706 Added support to FreeBSD for using the clang compiler.
4707
4708 Added Linux support for using the getxattr() call to obtain
4709 socket protocol identification when it is can't be obtained
4710 from the /proc/net files that lsof examines. Masatake YAMATO
4711 <[email protected]> developed the kernel patch to getxattr()
4712 and supplied the lsof patch.
4713
4714 4.88 October 13, 2014
4715 Reduced to 50 the number of open file descriptors lsof
4716 attempts to close while trying to protect itself from a
4717 file descriptor exec() attack. This limits the overhead
4718 lsof incurs on systems that have large file descriptor
4719 limits, yet provides sufficient open descriptors for the
4720 library functions lsof calls.
4721
4722 Updated for changes in FreeBSD 10 with advice from Eygene
4723 Ryabinkin <[email protected]>. Taught Configure to recognize
4724 FreeBSD 8.4.
4725
4726 Herein am noting that lsof for Solaris 10 or 11 is no longer
4727 supported. I no longer have test systems. Some support is
4728 still available from Casper Dik <[email protected]> and a
4729 Solaris 11 patch he provided is included in this revision.
4730
4731 Initialized local variables in the Linux process_id() function.
4732 Jia He <[email protected]> reported the problem.
4733
4734 Added support for FreeBSD 11.
4735
4736 Updated FreeBSD ZFS Configure stanza to supply a dummy
4737 opt_kdtrace.h when needed.
4738
4739 Added tmpfs file system support for FreeBSD.
4740
4741 Since a test system is no longer available, dropped the
4742 claim of FreeBSD 4.9 support.
4743
4744 Added the +|-E options for Linux. -E displays endpoint info;
4745 +E displays endpoint info and endpopint files. Masatake YAMATO
4746 <[email protected]> requested this support and suggested code
4747 to implement it.
4748
4749 Fixed a Linux bug handling processes whose command includes a
4750 non-printing character, particularly a NEWLINE character, and
4751 clarified printing of single '\\' characters in command and
4752 file names. Stephane Chazelas <[email protected]>
4753 reported the problem.
4754
4755 Added support for Linux RDMA and CRYPTO protocol names and UNIX
4756 socket type with code from Masatake YAMATO <[email protected]>.
4757
4758 Fixed field output to insure that the field descriptor field is
4759 always selected, since it identifies the file set. The bug was
4760 reported by Gary Plewa <[email protected]>.
4761
4762 4.89 July 7, 2015
4763 Applied correction from Casper Dik <[email protected]> to
4764 his patch for Solaris 11 that I applied incorrectly in revision
4765 4.88.
4766
4767 Updated for latest version of FreeBSD 11.0-CURRENT.
4768
4769 Compensated for a missing FreeBSD 10.0 typedef of bool on the
4770 i386 architecture. Allen Hewes <[email protected]> provided
4771 a test system. Andrey Chernov <[email protected]> provided
4772 useful advice.
4773
4774 Improved tests/Add2TestDB script with a patch from Peter
4775 Schiffer <[email protected]>. Added patches from Peter to
4776 eliminate Linux gcc warnings. Updated Lsof.8 with improvements
4777 supplied by Bjarni Ingi Gislason <[email protected]>.
4778
4779 Changed FreeBSD global CFLAGS extraction per Terry Kennedy
4780 <[email protected]>. Also made sure -DNEEDS_BOOL_TYPEDEF is
4781 #define'd when the resulting CFLAGS doesn't contain it. Terry
4782 reported that need.
4783
4784 Improved Linux test for tcp.h in response to a report from
4785 Cato Auestad <[email protected]>. Cato did the testing.
4786
4787 Fixed Linux UNIX socket search by name bug reported by
4788 Stephane Chazelas <[email protected]>.
4789
4790 Added Linux display of UNIX socket endpoint information with
4791 code provided by Masatake YAMATO <[email protected]>. Peter
4792 Schiffer <[email protected]> provided a test system.
4793
4794 Insured that type definitions from <vm/vm.h> were again made
4795 visible to lsof on FreeBSD 11 after a system header file change
4796 hid them.
4797
4798 4.90 February 14, 2018
4799
4800 !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4801 ! !
4802 ! It is likely that this is the last lsof revision I !
4803 ! will issue, unless serious bugs are detected, Stay !
4804 ! tuned to lsof-l for information about future support !
4805 ! of lsof. !
4806 ! !
4807 ! I thank all the many contributors to lsof over the !
4808 ! many years (20+?) I have been distributing lsof !
4809 ! versions 1, 2, 3 and 4. !
4810 ! !
4811 ! Vic Abell <[email protected]> !
4812 ! !
4813 !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4814
4815 Taught the Configure script to create a dummy opt_random.h
4816 for FreeBSD systems whose <sys/random.h> includes it.
4817
4818 Added support for the FreeBSD ZFUSE file system.
4819
4820 Corrected the quoting in a Darwin putchar() statement in the
4821 dfile.c source file. Andrew Janke <[email protected]> reported
4822 my error.
4823
4824 Added support for the FreeBSD DTYPE_PTS file descriptor and
4825 for unknown descriptors that reference the kernel's badfileops
4826 operation switch. Enabled FreeBSD 12.0 support. Tested the
4827 changes on systems provided by Larry Rosenman <[email protected]>.
4828
4829 Enhanced -K option with the form "-K i" to direct lsof to
4830 (i)gnore tasks. A query from Rachel Kroll <[email protected]>
4831 suggested this option. Linux task reports now include both
4832 process and task command names, making lsof's "-c <name>"
4833 option work correctly.
4834
4835 Added a patch to prevent NFS blocking in Linux supplied by
4836 Kristyna Streitova <[email protected]>.
4837
4838 Installed a FreeBSD patch that prevents examining a TCP state
4839 structure during a race condition. The patch was supplied by
4840 Bryan Drewery <[email protected]>.
4841
4842 Updated FreeBSD for new UFS inode structure that lacks an i_dev
4843 member in the most recent 12.0-CURRENT. Larry Rosenman
4844 <[email protected]> reported the problem and provided a test
4845 system.
4846
4847 Added "#define KLD_MODULE" to dlsof.h and dnode2.c to prevent
4848 <machine/cpuconf.h> from generating an "ARM_NARCH is 0" error.
4849 This is needed so lsof can access kernel structures. Larry
4850 Rosenman supplied the addition.
4851
4852 Added recognition of the FreeBSD 11 file system name "nullfs".
4853 Jamie Landeg-Jones <[email protected]> supplied the fix.
4854
4855 Added a patch from Larry Rosenman <[email protected]> that is
4856 needed on FreeBSD 12 so the lsof compilation can obtain the
4857 inpcb and tcpcb structures from their respective header files.
4858
4859 Updated FreeBSD dmnt.c for the ino64 changes.
4860
4861 Inserted a patch for Solaris 12.x to avoid compilation errors
4862 from <sys/aio_req.h>, based on information provided by Jorn
4863 Clausen <[email protected]>. Jorn tested the
4864 patch.
4865
4866 Added performance enhancement that uses the FreeBSD closefrom()
4867 and dup2() C library functions when available. The enhancement
4868 was supplied by Conrad Meyer <[email protected]>.
4869
4870 Corrected FreeBSD lsof's gathering of ZFS file device numbers.
4871
4872 Updated lsof test library for FreeBSD.
4873
4874 Updated socket optons information collection from the socket
4875 structure per changes supplied by Gleb Smirnoff
4876 <[email protected]>.
4877
4878 Added patch to dlsof.h that avoids a _KERNEL conflict with
4879 bzero. Mateusz Guzik <[email protected]> supplied the patch.
4880
4881 Corrected test library to handle 64 bit FreeBSD device numbers.
4882
4883 Added #defines for FreeBSD 12, src r324225, from Gleb Smirnoff
4884 <[email protected]>.
4885
4886 Incorporated Linux pseudoterminal endpoint processing (+|-E)
4887 provided by Masatake YAMATO <[email protected]> with access to
4888 test systems provided by Peter Schiffer <[email protected]>.
4889
4890 Corrected Linux command extraction for commands that include
4891 parentheses -- e.g., "(sd-pam)".
4892
4893 4.91 March 26, 2018
4894
4895 A bug has been reported in the PTY endpoint processing of
4896 Linux lsof 4.90 by Peter Wu <[email protected]>, making it
4897 necessary for me to release another revision of lsof.
4898
4899 This revision applies two fixes that correct the Linux PTY
4900 endpoint processing bug. Masatake YAMATO <[email protected]>
4901 supplied the fixes.
4902
4903 4.92 July 14, 2018
4904 THIS IS A FREEBSD-ONLY DISTRIBUTION!
4905
4906 Fixes Configure script section that creates the FreeBSD
4907 lockf_owner.h header file; fixes <string.h> conflicts with
4908 FreeBSD kernel header files. Mateusz Gusik supplied part of
4909 the fix.
4910
4911 Released lsof to GitHub with Purdue releases documented in
4912 support/GitHub-release.
4913
4914
4915 4.92.1 May 6, 2019
4916
4917 !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4918 ! !
4919 ! The maintainership is switched from Vic to lsof-org !
4920 ! at GitHub team officially. !
4921 ! We thank Vic for working on lsof over the years. !
4922 ! !
4923 ! lsof-org at GitHub team (https://github.com/lsof-org) !
4924 !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4925
4926 This is just for testing "Release" feature of GitHub.
4927 Many documentations are not updated yet.
4928 URLs in -v output and -h output are updated.
4929
4930 4.93.0 May 7, 2019
4931
4932 [freebsd] Made FreeBSD 13 adjustment.
4933 [darwin] Fix a typo causing a build error.
4934 Fix a potential memory leak.
4935 [linux] use tirpc for rpc if libc doesn't provide rpc.h.
4936 Fix a typo in man page.
4937 [linux] fix memory leaks detected by valgrind about unix
4938 endpoint information.
4939 Update the description about -fg and -fG options on linux.
4940
4941 4.93.1 May 7, 2019
4942
4943 Fix a broken symbolic link.
4944
4945 4.93.2 May 8, 2019
4946
4947 Update the version number embedded in lsof executable.
4948
4949 4.94.0 November 11, 2020
4950
4951 (All changes in this version are ported from
4952 lsof-org/lsof-linux repository at GitHub).
4953
4954 Introduced a new test harness. The harness can run
4955 test cases specific to a dialect. It is designed for
4956 running test cases on CI environment like Travis-CI.
4957 However, it is runnable locally with following command
4958 line:
4959 $ ./check.sh DIALECT
4960 after making lsof executable.
4961
4962
4963 [linux] Fixed a bug +|-E options output for pipe.
4964 If two processes use the same fd number for a pipe
4965 connecting them, the option didn't print the
4966 information about it.
4967
4968
4969 [linux] Fixed a bug +|-E options output for PTY.
4970 If two processes use the same fd number for a PTY
4971 connecting them, the option didn't print the
4972 information about it.
4973
4974
4975 [linux] Fixed a bug +|-E options output for PTY.
4976 The code for detecting a slave device was incorrect.
4977
4978
4979 [linux] Fixed a potential bug +|-E options output for
4980 PTY. A structure field for the feature was not
4981 initialized.
4982
4983
4984 [linux] Added a code for decoding O_PATH flag in +fg
4985 option.
4986
4987
4988 [linux] Added a code for decoding O_CLOEXEC flag as CX
4989 in +fg option.
4990
4991
4992 [linux] Added a code for decoding O_TMPFILE flag as
4993 TMPF in +fg option.
4994
4995
4996 [linux] Added Linux display of INET socket endpoint
4997 information with +|-E option. The option handles
4998 INET sockets using IPC.
4999
5000
5001 [linux] Added support for POSIX MQ of Linux
5002 implementation. A POSIX message queue (MQ) is
5003 represented in a fd on Linux. lsof reported it as a
5004 regular file. lsof with this change reports it as a
5005 file with PSXMQ type if mqueue file system is mounted.
5006
5007
5008 [linux] Added Linux display of POSIX message queue
5009 endpoint information with +|-E option. mqueue file system
5010 must be mounted to display the information.
5011
5012
5013 [linux] Added Linux display of INET6 socket endpoint
5014 information with +|-E option. The option handles
5015 INET6 sockets using IPC.
5016
5017
5018 [FreeBSD] update to include <sys/_lock.h> on recent -CURRENT
5019 since it is no longer implicitly included via header pollution.
5020
5021
5022 [linux] Added Linux display of eventfd endpoint information
5023 with +|-E option. The option handles eventfd using IPC.
5024
5025
5026 [FreeBSD] include <stdbool.h> for recent change requiring
5027 refcount(9).
5028
5029
5030 Enhanced -r option. With `c<N>' specifier, lsof can stop itself
5031 when the number of iterations reaches at <N>.
5032
5033
5034 [linux] Fixed accessing an uninitialized local variable.
5035 Detected by valgrind.
5036
5037
5038 [linux] fix a crash when printing the endpoint for unaccepted
5039 unix socket with +E option.
5040 This closes the github issue #74 reported by @jolmg.
5041
5042
5043 [linux] abort execution when failing in memory allocation for
5044 socket private data.
5045
5046
5047 [linux] decode the name of DCCP socket type.
5048
5049
5050 [linux] decode more netlink protocol numbers (RDMA, CRYPTO, and
5051 SMC).
5052
5053
5054 [linux] print the connection state of unix domain socket
5055 Lsof can print the state of TCP socket like:
5056
5057 nc 22247 yamato 3u IPv4 471409 0t0 TCP localhost:38802->localhost:9999 (ESTABLISHED)
5058
5059 This change exnteds this feature to support unix domain sockets.
5060 LISTEN, UNCONNECTED, CONNECTING, CONNECTED, DISCONNECTING,
5061 and UNKNOWN can be taken as a state.
5062 An example of output:
5063
5064 evince 17333 yamato 1u unix 0x0000000054183795 0t0 89141 type=STREAM (CONNECTED)
5065
5066 This feature is enabled by default.
5067 To turn off printing state information, use -T option.
5068
5069 Don't display command usage even when a file (or directory) listed
5070 in command line doesn't exist.
5071 This closes the github issue #90 reported by @rowlap.
5072
5073
5074 [FreeBSD] merge all the FreeBSD specific fixes from the FreeBSD sysutils/lsof port
5075
5076
5077 [linux] allow reproducible builds
5078 In a reproducible build all varied information is removed. This
5079 change does so, by checking if the standard SOURCE_DATE_EPOCH
5080 variable is set. If it is, we are attempting a reproducible build
5081 and will strip varying information.
5082 About the standard, see https://reproducible-builds.org/specs/source-date-epoch/
5083 Provided in github pull request #93 by @T4cC0re.
5084
5085
5086
5087 [freebsd] update for r363214
5088 - no user visible changes
5089
5090
5091 Added the way to include (or exclude) all numbered file descriptors
5092 in -d option. "fd" is a pseudo file descriptor name for the purpose.
5093 See the following output on Linux; lsof doesn't print cwd, rtd, txt,
5094 and mem files.
5095
5096 # ./lsof -p $$ -a -d fd
5097 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
5098 bash 866421 root 0u CHR 136,1 0t0 4 /dev/pts/1
5099 bash 866421 root 1u CHR 136,1 0t0 4 /dev/pts/1
5100 bash 866421 root 2u CHR 136,1 0t0 4 /dev/pts/1
5101 bash 866421 root 255u CHR 136,1 0t0 4 /dev/pts/1
5102
5103
5104
5105 docs: fixed minor grammatical error in instructions in Customize file
5106 The change is provided by @hardikpnsp.
5107
5108
5109 man page: improve phrasing and add examples
5110 The change is provided by Martin D Kealey.
5111
5112
5113 man page: improve explanation of -t implying -w
5114 The change is provided by Martin D Kealey.
5115
5116
5117 test cases, [linux]: fix tests for large inode-numbers (i >= 2^32)
5118 The change is provided by Henry Peteet.
5119
5120
5121 [linux] handle ffff:ffff in ipv6 addr correctly
5122 The listen address and port of an AF_INET6 socket were not display if
5123 the socket listened at an ipv6 address including ffff:ffff.
5124
5125 Here is a command session demonstrating the bug:
5126
5127 # ip -6 addr add abcd:ef10:ffff:ffff:ffff:ffff:ffff:ff62 dev lo
5128 # nc -6 -l abcd:ef10:ffff:ffff:ffff:ffff:ffff:ff62 8888 &
5129 [1] 6762
5130 # ./lsof -p 6762 -a -d fd -P -n
5131 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
5132 nc 6762 yamato 0u CHR 136,6 0t0 9 /dev/pts/6
5133 nc 6762 yamato 1u CHR 136,6 0t0 9 /dev/pts/6
5134 nc 6762 yamato 2u CHR 136,6 0t0 9 /dev/pts/6
5135 nc 6762 yamato 3u sock 0,9 0t0 5833594 protocol: TCPv6
5136
5137 The last line should be:
5138
5139 nc 6762 yamato 3u IPv6 5833594 0t0 TCP [abcd:ef10:ffff:ffff:ffff:ffff:ffff:ff62]:8888 (LISTEN)
5140
5141 The original code decoding an ipv6 address uses UINT32_MAX constant
5142 incorrect way.
5143
5144 @zhrf2020 reported this bug in #102.
5145 @zhrf2020 provided the initial version of fix, #109.
5146
5147
5148 man page,[linux]: enumerate abbreviated flags printed with '+f g' option
5149
5150
5151 Make -Fo option work
5152 -Fo option is for printing file offset. For regular files,
5153 the option didn't work.
5154
5155 Here is a command session demonstrating the fix:
5156
5157 # ./lsof -Fo -o0| grep ^o | sort | uniq -c
5158 90586 o0t0
5159 87 o0t101
5160 84 o0t103
5161 ...
5162 @JustAnotherArchivist reported this bug in #118.
5163
5164
5165 man page: fix definition of the `o` field on programmatic output
5166 The change is provided by @JustAnotherArchivist who reported
5167 the original issue in #118.
5168
5169
5170 [linux]: show the pid monitored by a pidfd
5171 With this change, lsof prints pidfd in the following form:
5172
5173 [pidfd:%d]
5174
5175 where %d represents the pid monitored by the pidfd.
5176
5177 Example output:
5178
5179 # ./lsof -p 12573 -p 12710 | grep pidfd
5180 dbus-brok 12573 jet 11u a_inode 0,13 0 13312 [pidfd:12575]
5181 dbus-brok 12710 jet 10u a_inode 0,13 0 13312 [pidfd:12711]
5182
5183 fd 11 of pid 12573 monitors pid 12575.
5184 fd 10 of pid 12710 monitors pid 12711.
5185 This change closed #116.
5186
5187
5188 Don't select the file descriptor field by default.
5189 The version 4.88 introduced the change for selecting the file
5190 descriptor field by default. However, the change is not
5191 suitable for users who wants to print only PID field.
5192 @po5857 suggests the use case and the way to improve the man page.
5193
5194
5195 [linux]: enumerate fds monitored by an eventpoll fd
5196 With this change, lsof prints an eventpoll fd in the following form:
5197
5198 [eventpoll:<fd0>,<fd1>,...,<fdn>...]
5199
5200 Here fdX is a file descriptor monitored by the eventpoll fd.
5201 If an eventpoll fd monitors too many file descriptors, lsof
5202 truncates the list of fds. "..." at the end of list implies
5203 the truncation.
5204
5205 Example output:
5206
5207 # sudo ./lsof -p 1 -a -d 10,11,12
5208 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
5209 systemd 1 root 10u a_inode 0,13 0 11624 [eventpoll:11,12]
5210 systemd 1 root 11r REG 0,4 0 17680 /proc/1/mountinfo
5211 systemd 1 root 12r a_inode 0,13 0 11624 inotify
5212
5213 systemd monitors fd 11 and fd 12 via eventpoll fd 10.
5214
5215
5216 [linux]: implement "make check"
5217 The target runs check.bash.
5218
5219 4.95.0 April 28, 2022
5220
5221 [n+obsd] fix syntax error
5222 Corrected end of comment.
5223 This change closes #138.
5224 @albert-github reported this issue in #138,
5225 and provided the fix in #140
5226
5227
5228 Don't ignore failures in test/Makefile
5229 Tobias Geerinckx-Rice <[email protected]> provides the fix.
5230
5231
5232 Update perl scripts for the past few decades of progress
5233 Generally, perl is available on base systems - people who are manually
5234 installing perl into /usr/local/bin are the exception rather than the
5235 rule. In addition, Perl 5 was release in 1994, so Perl 4 isn't relevant
5236 any more. We've also standardized on the .pl extension, rather than
5237 .perl5 or whatever.
5238 Provided by @dilinger (Andres Salomon) in #149.
5239 A commit in the pull request includes work of Nicholas Bamber.
5240
5241
5242 Drop LSOF_CCDATE across all dialects to ensure reproducible builds
5243 Simplify things for reproducible builds by just getting rid of
5244 the embedded date/time string. With LSOF_CCDATE gone, keeping
5245 SOURCE_DATE_EPOCH around doesn't make much sense, so drop that as
5246 well. Folks doing reproducible builds should still override the
5247 LSOF_HOST, LSOF_LOGNAME, LSOF_SYSINFO, and LSOF_USER variables (as
5248 they were previously doing before SOURCE_DATE_EPOCH).
5249 Provided by @dilinger (Andres Salomon) in #150.
5250
5251
5252 [FreeBSD] get the ISO9660 filesystem working again
5253 The ISO9660 filesystem broke starting with FreeBSD 7 due to the header
5254 location changing. Fix the header search path to get it to be detected
5255 again. Fix the header inclusion order. Also add the new way of finding
5256 dev_t on more recent FreeBSD versions.
5257 Provided by Damjan Jovanovic in #151.
5258
5259
5260 [FreeBSD] add support for msdosfs on FreeBSD
5261 Provided by Damjan Jovanovic in #151.
5262
5263
5264 Fix FD field description.
5265 In 811dc78 the output format was changed to not printf the `f`
5266 field by default, however the field description in `lsof_fields.h`,
5267 as seen in `-F?` output still included the `(always selected)` text.
5268 Provided by @algorythmic (Grisha Levit) in #158.
5269
5270
5271 Adjust alignment of buffer passed to stat().
5272 The original code passes char[] buffer to stat(). This can be cause
5273 a SIGBUS. #160 reported an actual crash on armv7a + glibc-2.33 platform.
5274 See also https://sourceware.org/bugzilla/show_bug.cgi?id=27993.
5275 Reported by @10ne1 in #160.
5276
5277
5278 Clean up source code and documentats.
5279 - remove trailing whitespace,
5280 - fix some issues in scripts found through shellcheck, and
5281 - fix spelling
5282 Provided by @a1346054 in #163.
5283
5284
5285 man page: fix hyphen issues
5286 Properly use '-' and '\-' in the man page, ensuring that users
5287 can cut & paste commandline options without issue. Original
5288 patch from Raoul Gunnar Borenius <[email protected]>, and
5289 submitted/expanded by @dilinger (Andres Salomon) in #168.
5290
5291
5292
5293 [FreeBSD] update for FreeBSD 13 & 14, and various internal changes
5294 submitted by @DmitryAndric & @emaste.
5295
5296
5297 [FreeBSD] remove various old FreeBSD versions from support
5298 submitted by @emaste
5299
5300
5301 [FreeBSD] configure: suggest variable to set if FreeBSD sys not
5302 found
5303 submitted by @emaste
5304
5305 [FreeBSD] Use user mode APIs on FreeBSD
5306 Extensively changes the FreeBSD dialect to use user mode APIs
5307 (sysctls and libutil's kinfo_getfile()), only falling back to kvm
5308 access when it's available and required for certain features. lsof can
5309 now run as an ordinary user, though not all processes may be visible
5310 and some features will be absent without kvm access (file lock state,
5311 kqueue info, some pipe details, nullfs details).
5312 This also fixes numerous long standing issues: file lock state is now
5313 visible on all filesystems, the cwd, root dir, jail dir, text file and
5314 controlling TTY are now visible, filenames are shown for all
5315 filesystems, procfs is working again and supports file searches even
5316 when there are multiple procfs mountpoints, the code is shorter,
5317 cleaner and should need much less future maintenance.
5318 It builds and works from FreeBSD 9.0 to 14-CURRENT, though older
5319 versions have less features (eg. 12 doesn't provide socket buffer
5320 usage, 11 also lacks TCP flags and state).
5321 Provided by @DamjanJovanovic in #184.
5322
5323
5324 Fix broken LSOF_CFLAGS_OVERRIDE.
5325 Provided by Fabrice Fontaine in #172.
5326
5327
5328 [linux] Remove sysvlegacy function.
5329 Provided by Fabrice Fontaine in #195.
5330
5331
5332 [linux] use close_range instead of calling close repeatedly
5333 At the starting up, lsof closes its file descriptors greater
5334 than 2 by calling close(2) repeatedly. As reported in #186,
5335 it can take long time. Linux 5.9 introduced close_range(2).
5336 The new system call can close multiple file descriptors faster.
5337 @qianzhangyl reported the original issue (#186).
5338
5339
5340 Add -Q option for adjusting exit status when failed to find a
5341 search item (#129)
5342 In the original code, lsof returned 1 when it failed to find a
5343 search item. With the new option, lsof returns 0 in the case.
5344
5345
5346 Document -Q option in manpage/00QUICKSTART, and adjust -h
5347 output by @dilinger (Andres Salomon) in #129.
5348
5349
5350 Improve readability of complex adverbial clause by adding a
5351 comma.
5352 Provided by Danny Fowler in #156.
5353
5354 4.96.0 September 16, 2022
5355
5356 [linux] fix hash functions used for finding local tcp/udp IPCs
5357 There were typos in the code calculating hash values. The typos might
5358 break the flatness of hashtables where the endpoint information about
5359 locally used tcp/udp was stored. Theoretically, this fix may improve
5360 the performance of lsof with [+|-]E option.
5361 Inspired by the issue #206 reported by Tomasz Kłoczko (@kloczek).
5362
5363
5364 Show copyright notice in --version output.
5365
5366
5367 [linux] compile with -Wall option
5368
5369
5370 [linux] Avoid some easy collissions for udp/udp6 sockets when hashing
5371
5372
5373 [linux] Changing the number of ipcbuckets to 4096
5374
5375
5376 [darwin] fix build with -fno-common (Cfp redefinition)
5377 gcc-10 and llvm-11 changed the default from -fcommon to -fno-common:
5378 https://gcc.gnu.org/PR85678
5379 As a result build fails as:
5380
5381 duplicate symbol '_Cfp' in: ddev.o dfile.o
5382
5383 Cfp is already explicitly defined in dstore.c. The change turns
5384 header definition into declaration.
5385 Provided by Sergei Trofimovich (@trofi) in #221. The same fix is
5386 applied to libproc backend by Jiajie Chen (@jiegec) in #226.
5387
5388
5389 [linux] Make build reproducible by checking SOURCE_DATE_EPOCH
5390 and considering LSOF_{HOST,LOGNAME,SYSINFO,USER} as "none" when
5391 it is set.
5392 Provided by Danilo Spinella in #217
5393
5394
5395 [darwin] remove /usr/include prefix from include for Darwin 19+
5396 The /usr/include path is missing since macOS Catalina.
5397 Fixes issue #234.
5398 Provided by Jiajie Chen in #235
5399
5400
5401 [linux] obtain correct information of memory-mapped file.
5402 Provided by Teng Hu in #239
5403
5404
5405 [FreeBSD] configure: suggest variable to set if FreeBSD sys not
5406 found
5407 Submitted by @emaste
5408
5409
5410 Updated 00FAQ with lookup to open files via mountpoint
5411 Provided by Jacob Chapman in #240
5412
5413
5414 [FreeBSD] modernize API usage and remove legacy FreeBSD releases
5415 Contributor DamjanJovanovic (#184) Ed Maste (#250, #251, #252),
5416 Warner Losh (#253)
5417
5418 4.96.1 September 16, 2022
5419
5420 [FreeBSD] Unconditionally define HASKQUEUE (mjguzik)
5421
5422 4.96.2 September 16, 2022
5423
5424 [FreeBSD] fix FreeBSD < 14
5425
5426 4.96.3 September 16, 2022
5427
5428 [FreeBSD] Fix kqueue compat for releases < 14
5429
5430 4.96.4 October 18, 2022
5431
5432 [FreeBSD] sys/files.h no longer needs _KERNEL defined to
5433 include it (bsdimp #256)
5434
5435
5436 docs: Describe fd number truncation in output (#261)
5437
5438 4.96.5 December 26, 2022
5439
5440 [linux] Use correct scanf/printf format for uint64_t (#266)
5441
5442
5443 Avoid C89-only constructs in Configure (#265)
5444
5445
5446 [freebsd] add <sys/callout.h> for recent changes
5447
5448 4.97.0 January 17, 2023
5449
5450 [decof/du/tru64] Remove support because the os is no longer
5451 updated for more than 10 years
5452
5453
5454 [openstep/nextstep] Remove support because the os is no longer
5455 updated for more than 20 years
5456
5457
5458 Add experimental build system based on Autotools (#270)
5459
5460
5461 Fixed LTsock testing on darwin (#272)
5462
5463
5464 Remove NEW and OLD folders (#6)
5465
5466
5467 Fix FreeBSD testcases (#271)
5468
5469
5470 Rewrite documentation and publish at https://lsof.readthedocs.io/
5471
5472 4.98.0 January 22, 2023
5473
5474 Fix two potential null pointer access bug when gethostbyname2()
5475 returns an empty address list
5476
5477
5478 Add support for older automake versions (on e.g. CentOS 7)
5479
5480
5481 Migrate testing scripts and programs to autotools
5482
5483
5484 Extend CI to build on more Linux distros
5485
5486
5487 [linux] Fix handling of empty command name, closing #246.
5488 Add test from #246, where lsof returns stale command name when the
5489 command name is empty. If getting command name failed, return
5490 NULL instead of empty string
5491
5492
5493 Add --with/without-libtirpc option to autotools-based build
5494 system and automatically detect libtirpc by default
5495
5496
5497 Add -H switch to print human readable size, e.g. 123.4K (#260)
5498
5499
5500 [linux] Fix implicit declaration error when HASPTYEPT is undefined
5501
5502
5503 Add support for musl libc-based Linux distros
5504
5505
5506 Add --enable-security argument to configure to allow only the
5507 root user to list all open files
5508
5509
5510 Add --enable-no-sock-security argument to configure to allow
5511 anyone to list anyone else's socket files when combined with
5512 --enable-security
5513
5514
5515 [linux] Always enable 64 bit off_t in configure.ac
5516
5517
5518 [netbsd] Import patches from pkgsrc and port autotools-based build system to NetBSD
5519
5520
5521 [netbsd] Fix lock status reading
5522
5523 4.99.0 November 10, 2023
5524
5525 [netbsd] Get device number of tmpfs instead of reporting zero
5526
5527
5528 [openbsd] Rewrite OpenBSD support because OpenBSD disallows
5529 kernel memory access and lsof has to switch to user mode API.
5530 Currently, most features are working, but file path reporting
5531 and lock status are not working for lack of kernel support.
5532 As a consequence, OpenBSD dialect is separated in a new folder.
5533
5534
5535 [darwin] Remove /dev/kmem backend because it no longer exists on
5536 current macOS releases. Use libproc backend instead.
5537
5538
5539 [linux] Do not hard-code fd numbers in epoll test, fixing tests
5540 on Void Linux
5541
5542
5543 [freebsd] Use kf_file_nlink if provided by kernel instead of
5544 stat(). This commit requires kernel with
5545 https://reviews.freebsd.org/D38169. It brings back the ability
5546 to list deleted files via `lsof +L1`. Closes #264.
5547
5548
5549 [linux] Add --with-selinux configure option.
5550
5551
5552 [solaris] Re-introduce support for recent Solaris & OpenIndiana
5553 releases.
5554
5555
5556 [darwin] Display kern ctl info, learned from apple lsof version.
5557
5558
5559 [linux] Improve performance by using closefrom(). Closes #281.
5560
5561
5562 [aix] Fix compilation on AIX 7.2 and add autotools build system
5563 support for AIX.
5564
5565 [aix] Suppress warnings properly on AIX version greater than
5566 5.0. Closes #187.
5567
5568 Introduce alpha version of liblsof which allows users to use
5569 lsof functionality via C functions instead of spawning a
5570 subprocess and parsing the output. This version may contain BUGs
5571 and memory leaks, and the API may change before it stablizes.
5572
5573 4.99.1 December 16, 2023
5574
5575 Fix compilation error when HASIPv6 is not defined. (@chenrui333)
5576
5577 Add configure option --disable-liblsof to disable installation
5578 of liblsof. (@subnut, #300)
5579
5580 [freebsd] fix segfault from fs info (FreeBSD bug 267760)
5581
5582 4.99.2 December 16, 2023
5583
5584 fix version file
5585
5586 4.99.3 December 16, 2023
5587
5588 fix 00DIST file <space> -> tabs
5589
5590 4.99.4 November 18, 2024
5591
5592 fix version parser for clang (lsof-org#305) (#306)
5593
5594 In lsof manapge: mention /etc/services for -P option (#309)
5595
5596 [freebsd] don't use kf_sock_inpcb on modern versions. In
5597 FreeBSD 14 and after the generic internet protocol control
5598 block and protocol specific (TCP) control block are the same
5599 pointer. The latter embeds the former. The kf_sock_inpcb is
5600 planned for removal in FreeBSD 15.
5601
5602 [freebsd] Recognize FreeBSD 15
5603
5604 Fix typos in docs (#314)
5605
5606 [linux] Do not embed kernel version in CFLAGS (#314)
5607
5608 [linux] Linux 6.9 changed the pidfs appearence in procfs. Try
5609 to maintain original output in lsof (#317)
5610
5611 [linux] closefrom_shim: Add optimized fallback for platforms
5612 without closefrom or close_range (#316)
5613
5614 lib/misc.c: fix build against -std=c23 (`void (*)()`) changed
5615 the meaning) (#327)
5616
5617 4.9?.? ????????? ??, ????
5618
5619
5620 Vic Abell <[email protected]>
5621 July 14, 2018
5622
5623 The lsof-org team at GitHub
5624 December 28, 2022