History log of /freebsd-current/usr.bin/fstat/fstat.1
Revision Date Author Comments
# 0ba51e3b 13-Dec-2023 Yu-Hsun Chen <ss109062134@gapp.nthu.edu.tw>

fstat(1): Fix typo

This is from the Advanced UNIX Programming Course (Fall’23) at NTHU.

MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/929


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 7e9e52e7 19-Nov-2020 Fernando ApesteguĂ­a <fernape@FreeBSD.org>

fstat(1): Add EXAMPLES section

* Add examples covering -f, -m and -p flags.

While here, extend the initial description paragraph to note that fstat(1)
will report on all opened files, belonging to processes the user has access to.
The current paragraph may lead to understand that you can get information on
opened files from processes belonging to other users.

Reviewed by: bjk@, danfe@, gbe@
Approved by: manpages (gbe@)
Differential Revision: https://reviews.freebsd.org/D26949


# 78ef7913 17-Jun-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Clean up fstat.1

- Sort options in the list & indent for readability.
- Pet linters
- Use "\(em" instead of "--"
- Remove Tn macros
- Use Ql instead of Dq Li
- Add arguments to the -M, -N, -p, and -u options in their descriptions.
- Use Sy instead of Li for field names. Li is deprecated, and Ql makes no
sense here.
- Replace a literal block with a list for the table of special names
related to FD.
- Use Ql instead of ``X''.
- Add a dot after etc.
- Reference fuser(1).

MFC after: 1 week


# 6f42902d 28-Oct-2019 Jeremie Le Hen <jlh@FreeBSD.org>

Grammar fix.

Reported by: imp
Differential Revision: https://reviews.freebsd.org/D21880


# 91ad311b 19-Oct-2019 Jeremie Le Hen <jlh@FreeBSD.org>

Add the fstat -s option to display socket information.

Reviewed by: jilles
MFC after: 1 week
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D21880


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 958aa575 03-May-2013 John Baldwin <jhb@FreeBSD.org>

Similar to 233760 and 236717, export some more useful info about the
kernel-based POSIX semaphore descriptors to userland via procstat(1) and
fstat(1):
- Change sem file descriptors to track the pathname they are associated
with and add a ksem_info() method to copy the path out to a
caller-supplied buffer.
- Use the fo_stat() method of shared memory objects and ksem_info() to
export the path, mode, and value of a semaphore via struct kinfo_file.
- Add a struct semstat to the libprocstat(3) interface along with a
procstat_get_sem_info() to export the mode and value of a semaphore.
- Teach fstat about semaphores and to display their path, mode, and value.

MFC after: 2 weeks


# 9f365aa1 28-Sep-2011 Ed Schouten <ed@FreeBSD.org>

Get rid of major/minor number distinction.

As of FreeBSD 6, devices can only be opened through devfs. These device
nodes don't have major and minor numbers anymore. The st_rdev field in
struct stat is simply based a copy of st_ino.

Simply display device numbers as hexadecimal, using "%#jx". This is
allowed by POSIX, since it explicitly states things like the following
(example taken from ls(1)):

"If the file is a character special or block special file, the
size of the file may be replaced with implementation-defined
information associated with the device in question."

This makes the output of these commands more compact. For example, ls(1)
now uses approximately four columns less. While there, simplify the
column length calculation from ls(1) by calling snprintf() with a NULL
buffer.

Don't be afraid; if needed one can still obtain individual major/minor
numbers using stat(1).


# da52b4ca 11-Dec-2010 Joel Dahl <joel@FreeBSD.org>

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# f6ac2391 06-Aug-2010 Joel Dahl <joel@FreeBSD.org>

Fix typos and spelling mistakes.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# e5002279 09-Jul-2009 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add manual page links to advertise procstat(1) a little better.

Approved by: re (kib)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 6e679990 29-Apr-2008 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Fix some section references.


# 0227791b 13-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Expand *n't contractions.


# 6b020622 30-Jan-2005 Poul-Henning Kamp <phk@FreeBSD.org>

Add text about jail root directory as well.

Submitted by: "Mark W. Krentel" <krentel@dreamscape.com>


# 6c7216df 18-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sort sections.


# 2a00e8ea 26-Jul-2004 Philippe Charnier <charnier@FreeBSD.org>

Introduce options list the standard way.


# 557b7fa1 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Deal with double whitespace.


# 6a3e8b0a 02-Jul-2004 Ruslan Ermilov <ru@FreeBSD.org>

Mechanically kill hard sentence breaks.


# 376d460c 26-Mar-2004 Ruslan Ermilov <ru@FreeBSD.org>

Correct the description of the -N option.


# 8d5d039f 12-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

Uniformly refer to a file system as "file system".

Approved by: re


# 1063e126 09-May-2002 Josef Karthauser <joe@FreeBSD.org>

Replace /kernel with /boot/kernel/kernel.

PR: docs/37757
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>


# e8937ba0 19-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

Use `The .Nm utility'


# 91966d21 12-Apr-2002 Philippe Charnier <charnier@FreeBSD.org>

.Ar filename ... is equivalent to .Ar.


# 90eca7b6 27-Mar-2002 Garrett Wollman <wollman@FreeBSD.org>

Use a slightly less obscure title than "file status".


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# 62500372 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# 9b88faec 19-Dec-2000 Ruslan Ermilov <ru@FreeBSD.org>

Prepare for mdoc(7)NG.


# 8fe908ef 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# d0482be8 04-Apr-2000 Brian Feldman <green@FreeBSD.org>

Add a new options: -m enables searching for memory-mapped files.

It is not default because it's an expensive option by nature, making the
search take 2-3 times as long.

PR: 17555
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>


# 5ff829fd 06-Sep-1999 Sheldon Hearn <sheldonh@FreeBSD.org>

Add xrefs to the {f,net,sock}stat.1 manpages. While I'm in there, fix
the sockstat.1 document title, which still remembers when sockstat was
called lsock.

Reviewed by: mpp


# c3aac50f 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 3be5f1f5 12-Jul-1999 Nik Clayton <nik@FreeBSD.org>

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# 9e7a1d01 25-Jan-1998 Steve Price <steve@FreeBSD.org>

Use -literal to make for a more pleasing list.

PR: 5547
Submitted by: Matthew Hunt <mph@pobox.com>


# ca7e3117 24-Aug-1996 Peter Wemm <peter@FreeBSD.org>

Locate the text inode, closes PR#1070


# 906c1e27 06-Apr-1996 Mike Pritchard <mpp@FreeBSD.org>

Correct some man page cross references and file location references.


# 270d3d75 20-Jan-1996 Mike Pritchard <mpp@FreeBSD.org>

Fix a variety of minor typos and cross references in a bunch of
man pages.

Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Giles Lean <giles@nemeton.com.au>
<soda@sra.co.jp>


# b3bfc719 05-Aug-1994 David Greenman <dg@FreeBSD.org>

Converted 'vmunix' to 'kernel'.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources