standards/100017: [Patch] Add fuser(1) functionality to fstat(1)

Ed Schouten ed at
Mon Jul 10 08:30:23 UTC 2006

>Number:         100017
>Category:       standards
>Synopsis:       [Patch] Add fuser(1) functionality to fstat(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-standards
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 10 08:30:21 GMT 2006
>Originator:     Ed Schouten
>Release:        FreeBSD 7.0-CURRENT i386
System: FreeBSD 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Jul 2 10:55:26 CEST 2006 root at i386
POSIX 2004 describes a utility called fuser(1), which is similar to
fstat(1). Because it would be useless to write an entire fuser(1)
utility that only has a fraction of the functionality of fstat(1), it
would be better to integrate it into fuser(1). 

Two previous attempts were made, none were eventually committed:

 - standards/36076 - suspended, because it was a shell script
 - standards/35682 - not integrated, as it doesn't share any common code
                     with fstat(1).
Apply the following patch:

This utility patches the fstat(1) utility to behave like fuser(1) when
called. It supports all the flags required, including some more (-m, -M
and -N).

The characters printed after the PIDs almost share the same scheme as
the Linux version.

More information about the freebsd-standards mailing list