Page MenuHomeFreeBSD
Feed Advanced Search

Jul 31 2016

pfg committed rS303571: indent(1): Bail out if there's no more space on the parser stack..
indent(1): Bail out if there's no more space on the parser stack.
Jul 31 2016, 4:58 AM
pfg added a comment to D6966: Multiple improvements of indent(1).
In D6966#153160, @pfg wrote:
In D6966#153151, @email_piotr-stefaniak.me wrote:

I left out the array bound checks for now: they wouldn't hurt but I am not sure they are necessary

They prevent triggerable undefined behavior; the code in some cases works only by accident. I don't see a reason not to commit those fixes.

I am not against committing them, but I would like to see if there are alternatives.

I meant I want to give a thought on preventing such situations in a cleaner way.

Jul 31 2016, 4:19 AM
pfg added a comment to D6966: Multiple improvements of indent(1).
In D6966#153151, @email_piotr-stefaniak.me wrote:
Jul 31 2016, 4:14 AM
pfg committed rS303570: indent(1): Consistently indent declarations..
indent(1): Consistently indent declarations.
Jul 31 2016, 4:14 AM
pfg committed rS303567: resolvconf(8) now needs an additional @RESTARTCMD@ replacement when installing..
resolvconf(8) now needs an additional @RESTARTCMD@ replacement when installing.
Jul 31 2016, 2:54 AM

Jul 30 2016

pfg committed rS303525: indent(1): Yet more style issues..
indent(1): Yet more style issues.
Jul 30 2016, 1:04 AM

Jul 29 2016

pfg committed rS303523: indent(1): Attempt to preserve some consistent style..
indent(1): Attempt to preserve some consistent style.
Jul 29 2016, 11:30 PM
pfg added a comment to D6966: Multiple improvements of indent(1).
In D6966#153151, @email_piotr-stefaniak.me wrote:

I left out the array bound checks for now: they wouldn't hurt but I am not sure they are necessary

They prevent triggerable undefined behavior; the code in some cases works only by accident. I don't see a reason not to commit those fixes.

Jul 29 2016, 9:41 PM
pfg added a comment to D6966: Multiple improvements of indent(1).
In D6966#153099, @bapt wrote:
Jul 29 2016, 7:49 PM
pfg committed rS303502: indent(1): Use NULL instead of zero for pointers..
indent(1): Use NULL instead of zero for pointers.
Jul 29 2016, 7:36 PM
pfg committed rS303499: indent(1): Support "f" and "F" floating constant suffixes..
indent(1): Support "f" and "F" floating constant suffixes.
Jul 29 2016, 6:00 PM
pfg committed rS303498: Revert r303487: Wrong commit log..
Revert r303487: Wrong commit log.
Jul 29 2016, 5:55 PM
pfg committed rS303489: indent(1): Removed whitespace shouldn't be considered in column calculations..
indent(1): Removed whitespace shouldn't be considered in column calculations.
Jul 29 2016, 4:34 PM
pfg committed rS303487: indent(1): fix struct termination detection..
indent(1): fix struct termination detection.
Jul 29 2016, 4:29 PM
pfg committed rS303485: indent(1): fix struct termination detection..
indent(1): fix struct termination detection.
Jul 29 2016, 4:23 PM
pfg committed rS303484: indent(1): Fix breakage caused by single comment following "else"..
indent(1): Fix breakage caused by single comment following "else".
Jul 29 2016, 4:18 PM
pfg committed rS303483: indent(1): Avoid potential use-after-free..
indent(1): Avoid potential use-after-free.
Jul 29 2016, 4:14 PM
pfg committed rS303482: indent(1): Avoid out of bound access of array codebuf..
indent(1): Avoid out of bound access of array codebuf.
Jul 29 2016, 4:09 PM

Jul 28 2016

pfg committed rS303452: indent: avoid calling write(2) with a negative second parameter..
indent: avoid calling write(2) with a negative second parameter.
Jul 28 2016, 4:54 PM
pfg added a comment to D6966: Multiple improvements of indent(1).
In D6966#152867, @email_piotr-stefaniak.me wrote:
In D6966#152751, @pfg wrote:

Very interesting: All the BSDs fixed the "typdef" typo but indent(1) generally needs much more attention.

That was when I mocked decades-old code for having a typo that nobody seems to have noticed all that time. Some NetBSD and OpenBSD people with commit bits noticed that and fixed it in their BSDs, FreeBSD then just copied that.

Jul 28 2016, 3:48 PM
pfg added a comment to D6966: Multiple improvements of indent(1).

Very interesting: All the BSDs fixed the "typdef" typo but indent(1) generally needs much more attention. Plus the clang-format tool doesn't accept BSD style.

