<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/usr.bin/stat/stat.1, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2011-01-12T07:38:48Z</updated>
<entry>
<title>For stat.c</title>
<updated>2011-01-12T07:38:48Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2011-01-12T07:38:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=49e5def9f93b1c5949cf0b4a361482b3e93f4bd2'/>
<id>urn:sha1:49e5def9f93b1c5949cf0b4a361482b3e93f4bd2</id>
<content type='text'>
==========

MFC r216196:

Bring in the change from NetBSD 1.18:

"If using stat (the -L flag) and it fails, fall back to lstat().  It
may be the case that we're examining a broken symlink, and anything is
better than nothing."

The changes in 1.14 through 1.17 were not relevant to us.

Obtained from:	atatat@NetBSD.org

MFC r216202:

Bring in the change from NetBSD 1.22:

"Fix a trivial truncation case, and eliminate a corner case that might
print a nul character."

I am purposely bypassing the following versions:
1.19	A build infrastructure change that does not apply to us
1.20	A feature I am not interested in, but don't object if someone else
	wants to pick it up
1.21	A build infrastructure change that does not apply to us

Obtained from:	atatat@NetBSD.org

MFC r216203:

Bring in a new feature, adding a -f option to readlink to print the path
of the target, similar to realpath(1). See the discussion at:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=34662

This brings in the following changes:
1.24
"PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't
grok -f, and there's no alternative (+fix)

Patch applied with minor tweak (%y -&gt; %R, as it was already taken) plus
some nits from myself. Thanks!"

Obtained from:	elad@NetBSD.org

1.25
"Fix a segfault when doing 'stat -f %R' on the stdin file handle, instead
fake the filename '(stdin)' like the %N format."

Obtained from:	mlelstv@NetBSD.org

1.27
"The ofmt variable is actually a bit mask (not the character that was
in the format string) so that we can "or" it with the bits in the
formats variable.  This fixes the missing " -&gt; " in front of the real
path (when you use %SR).

Also, the ?: needs another space."

Obtained from:	atatat@NetBSD.org

I am purposely omitting the following changes:
1.23	A humanize_number(3) clone that should better be implemented by
	actually using humanize_number(3)
1.26	This is the removal of license clause 3 and 4, already handled
	by imp in r203971

MFC 216205:

Bring in the update from NetBSD 1.28:

"Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)"

Because of code differences I had to hand-apply parts of the patch,
so responsibility for errors goes to me.

Obtained from:	lukem@NetBSD.org

MFC 216206:	[ Also applies to Makefile ]

Fix an "unused variable" error that gets us all the way to WARNS=6

MFC 216207:

Bring in the following changes from NetBSD. See the discussion at:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44128

1.29
"Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it
successfully prints mtimes after 2038."

1.30
"Improve previous with comments."

Obtained from:	dholland@NetBSD.org (both)

MFC 216343:

Bring in the change from OpenBSD's 1.14:

"synchronize synopsis and usage; "-l", "-r", "-s" and "-x" are mutually
exclusive; while here, slightly improve spacing in the source code
so it fits on a 80-column display again.

diff greatly improved by martynas@"

Obtained from:	sobrado@OpenBSD.org

MFC 216512:

Bring in the relevant changes from NetBSD's 1.31:

"Use strlcpy, not strncpy, when the desired semantics are strlcpy's
rather than strncpy's."

Note: NetBSD's 1.32 is their adoption of our r216206

Obtained from:	dholland@NetBSD.org

For stat.1
==========

MFC 216197:

Add my own documentation for the change in our r216196, aka NetBSD's 1.18
For -L if stat(2) fails, fall back to lstat(2).

.Dd purposely not bumped because more changes are coming.

MFC 216204:

Bring in the update from NetBSD 1.19, the documentation of readlink -f

"PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't
grok -f, and there's no alternative (+fix)

Patch applied with minor tweak (%y -&gt; %R, as it was already taken) plus
some nits from myself. Thanks!"

Obtained from:	elad@NetBSD.org

MFC 216209:

Bring in the change from NetBSD 1.12:

"document default format."

Obtained from:	yamt@NetBSD.org

MFC 216213:

Bring in the changes from NetBSD 1.13 that we did not already have, with
some differences.

"Sort options. Use more mdoc macros. Some nit fixes. Bump date."

Obtained from:	wiz@NetBSD.org

MFC 216215:

Bring in the changes from NetBSD 1.16 that we did not already have.

"Some fixes from jmc@openbsd."

Obtained from:	wiz@NetBSD.org

MFC 216216:

Bring in the change from NetBSD 1.20:

"Make sentence easier to parse. From jsing@openbsd via jmc@openbsd."

Obtained from:	wiz@NetBSD.org

MFC 216218:

Bring in the following changes from NetBSD:

1.21
"Document the flags displayed by the default format, and mention their short
names. From espie@openbsd via jmc@openbsd."

