Page MenuHomeFreeBSD
Feed Advanced Search

Jan 29 2017

pfg accepted D9007: Add regression tests for indent(1).
Jan 29 2017, 2:33 AM
pfg committed rS312942: Remove GCC's __nonnull() attribute definition..
Remove GCC's __nonnull() attribute definition.
Jan 29 2017, 12:46 AM

Jan 28 2017

pfg committed rS312934: Make use of clang nullability attributes..
Make use of clang nullability attributes.
Jan 28 2017, 8:55 PM
pfg closed D9004: Addition of clang nullability attributes. by committing rS312934: Make use of clang nullability attributes..
Jan 28 2017, 8:55 PM

Jan 27 2017

pfg committed rS312860: MFC r312538:.
MFC r312538:
Jan 27 2017, 4:52 AM

Jan 23 2017

pfg committed rS312667: sort - Don't live-loop threads..
sort - Don't live-loop threads.
Jan 23 2017, 3:40 PM
pfg committed rS312657: MFC r312443:.
MFC r312443:
Jan 23 2017, 1:21 AM
pfg committed rS312656: MFC r312443:.
MFC r312443:
Jan 23 2017, 1:21 AM

Jan 20 2017

pfg committed rS312538: Addition of clang nullability qualifiers..
Addition of clang nullability qualifiers.
Jan 20 2017, 3:56 PM
pfg committed rS312443: mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION..
mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION.
Jan 20 2017, 12:02 AM

Jan 18 2017

pfg updated the diff for D9004: Addition of clang nullability attributes..

I was not very happy about the old naming for the macros so I have new
names which I think are more descriptive:

Jan 18 2017, 3:41 PM
pfg committed rS312386: MFC r311947, r311981:.
MFC r311947, r311981:
Jan 18 2017, 3:23 PM
pfg committed rS312385: MFC r311947, r311981:.
MFC r311947, r311981:
Jan 18 2017, 3:23 PM

Jan 17 2017

pfg added a comment to D9202: Move fparseln(3) from libutil to libc.

Just IMHO, and not meaning to stand in the way ...

Jan 17 2017, 2:22 AM

Jan 16 2017

pfg committed rS312253: MFC r311101:.
MFC r311101:
Jan 16 2017, 3:52 AM
pfg committed rS312252: MFC r311101:.
MFC r311101:
Jan 16 2017, 3:49 AM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Trying the _Pragma suddenly doesn't look like a bad idea after all: if GCC adopts
the attributes it would be easier to adapt them in just one place instead of chasing
all the headers.

Jan 16 2017, 3:20 AM

Jan 15 2017

pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#189888, @email_piotr-stefaniak.me wrote:

After learning about PR 215690 I'm no longer convinced that the regression tests I'd like to have should be integrated into the FreeBSD testing suite. It sounds ridiculous that a harmless regression in a reformatting tool like indent(1) would create "bogus failures counted against our overall results". indent(1) is not a crucial part of the operating system and shouldn't be tested as rigorously. Bugs in indent(1) are not even close to an indication of overall quality of the system.

Jan 15 2017, 3:45 PM
pfg committed rS312210: MFC r311896.
MFC r311896
Jan 15 2017, 4:23 AM

Jan 14 2017

pfg added a comment to D9004: Addition of clang nullability attributes..
In D9004#189482, @pfg wrote:
Jan 14 2017, 2:55 AM

Jan 13 2017

pfg added a comment to D9004: Addition of clang nullability attributes..
In D9004#189480, @ed wrote:

I like the idea, but I think it would make more sense to do this a bit more slowly. For example, we could use this change to add stubs for these keywords for old compilers to sys/cdefs.h.

Jan 13 2017, 9:33 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Add check for nullability feature before using the pragmas.
We still have many older versions of clang in the ports tree.

Jan 13 2017, 3:33 PM
pfg committed rS312001: Remove __nonnull() attributes from x86 machine check architecture..
Remove __nonnull() attributes from x86 machine check architecture.
Jan 13 2017, 1:39 AM

Jan 12 2017

pfg committed rS311981: rpcgen(1): Check getrlimit() return for generated code..
rpcgen(1): Check getrlimit() return for generated code.
Jan 12 2017, 2:45 PM

Jan 11 2017

pfg committed rS311947: rpcgen(1): Avoid unused variable warning on generated code..
rpcgen(1): Avoid unused variable warning on generated code.
Jan 11 2017, 11:05 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Looking at deprecating the __nonnull() attribute completely, I found a
couple of occurrences in lib/libthr/thread/thr_private.h.

Jan 11 2017, 12:49 AM

