[Toybox] [PATCH] Offer flag to only list open FDs.

Rob Landley rob at landley.net
Tue Oct 25 22:05:10 PDT 2016


On 10/25/2016 01:56 PM, Jeff Sharkey wrote:
> Attached patch; happy to answer any questions.  :)

Hmmm... from the lsof man page:

    When -f is specified by itself, all path name  arguments  will
    be  taken  to be simple files.  Thus, for example, the ``-f --
    /'' arguments direct lsof to search for open files with a  `/'
    path name, not all open files in the `/' (root) file system.

The existing -l, -p, and -t are compatible with previous lsof
implementations. (We don't seem to be doing the -p ^pid thing that
_excludes_ pids, but what _is_ there is compatible.) But this looks like
a new definition of -f? (It's hard to tell because the lsof man page is
so busy...)

How would you get the other lsof to filter the output this way?

Rob


More information about the Toybox mailing list