Jul 28 2016, 12:33 AM

Jul 26 2016

pfg committed rS303336: MFC r303046:.
MFC r303046:
Jul 26 2016, 2:12 PM

Jul 25 2016

pfg added inline comments to D7293: Grant-Table User-Space Device.
Jul 25 2016, 6:38 PM
pfg committed rS303305: MFC r302911:.
MFC r302911:
Jul 25 2016, 3:05 PM
pfg committed rS303303: MFC r302911:.
MFC r302911:
Jul 25 2016, 3:04 PM
pfg committed rS303302: MFC r302911:.
MFC r302911:
Jul 25 2016, 3:03 PM
pfg added a comment to D7293: Grant-Table User-Space Device.

The Xen code may have it's own style guide but it might be good to check the style(9) manpage and perhaps the indent(1) example in /usr/share/examples.

Jul 25 2016, 2:27 PM

Jul 21 2016

pfg committed rS303147: binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic..
binutils: fix "Bad value" error in bfd for MIPS when using -Bsymbolic.
Jul 21 2016, 3:26 PM
pfg committed rS303146: sed(1): Appease older GCC..
sed(1): Appease older GCC.
Jul 21 2016, 2:17 PM

Jul 20 2016

pfg committed rS303065: MFC r302973:.
MFC r302973:
Jul 20 2016, 4:49 AM
pfg committed rS303064: MFC r302973:.
MFC r302973:
Jul 20 2016, 4:46 AM
pfg committed rS303062: MFV r298167, r300962, r303048:.
MFV r298167, r300962, r303048:
Jul 20 2016, 3:52 AM

Jul 19 2016

pfg committed rS303049: Tag openresolv 3.8.1.
Tag openresolv 3.8.1
Jul 19 2016, 11:26 PM
pfg committed rS303048: Import openresolv 3.8.1.
Import openresolv 3.8.1
Jul 19 2016, 11:22 PM
pfg committed rS303047: sed(1): Assorted cleanups and simplifications..
sed(1): Assorted cleanups and simplifications.
Jul 19 2016, 10:56 PM
pfg committed rS303046: libc: tag the Rune initialization function prototypes visibility as hidden..
libc: tag the Rune initialization function prototypes visibility as hidden.
Jul 19 2016, 8:22 PM

Jul 17 2016

pfg committed rS302973: sed(1): Fix off by one introduced in r299211..
sed(1): Fix off by one introduced in r299211.
Jul 17 2016, 9:50 PM
pfg committed rS302969: MFC r302511, r302771, r302845:.
MFC r302511, r302771, r302845:
Jul 17 2016, 6:33 PM
pfg committed rS302968: MFC r302511, r302771, r302845:.
MFC r302511, r302771, r302845:
Jul 17 2016, 6:32 PM
pfg committed rS302967: MFC r302511, r302771, r302845:.
MFC r302511, r302771, r302845:
Jul 17 2016, 6:23 PM

Jul 15 2016

pfg committed rS302914: mail(1): Minor declaration updates..
mail(1): Minor declaration updates.
Jul 15 2016, 8:27 PM
pfg committed rS302911: mail(1): Avoid closing negative file descriptors..
mail(1): Avoid closing negative file descriptors.
Jul 15 2016, 7:43 PM
pfg committed rS302903: mail(1): Update more prototypes..
mail(1): Update more prototypes.
Jul 15 2016, 3:38 PM

Jul 14 2016

pfg committed rS302845: mail(1): check for out of memory conditions when calling calloc(3)..
mail(1): check for out of memory conditions when calling calloc(3).
Jul 14 2016, 3:09 PM
pfg committed rS302799: mail(1): Bring some fixes from other BSDs..
mail(1): Bring some fixes from other BSDs.
Jul 14 2016, 2:25 AM

Jul 13 2016

pfg committed rS302776: mail(1): Bring some fixes from other BSDs..
mail(1): Bring some fixes from other BSDs.
Jul 13 2016, 4:45 PM
pfg committed rS302775: MFC r302476:.
MFC r302476:
Jul 13 2016, 4:24 PM
pfg committed rS302774: MFC r302476:.
MFC r302476:
Jul 13 2016, 4:20 PM
pfg committed rS302773: MFC r302476:.
MFC r302476:
Jul 13 2016, 3:52 PM
pfg committed rS302771: mail(1): check for out of memory conditions when calling calloc(3)..
mail(1): check for out of memory conditions when calling calloc(3).
Jul 13 2016, 2:59 PM

Jul 12 2016

pfg committed rS302664: mkimg(1): minor cleanups with argument order in calloc(3)..
mkimg(1): minor cleanups with argument order in calloc(3).
Jul 12 2016, 3:47 PM

