standards/100017: [Patch] Add fuser(1) functionality to fstat(1)
Ed Schouten
ed at fxq.nl
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 10 08:30:21 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Ed Schouten
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD compy.fxq.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Jul 2 10:55:26 CEST 2006 root at compy.fxq.nl:/usr/obj/usr/src/sys/COMPY i386
>Description:
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).
>How-To-Repeat:
n/a
>Fix:
Apply the following patch:
http://g-rave.nl/junk/freebsd-fstat-fuser-posix.diff
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.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-standards
mailing list