Jan 10 2017

pfg committed rS311896: Remove unused __gnu_inline() attribute..
Remove unused __gnu_inline() attribute.
Jan 10 2017, 8:44 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Update copyinstr().

Jan 10 2017, 6:31 PM
pfg added a comment to D9004: Addition of clang nullability attributes..
In D9004#188501, @kib wrote:
In D9004#188458, @pfg wrote:

Update to bring the pop pragmas.

I left the copyinstr(9) as it is for consistency with the previous
declaration. FWIW, according to the manpage the first argument should be a
"NUL-terminated string", not sure conceptually a NULL pointer would
classify.

0 is absolutely (potentially) valid pointer to a userspace string. More, in past there were ABIs where there was a zero-length string located at address zero.

Jan 10 2017, 6:23 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Update to bring the pop pragmas.

Jan 10 2017, 3:59 PM
pfg added inline comments to D9004: Addition of clang nullability attributes..
Jan 10 2017, 3:41 PM
pfg added a comment to D9004: Addition of clang nullability attributes..
In D9004#188426, @kib wrote:

Why is this useful at all ? IMO it adds enormous and useless noise to the headers, while providing a doubtful value, if any.

Note that I am only replacing the very dangerous GCC __nonnull__ attribute with the much more benign clang _Nonnull. Most cases were pre-existing, except for some functions where we are followinh Apple Darwin, in the hope of being more firendly to swift (and clang in the Mac)

Jan 10 2017, 3:29 PM

Jan 9 2017

pfg added a reviewer for D9004: Addition of clang nullability attributes.: kib.

Add kib per the pthread changes.

Jan 9 2017, 8:10 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Update some of the threading functions.
Move the pragmas consistently to the top of the header.
This is a commit candidate.

Jan 9 2017, 8:05 PM

Jan 8 2017

pfg accepted D9093: Fix logic error in gvinum's gv_set_sd_state().

Nice catch, Coverity missed it completely.

Jan 8 2017, 4:53 PM

Jan 6 2017

pfg committed rS311519: MFC r310977:.
MFC r310977:
Jan 6 2017, 4:16 PM

Jan 5 2017

pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#186867, @ngie wrote:
In D9007#186865, @pfg wrote:

...

I am not sure about the MFC: There are 30-something changes in
head that have not been MFC'd (and I am just too lazy to merge them).