1.24
"Fix three variable names.
From Todd T. Fries via Jason McIntyre."

Obtained from:	wiz@NetBSD.org (previous 2)

1.25
"Be consistent: document the birthtime field of struct stat for
the "B" field specifier."

Obtained from:	reed@NetBSD.org

1.26
"Drop trailing space."

Obtained from:	wiz@NetBSD.org

1.27
"Since we have st_birthtime in struct stat, it is in default display."

Obtained from:	enami@NetBSD.org

Purposely skipping the following revisions:
1.22	NetBSD-specific change
1.23	Removal of license clauses 3 and 4, already handled by imp
	in our r203971

MFC 216219:

Bring in the change from NetBSD 1.28:

"\\ -&gt; \e"

Obtained from:	joerg@NetBSD.org

Bump .Dd because we're now up to date with the latest NetBSD version
</content>
</entry>
<entry>
<title>MFC 178651:</title>
<updated>2011-01-12T05:37:13Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2011-01-12T05:37:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9affd6659430a04ab8a34d5bb9d22ff34449e612'/>
<id>urn:sha1:9affd6659430a04ab8a34d5bb9d22ff34449e612</id>
<content type='text'>
The referenced section name is 'Formats', not 'FORMATS'.
</content>
</entry>
<entry>
<title>MFC r203971:</title>
<updated>2011-01-11T20:05:53Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2011-01-11T20:05:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=3524148a591181d806e101520f8ffb19cdec6e20'/>
<id>urn:sha1:3524148a591181d806e101520f8ffb19cdec6e20</id>
<content type='text'>
The NetBSD Foundation has granted permission to remove clause 3 and 4
from their software.

Obtained from:  NetBSD
</content>
</entry>
<entry>
<title>MFC r207153: stat: Allow -f %Sf to display the file flags symbolically.</title>
<updated>2010-05-04T21:56:16Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2010-05-04T21:56:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=9adee652c9920f9e1ddfa79788e53342634e6d07'/>
<id>urn:sha1:9adee652c9920f9e1ddfa79788e53342634e6d07</id>
<content type='text'>
PR:		124349
</content>
</entry>
<entry>
<title>Add some more examples.  It always takes me a long time to find the S</title>
<updated>2007-04-27T18:23:32Z</updated>
<author>
<name>Brian Somers</name>
<email>brian@FreeBSD.org</email>
</author>
<published>2007-04-27T18:23:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2e7b6bff38555980d44d70ef2b0d193976cfd7c5'/>
<id>urn:sha1:2e7b6bff38555980d44d70ef2b0d193976cfd7c5</id>
<content type='text'>
modifier (-t is ignored without it).

MFC after:	1 week
</content>
</entry>
<entry>
<title>Markup and wording fixes.</title>
<updated>2005-06-14T11:50:53Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-06-14T11:50:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=39c59153e929e3e663fe0efd645faa06f6c8b48e'/>
<id>urn:sha1:39c59153e929e3e663fe0efd645faa06f6c8b48e</id>
<content type='text'>
Approved by:	re (blanket)
</content>
</entry>
<entry>
<title>Note when 'stat' appeared in FreeBSD.</title>
<updated>2005-03-28T04:02:45Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2005-03-28T04:02:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c0d08dc24d83c3b29c8df5331ff7bf4a54f8a215'/>
<id>urn:sha1:c0d08dc24d83c3b29c8df5331ff7bf4a54f8a215</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Assorted mdoc(7) fixes.</title>
<updated>2003-06-02T11:19:24Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2003-06-02T11:19:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=f937c268cf95bb650f455bac678bcf1c83bb90e7'/>
<id>urn:sha1:f937c268cf95bb650f455bac678bcf1c83bb90e7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Markup bits.</title>
<updated>2003-05-21T21:07:28Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2003-05-21T21:07:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=fa7f4291ff956516ea3128f2887a2275cbec7ff3'/>
<id>urn:sha1:fa7f4291ff956516ea3128f2887a2275cbec7ff3</id>
<content type='text'>
Approved by:	re (blanket)
</content>
</entry>
<entry>
<title>Bring in NetBSD's version 1.11, which includes documenation for the new</title>
<updated>2003-05-11T23:07:07Z</updated>
<author>
<name>Doug Barton</name>
<email>dougb@FreeBSD.org</email>
</author>
<published>2003-05-11T23:07:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=fd52243c4fac783d754c4ad7c5d26bbb334e717e'/>
<id>urn:sha1:fd52243c4fac783d754c4ad7c5d26bbb334e717e</id>
<content type='text'>
inode birthtime display, and quite a bit of mdoc cleanup, which brings
it much more in line with our mdoc style.

Approved by:	re (bmah)
Obtained from:	Andrew Brown &lt;atatat@NetBSD.org&gt; (content), Grant Beattie &lt;grant@NetBSD.org&gt; (mdoc)
</content>
</entry>
</feed>