Jul 11 2016

pfg committed rS302533: mail(1): Fix a comment..
mail(1): Fix a comment.
Jul 11 2016, 12:03 AM

Jul 10 2016

pfg committed rS302511: mail(1): Invert calloc(3) argument order..
mail(1): Invert calloc(3) argument order.
Jul 10 2016, 2:46 AM

Jul 9 2016

pfg committed rS302476: ng_mppc(4):: basic readability cleanups..
ng_mppc(4):: basic readability cleanups.
Jul 9 2016, 2:33 AM

Jul 8 2016

pfg committed rS302423: Vendor GCC: Bring older verbatim version of cpuid.h.
Vendor GCC: Bring older verbatim version of cpuid.h
Jul 8 2016, 3:39 AM

Jul 5 2016

pfg committed rS302358: Remove incorrect attributes from posix_memalign(3) declaration..
Remove incorrect attributes from posix_memalign(3) declaration.
Jul 5 2016, 10:30 PM

Jun 28 2016

pfg committed rS302244: MFC r301138:.
MFC r301138:
Jun 28 2016, 3:11 AM

Jun 27 2016

pfg committed rS302228: sed(1): convert sed to use REG_STARTEND more explicitly..
sed(1): convert sed to use REG_STARTEND more explicitly.
Jun 27 2016, 8:54 PM

Jun 24 2016

pfg committed rS302169: MFC r300683:.
MFC r300683:
Jun 24 2016, 2:28 AM
pfg committed rS302168: MFC r300683:.
MFC r300683:
Jun 24 2016, 2:24 AM

Jun 23 2016

pfg accepted D6934: Fix gstat's interactive f and q commands.

Yes I had to revert a libedit upgrade affecting lldb.
It is good to less dependent on libedit's weirdness here.

Jun 23 2016, 3:40 PM

Jun 21 2016

pfg committed rS302062: MFC r301549, r301550:.
MFC r301549, r301550:
Jun 21 2016, 3:49 PM
pfg committed rS302061: MFC r301549, r301550:.
MFC r301549, r301550:
Jun 21 2016, 3:48 PM

Jun 17 2016

pfg committed rS301977: MFC r301291:.
MFC r301291:
Jun 17 2016, 2:31 AM
pfg committed rS301976: MFC r301291:.
MFC r301291:
Jun 17 2016, 2:30 AM

Jun 14 2016

pfg committed rS301899: am-utils: Disable keyword expansion..
am-utils: Disable keyword expansion.
Jun 14 2016, 11:41 PM

Jun 13 2016

pfg accepted D6835: makefs: Provide a -T option to set timestamps to a consistent value.

The handling of srandom() looks good.

Jun 13 2016, 10:45 PM
pfg committed rS301875: Remove the SIOCSIFALIFETIME_IN6 ioctl..
Remove the SIOCSIFALIFETIME_IN6 ioctl.
Jun 13 2016, 10:31 PM
pfg closed D5491: Delete SIOCSIFALIFETIME_IN6 as done in NetBSD by committing rS301875: Remove the SIOCSIFALIFETIME_IN6 ioctl..
Jun 13 2016, 10:31 PM
pfg added a comment to D6257: Regex improvement..
In D6257#143415, @avg wrote:
In D6257#140611, @pfg wrote:

This was committed as r300683 but phabricator didn't catch it.

BTW, I think that you should have Closed this request rather than Abandoned it.

Jun 13 2016, 3:31 PM

Jun 11 2016

pfg committed rS301823: MFC r301570:.
MFC r301570:
Jun 11 2016, 4:00 AM
pfg committed rS301822: MFC r301570:.
MFC r301570:
Jun 11 2016, 3:59 AM

Jun 10 2016

pfg committed rS301817: MFC r300301, r300319:.
MFC r300301, r300319:
Jun 10 2016, 10:07 PM
pfg committed rS301816: MFC r300333:.
MFC r300333:
Jun 10 2016, 9:47 PM
pfg added a comment to D5491: Delete SIOCSIFALIFETIME_IN6 as done in NetBSD.

Results form exp-run are good:

Jun 10 2016, 9:39 PM
pfg committed rS301777: Fix regression from r301461..
Fix regression from r301461.
Jun 10 2016, 5:22 AM

Jun 9 2016