:{..

Code should be MFCed though if possible -- otherwise you won't get feedback on your commits until the next .0 release cycle (which will be a couple years from now).

Jan 5 2017, 2:51 AM
pfg committed rS311344: MFC r310976:.
MFC r310976:
Jan 5 2017, 1:28 AM
pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#186863, @ngie wrote:
In D9007#186862, @pfg wrote:
In D9007#186861, @email_piotr-stefaniak.me wrote:
In D9007#186860, @ngie wrote:

I have a potential compromise: please remove the "Makefile" from the commit, integrate your tests into the FreeBSD test suite separately, open another CR for that change, and I'll approve that change once it's complete.

Do you mean it'd be OK to commit the test cases (*.c, *.good, *.pro) without the Makefile? I'd be fine with that.

This doesn't make much sense to me but as I said, if ngie@ approves it I am OK with it too. Please do state in the commit log that the tests are currently disconnected from the build but that you intend to complete them. As before, rember to include a link to the CR.

I can help guide piotr with the integration work, once the test content is present.

Jan 5 2017, 12:35 AM

Jan 4 2017

pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#186861, @email_piotr-stefaniak.me wrote:
In D9007#186860, @ngie wrote:

I have a potential compromise: please remove the "Makefile" from the commit, integrate your tests into the FreeBSD test suite separately, open another CR for that change, and I'll approve that change once it's complete.

Do you mean it'd be OK to commit the test cases (*.c, *.good, *.pro) without the Makefile? I'd be fine with that.

Jan 4 2017, 11:42 PM
pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#186751, @ngie wrote:

...
Put differently, I cannot approve this because it doesn't really integrate into the existing system I contribute to (the FreeBSD Test Suite). If pfg@ approved the commit, it's fine to commit as-is.

Jan 4 2017, 3:45 PM
pfg added a comment to D9007: Add regression tests for indent(1).
In D9007#186525, @pfg wrote:

...

ngie is listed as MAINTAINER for tests, so in this case approval by ngie means I approve it too.

Jan 4 2017, 5:03 AM
pfg committed rS311234: MFC r311012.
MFC r311012
Jan 4 2017, 2:51 AM
pfg committed rS311232: MFC r310705, r310706:.
MFC r310705, r310706:
Jan 4 2017, 2:43 AM
pfg committed rS311231: MFC r310705, r310706:.
MFC r310705, r310706:
Jan 4 2017, 2:42 AM

Jan 3 2017

pfg added a comment to D9004: Addition of clang nullability attributes..

I see, but you write

Turning off -Wnullability-completeness is not an option.

I'm curious why it's not an option.

Jan 3 2017, 6:07 PM
pfg added a comment to D9004: Addition of clang nullability attributes..

I suspect this is fine (haven't yet looked in detail). Is turning off -Wnullability-completeness a nonstarter because we have some headers that are already completely annotated and want to prevent new, unannotated declarations from appearing?

Jan 3 2017, 4:15 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

More cleanups: the pragmas have to appear before *any* pointer is
declared.

Jan 3 2017, 3:52 PM
pfg added a comment to D9007: Add regression tests for indent(1).

Having a license is important and the committer guide specifies a two clause BSD license as the preferred. for new files In this case the license uses more space that the tests though, so perhaps it is worth discussing in the lists the possibility of using a shorter statement like CC0. IANAL ... so I generally avoid such discussions.

Jan 3 2017, 1:33 AM

Jan 2 2017

pfg accepted D9010: indent(1): add option -P for loading user-provided files as profiles.
Jan 2 2017, 7:48 PM
pfg added a comment to D9010: indent(1): add option -P for loading user-provided files as profiles.

Approved: however, do remember to add a line

Jan 2 2017, 7:47 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Update with small cleanups that were breaking world.

Jan 2 2017, 7:30 PM
pfg committed rS311110: patch(1): replace strnlen() with a simpler strlen()..
patch(1): replace strnlen() with a simpler strlen().
Jan 2 2017, 6:27 PM
pfg committed rS311109: Revert r311106:.
Revert r311106:
Jan 2 2017, 6:23 PM
pfg committed rS311106: patch(1): extend the maximum length of a line from USHRT_MAX to UINT_MAX..
patch(1): extend the maximum length of a line from USHRT_MAX to UINT_MAX.
Jan 2 2017, 5:12 PM
pfg committed rS311102: Cleanup inelegant calloc(3) introduced in r310984..
Cleanup inelegant calloc(3) introduced in r310984.
Jan 2 2017, 3:17 PM
pfg committed rS311101: libkvm - extend a bit the swap statistics field..
libkvm - extend a bit the swap statistics field.
Jan 2 2017, 3:12 PM
pfg added a comment to D9010: indent(1): add option -P for loading user-provided files as profiles.

"-P" is OK then.
I can't check easily the length of the lines in phabricator but it's probably fine too as I see longer lines in the original code.

Jan 2 2017, 1:30 AM

Jan 1 2017

pfg added inline comments to D9010: indent(1): add option -P for loading user-provided files as profiles.
Jan 1 2017, 9:07 PM
pfg added a comment to D9010: indent(1): add option -P for loading user-provided files as profiles.

Given that there is a "-npro" option already, how about renaming it to "-ppro"? This would stand for "personalized profile", but I guess we could use custom profile (-cpro) or temporary profile (-tpro). Just trying to make things look consistent ;).

Jan 1 2017, 9:05 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

I figured it out:

Jan 1 2017, 8:19 PM
pfg committed rS311012: Remove some uses of the GCC __nonnull() attribute..
Remove some uses of the GCC __nonnull() attribute.
Jan 1 2017, 5:17 PM
pfg abandoned D9004: Addition of clang nullability attributes..

The '__nonnull()' attribute is rather dangerous, it seems reasonable to replace it with the '_Nonnull' qualifier. Unfortunately it seems like a lot more changes than those from either bionic or Apple are required to build cleanly. Turning off -Wnullability-completeness is not an option.

Jan 1 2017, 4:24 AM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Use of these attributes breaks the build in ugly ways. For example:

Jan 1 2017, 4:15 AM

Dec 31 2016

pfg added a comment to D9007: Add regression tests for indent(1).

Thanks for the review: we do have old tests lying around that don't integrate with ATF. I guess it's sensible to expect that all new test do so. Thanks for the pointers.

Dec 31 2016, 9:41 PM
pfg committed rS310977: Addition of clang nullability qualifiers..
Addition of clang nullability qualifiers.
Dec 31 2016, 3:58 PM
pfg committed rS310976: Move __hidden attribute towards the end of the declaration..
Move __hidden attribute towards the end of the declaration.
Dec 31 2016, 3:30 PM
pfg added a reviewer for D9007: Add regression tests for indent(1): ngie.

I am glad you are passing this through phabricator. I don't have much experience with the testing framework. Let me add the local expert.

Dec 31 2016, 2:16 PM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Minor updates.
While here I should mention, I did strip a bit the indentation in
pthread.h to make it more readable .

Dec 31 2016, 3:31 AM
pfg updated the diff for D9004: Addition of clang nullability attributes..

Learn a bit more from Bionic's libc.

Dec 31 2016, 3:22 AM

Dec 30 2016

pfg retitled D9004: Addition of clang nullability attributes. from to Addition of clang nullability attributes..
Dec 30 2016, 9:55 PM

Dec 28 2016

pfg committed rS310706: Undo small wrong style change..
Undo small wrong style change.
Dec 28 2016, 4:16 PM
pfg committed rS310705: style(9) cleanups..
style(9) cleanups.
Dec 28 2016, 3:43 PM

Dec 26 2016

pfg committed rS310607: MFC r310367:.
MFC r310367:
Dec 26 2016, 4:45 PM
pfg committed rS310606: MFC r310367:.
MFC r310367:
Dec 26 2016, 4:43 PM
pfg committed rS310605: MFC r310367:.
MFC r310367:
Dec 26 2016, 4:42 PM
pfg committed rS310604: MFC r309873:.
MFC r309873:
Dec 26 2016, 4:27 PM

Dec 21 2016

pfg committed rS310370: MFC r310132:.
MFC r310132:
Dec 21 2016, 3:40 PM
pfg committed rS310369: MFC r310132:.
MFC r310132:
Dec 21 2016, 3:39 PM
pfg committed rS310368: MFC r310132:.
MFC r310132:
Dec 21 2016, 3:38 PM
pfg committed rS310367: pax(1): Fix a bug with archives smaller than 512 bytes..
pax(1): Fix a bug with archives smaller than 512 bytes.
Dec 21 2016, 3:27 PM

Dec 16 2016

pfg added a comment to D3189: Experimental Workqueue support.

so it's just missing those atomic ops for MIPS32/MIPS64? It compiles/works fine on other architectures?

Dec 16 2016, 7:55 PM
pfg committed rS310132: libbfd: make sure variables are initialized before using them..
libbfd: make sure variables are initialized before using them.
Dec 16 2016, 12:36 AM
pfg committed rS310131: libbfd: drop unnecessary variable increment..
libbfd: drop unnecessary variable increment.
Dec 16 2016, 12:24 AM

Dec 15 2016

pfg committed rS310119: Give a warm welcome to Piotr Stefaniak to the src committer team..
Give a warm welcome to Piotr Stefaniak to the src committer team.
Dec 15 2016, 4:27 PM

Dec 14 2016

pfg committed rS310091: ed(1): drop redundant parenthesis..
ed(1): drop redundant parenthesis.
Dec 14 2016, 9:14 PM
pfg updated the test plan for D3189: Experimental Workqueue support.
Dec 14 2016, 8:37 PM
pfg added reviewers for D3189: Experimental Workqueue support: rwatson, adrian.

This really needs more help.

Dec 14 2016, 5:32 PM
pfg updated the test plan for D3189: Experimental Workqueue support.
Dec 14 2016, 5:32 PM
pfg updated D3189: Experimental Workqueue support.
Dec 14 2016, 5:31 PM
pfg updated the diff for D3189: Experimental Workqueue support.

Bring some fixes from NextBSD.

Dec 14 2016, 4:16 PM

Dec 12 2016

pfg committed rS309936: ed(1): Simplify some checks..
ed(1): Simplify some checks.
Dec 12 2016, 8:26 PM
pfg committed rS309873: ed(1): Prevent possible overflows during allocation..
ed(1): Prevent possible overflows during allocation.
Dec 12 2016, 3:46 AM

Dec 4 2016

pfg committed rS309524: indent(1): remove unneeded comma..
indent(1): remove unneeded comma.
Dec 4 2016, 3:10 AM

Dec 3 2016

pfg committed rS309490: Revert r253678, r253661:.
Revert r253678, r253661:
Dec 3 2016, 5:44 PM
pfg committed rS309457: MFC r309179:.
MFC r309179:
Dec 3 2016, 12:46 AM
pfg committed rS309456: MFC r309179:.
MFC r309179:
Dec 3 2016, 12:45 AM
pfg committed rS309455: MFC r309179:.
MFC r309179:
Dec 3 2016, 12:43 AM
pfg committed rS309451: Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc..
Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc.
Dec 3 2016, 12:24 AM
pfg closed D8690: Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc. by committing rS309451: Document undocumented indent(1) options badp/nbadp, bs/nbs, and lc..
Dec 3 2016, 12:24 AM