pfg committed rS301770: rpcbind(8): Make use of some xdr_* macros..
rpcbind(8): Make use of some xdr_* macros.
Jun 9 2016, 10:25 PM
pfg committed rS301769: libc/rpc: Make use of some xdr_* macros. (part 2).
libc/rpc: Make use of some xdr_* macros. (part 2)
Jun 9 2016, 10:18 PM
pfg committed rS301754: libc/rpc: Make use of some xdr_* macros..
libc/rpc: Make use of some xdr_* macros.
Jun 9 2016, 7:44 PM
pfg committed rS301744: MFC r301513:.
MFC r301513:
Jun 9 2016, 4:30 PM
pfg committed rS301743: MFC r301513:.
MFC r301513:
Jun 9 2016, 4:29 PM

Jun 8 2016

pfg committed rS301691: Revert r301689 - one-true-awk: Avoid a NULL dereference..
Revert r301689 - one-true-awk: Avoid a NULL dereference.
Jun 8 2016, 7:40 PM
pfg committed rS301689: one-true-awk: Avoid a NULL dereference..
one-true-awk: Avoid a NULL dereference.
Jun 8 2016, 7:24 PM
pfg added a comment to D5491: Delete SIOCSIFALIFETIME_IN6 as done in NetBSD.

Perhaps this should be done for 11, and not later?

Jun 8 2016, 1:26 AM
pfg committed rS301570: libsupc++: Fix typo in symbol map..
libsupc++: Fix typo in symbol map.
Jun 8 2016, 12:30 AM

Jun 7 2016

pfg committed rS301569: ext2fs: Stop dropping and reacquiring Giant around geom calls..
ext2fs: Stop dropping and reacquiring Giant around geom calls.
Jun 7 2016, 9:41 PM
pfg committed rS301560: ext2fs: rearrange ext4_bmapext()..
ext2fs: rearrange ext4_bmapext().
Jun 7 2016, 6:23 PM
pfg committed rS301559: ext2fs(5): Cosmetic cleanups, mostly to the ext4 code..
ext2fs(5): Cosmetic cleanups, mostly to the ext4 code.
Jun 7 2016, 5:09 PM
pfg committed rS301550: ng_mppc(4): Bring netgraph(3) MPPC compression support..
ng_mppc(4): Bring netgraph(3) MPPC compression support.
Jun 7 2016, 3:21 PM
pfg committed rS301549: ng_mppc(4): Bring netgraph(3) MPPC compression support..
ng_mppc(4): Bring netgraph(3) MPPC compression support.
Jun 7 2016, 3:07 PM
pfg closed D6739: Add MPPC for netgraph implementation. by committing rS301549: ng_mppc(4): Bring netgraph(3) MPPC compression support..
Jun 7 2016, 3:07 PM
pfg committed rS301548: ext2fs: cleanup generation number management..
ext2fs: cleanup generation number management.
Jun 7 2016, 2:38 PM

Jun 6 2016

pfg updated the diff for D6739: Add MPPC for netgraph implementation..

Forgot to include the man page change.

Jun 6 2016, 8:20 PM
pfg added a reviewer for D6739: Add MPPC for netgraph implementation.: network.
Jun 6 2016, 8:12 PM
pfg retitled D6739: Add MPPC for netgraph implementation. from to Add MPPC for netgraph implementation..
Jun 6 2016, 8:11 PM
pfg added a comment to D6733: Replace the LCG in sched_random() with an Xorshift RNG..
In D6733#141965, @ache wrote:
In D6733#141957, @pfg wrote:

I can't really do much to optimize the xorshift, and it doesn't seem like the LCG is being optimized away by the compiler.

Even if the code is called once per each CPU, I don't see this affecting seriously the startup time, but I have no good reason to pessimize sched_random() so abandon this revision. Thanks for the review!

You can make it faster than 24 times. Just use xor64() from the paper (with 64bit types) on amd64 machine and xor() you already use (with 32bit types) on i386. Maximum slowness should be about 2 times then. LCG can't be optimized away, computer just can't calculate such big loops as in my test while compiling.
For 64-bit machines there is another simple xorshift PRNG from Marsaglia paper:
unsigned long long xor64(){
static unsigned long long x=88172645463325252LL;
xˆ=(x<<13); xˆ=(x>>7); return (xˆ=(x<<17));

Jun 6 2016, 4:16 PM
pfg committed rS301513: indent(1): Fix typo..
indent(1): Fix typo.
Jun 6 2016, 4:11 PM
pfg committed rS301507: MFC r301235:.
MFC r301235:
Jun 6 2016, 1:32 PM
pfg committed rS301506: MFC r301235:.
MFC r301235:
Jun 6 2016, 1:31 PM
pfg abandoned D6733: Replace the LCG in sched_random() with an Xorshift RNG..

I can't really do much to optimize the xorshift, and it doesn't seem like the LCG is being optimized away by the compiler.

Jun 6 2016, 1:22 PM