Page MenuHomeFreeBSD
Feed Advanced Search

Oct 29 2021

pstef added inline comments to D32672: beep(1): Initial version of utility to create terminal beep via soundcard..
Oct 29 2021, 5:32 PM

Oct 27 2021

pstef added a comment to D32672: beep(1): Initial version of utility to create terminal beep via soundcard..

Very minor nits, ok to ignore.

Oct 27 2021, 3:55 PM

Oct 26 2021

pstef added inline comments to D32672: beep(1): Initial version of utility to create terminal beep via soundcard..
Oct 26 2021, 8:48 PM
pstef added a comment to D32672: beep(1): Initial version of utility to create terminal beep via soundcard..

Excuse me, but I only have stylistic questions.

Oct 26 2021, 8:43 PM

Oct 18 2021

pstef accepted D32543: vt: Disable bell by default.

Absolutely.

Oct 18 2021, 9:11 AM

Oct 11 2021

pstef added a reverting change for rG8e67c427b501: last(1): unbreak for 8-bit locales: rG902cde5d0a62: Revert "last(1): unbreak for 8-bit locales".
Oct 11 2021, 5:05 PM
pstef committed rG902cde5d0a62: Revert "last(1): unbreak for 8-bit locales" (authored by pstef).
Revert "last(1): unbreak for 8-bit locales"
Oct 11 2021, 5:05 PM
pstef committed rG4f556830dec1: nanosleep.2: use appropriate macros (authored by pstef).
nanosleep.2: use appropriate macros
Oct 11 2021, 5:05 PM
pstef committed rG8da27052535b: last: improve non-UTF8 locale output after libxo support was added (authored by pstef).
last: improve non-UTF8 locale output after libxo support was added
Oct 11 2021, 5:05 PM
pstef closed D32437: last: improve non-UTF8 locale output after libxo support was added.
Oct 11 2021, 5:05 PM

Oct 10 2021

pstef requested review of D32437: last: improve non-UTF8 locale output after libxo support was added.
Oct 10 2021, 7:21 AM

Oct 8 2021

pstef committed rGbf8f6ffcb66a: Mention kern.timecounter.alloweddeviation in nanosleep.1 (authored by pstef).
Mention kern.timecounter.alloweddeviation in nanosleep.1
Oct 8 2021, 3:09 PM

Oct 5 2021

pstef added a comment to D13408: add missing library descriptions to mandoc.

Correct me if I'm wrong but since we're downstream, we want both this and D23944 to get pushed upstream first?

Oct 5 2021, 7:19 PM

Oct 3 2021

pstef accepted D32144: fstyp: Remove __packed from struct exfat_de_label..

First of all, sorry about this - I believe I caused this issue by bumping WARNS to default without first testing the change with gcc. I have now installed gcc9 in order to test future changes like this, in the hope that I can avoid making mess like this.

Oct 3 2021, 3:42 PM

Sep 29 2021

pstef added a comment to D30341: mount(8): Add libxo(3) support.
In D30341#727179, @phil wrote:
Sep 29 2021, 7:58 PM

Sep 27 2021

pstef committed rG260f26f035af: mount: make libxo support more locale-aware (authored by pstef).
mount: make libxo support more locale-aware
Sep 27 2021, 5:14 AM

Sep 25 2021

pstef added inline comments to D29070: find(1): Don't skip unreadable directories in -depth mode.
Sep 25 2021, 7:30 PM
pstef added inline comments to D29070: find(1): Don't skip unreadable directories in -depth mode.
Sep 25 2021, 7:18 PM
pstef committed rGa8446d4124d0: diff3: document and test -T (authored by pstef).
diff3: document and test -T
Sep 25 2021, 8:43 AM
pstef committed rGdbabfd7e2676: diff3: implement --strip-trailing-cr (authored by pstef).
diff3: implement --strip-trailing-cr
Sep 25 2021, 8:43 AM
pstef committed rG000d03450ba0: diff3.1: update manual page to match code (authored by pstef).
diff3.1: update manual page to match code
Sep 25 2021, 8:43 AM
pstef committed rG4bfbc5fbc93b: diff3: sync with upstream (authored by pstef).
diff3: sync with upstream
Sep 25 2021, 8:43 AM
pstef committed rG216bf478e247: diff3: improve style (authored by pstef).
diff3: improve style
Sep 25 2021, 8:43 AM
pstef committed rGcc81fdf42549: Register /usr/tests/usr.bin/diff3 (authored by pstef).
Register /usr/tests/usr.bin/diff3
Sep 25 2021, 8:43 AM
pstef committed rGbda949b6efdf: diff: read whole files to determine if they are ASCII text (authored by pstef).
diff: read whole files to determine if they are ASCII text
Sep 25 2021, 8:43 AM
pstef committed rGece58f7ada40: diff: don't output carriage returns that were stripped on input (authored by pstef).
diff: don't output carriage returns that were stripped on input
Sep 25 2021, 8:43 AM
pstef committed rGec5849afc86c: sh: improve command completion (authored by pstef).
sh: improve command completion
Sep 25 2021, 8:43 AM
pstef committed rGb2b7eb9e23dc: sh: improve command completion (authored by pstef).
sh: improve command completion
Sep 25 2021, 8:42 AM
pstef committed rG14fb8056ceef: sh: reset sh bindings on bind -e, bind -v (authored by pstef).
sh: reset sh bindings on bind -e, bind -v
Sep 25 2021, 8:42 AM
pstef committed rG8acee856bfc8: fstyp: bump WARNS to default and work around warnings (authored by pstef).
fstyp: bump WARNS to default and work around warnings
Sep 25 2021, 8:42 AM
pstef committed rGa7ce2cf0ff40: Update a sysctl name to nbuffers_pcpu in hwpmc.4 and pmcstat.c (authored by pstef).
Update a sysctl name to nbuffers_pcpu in hwpmc.4 and pmcstat.c
Sep 25 2021, 8:42 AM

Sep 24 2021

pstef closed D30341: mount(8): Add libxo(3) support.
Sep 24 2021, 9:10 PM
pstef committed rGe725ee7eb672: mount: add libxo(3) support (authored by me_cameronkatri.com).
mount: add libxo(3) support
Sep 24 2021, 9:10 PM
pstef accepted D21903: Add per-process flag to disable logsigexit.

I haven't tested it, but I imagine many people would like to use this, me included.

Sep 24 2021, 8:52 PM
pstef requested changes to D29070: find(1): Don't skip unreadable directories in -depth mode.
Sep 24 2021, 8:27 PM
pstef added a comment to D29070: find(1): Don't skip unreadable directories in -depth mode.

@tavianator_tavianator.com this worked for me, could you check?

atf_test_case find_depth_error
find_depth_error_head()
{
	atf_set "descr" "Verifies that unreadable directories are still " \
	    "reported in -depth mode"
	atf_set "require.user" "unprivileged"
}
find_depth_error_body()
{
	atf_check -s exit:0 mkdir -p test/dir
	atf_check -s exit:0 chmod -r test
Sep 24 2021, 8:26 PM
pstef committed rGbf27a2253f6b: ps: fix `ps -aa` (authored by sigsys_gmail.com).
ps: fix `ps -aa`
Sep 24 2021, 7:22 PM
pstef closed D27215: fix `ps -aa`.
Sep 24 2021, 7:21 PM
pstef accepted D23505: atkbdc: convert lock into an actual mutex.

Looks good to me.

Sep 24 2021, 2:39 PM
pstef added inline comments to D22275: Document procfs(5) as obsolete.
Sep 24 2021, 2:03 PM
pstef commandeered D28402: diff: mmap the file to be diffed.

Swim or surrender!

Sep 24 2021, 1:31 PM
pstef added a comment to D32098: ncurses: split libtinfo from libncurses.

The message, if it is to become a commit message, could use some word-smithing. Here's my try at improving it:

Sep 24 2021, 1:21 PM
pstef added a comment to D21571: sh(1): Document the special underscore parameter ("$_").

@0mp do you plan to work on this?

Sep 24 2021, 11:20 AM
pstef added inline comments to D21543: enigma(1): Restyle code, fix salt bug, reword manual, other improvements.
Sep 24 2021, 11:08 AM
pstef accepted D20796: Add tests for expand_number(3)..
@jhb wrote:

Should we only support decimal since that is what humanize_number(3) generates?

My answer would be a no. Input might come from elsewhere and this is true for code that possibly exists now and also code that might be written in the future.

Should we support negative numbers?

It would be a nice feature, but seems out of scope of this change.

One more question, should we fail for trailing garbage? I think we should but we don't currently.

I think we should, as it seems that a consumer would still be able to accept the result regardless (by reading num and ignoring the returned -1). But I'd suggest doing that via separate review/commit in order avoid blocking this one.

Sep 24 2021, 10:41 AM
pstef added a comment to D20270: Replace the single linked list of exported file system structures with a hash table of lists.

This appears to have been committed as 46a6b5c4513e6e32e5ee7104ac97b8352d466805.

Sep 24 2021, 10:22 AM
pstef added inline comments to D30341: mount(8): Add libxo(3) support.
Sep 24 2021, 9:34 AM
pstef added inline comments to D30341: mount(8): Add libxo(3) support.
Sep 24 2021, 8:06 AM

Sep 23 2021

pstef added inline comments to D30341: mount(8): Add libxo(3) support.
Sep 23 2021, 9:11 PM
pstef added a comment to D30012: cp(1): Make -P work without -R as per POSIX.

Would you like to add some tests to cp_test.sh?

Sep 23 2021, 8:47 PM
pstef added a comment to D27215: fix `ps -aa`.

I thought about this more and I have a question. What should the result of ps -uxaa -U $(id -un) be? Should it only list my processes (-U) or all of them (-a)? I think we might need an additional change like this:

Sep 23 2021, 6:36 PM
pstef accepted D27215: fix `ps -aa`.

Looks good to me.

Sep 23 2021, 5:11 PM
pstef added a comment to D27228: strlcpy/strlcat: Remove references to snprintf.

While these are simila to snprintf, it's not ultimately helpful to say they are the same.

Sep 23 2021, 4:41 PM
pstef accepted D27567: Make the private libsqlite3 lib use pread/pwrite.

Looks good to me.

Sep 23 2021, 4:31 PM
pstef added inline comments to D28488: ctags(1): Add recursive support..
Sep 23 2021, 4:21 PM
pstef accepted D29007: address a performance problem w/ partial sscanf on long strings....
Sep 23 2021, 4:14 PM
pstef added a comment to D29070: find(1): Don't skip unreadable directories in -depth mode.

Added a test to find_test.sh. The test fails when run as root though.

Sep 23 2021, 3:44 PM

Sep 22 2021

pstef committed rG1f82fb383410: sh: try to avoid overwriting HISTFILE produced by other shells (authored by pstef).
sh: try to avoid overwriting HISTFILE produced by other shells
Sep 22 2021, 8:26 PM
pstef committed rGc866d0c798a2: sh: improve command completion (authored by pstef).
sh: improve command completion
Sep 22 2021, 8:26 PM
pstef committed rG9413dfd331e7: sh: reset sh bindings on bind -e, bind -v (authored by pstef).
sh: reset sh bindings on bind -e, bind -v
Sep 22 2021, 9:02 AM

Sep 19 2021

pstef committed rG97c31821eb0b: ls(1): Allow LSCOLORS to specify an underline (authored by me_cameronkatri.com).
ls(1): Allow LSCOLORS to specify an underline
Sep 19 2021, 11:55 AM
pstef closed D30547: ls(1): Allow LSCOLORS to specify an underline.
Sep 19 2021, 11:54 AM
pstef committed rGda0c0e012157: fstyp: bump WARNS to default and work around warnings (authored by pstef).
fstyp: bump WARNS to default and work around warnings
Sep 19 2021, 11:54 AM
pstef closed D31588: fstyp: bump WARNS to default and work around warnings.
Sep 19 2021, 11:54 AM
pstef committed rGb8ff849cbddf: sh: improve command completion (authored by pstef).
sh: improve command completion
Sep 19 2021, 11:54 AM

Sep 18 2021

pstef added inline comments to D30547: ls(1): Allow LSCOLORS to specify an underline.
Sep 18 2021, 7:54 AM

Sep 17 2021

pstef added inline comments to D30547: ls(1): Allow LSCOLORS to specify an underline.
Sep 17 2021, 6:20 PM
pstef added a comment to D31706: sh: improve emacs mode.
In D31706#715350, @bapt wrote:

OK, but perhaps this fix should be in libedit instead. The same issue can be seen in other libedit clients such as ftp(1).

my plan is to first commit in sh(1) and have behaving correctly, then I will work on fixing libedit. (and discuss with upstream) for sure I will drop those lines from sh(1) once they are in libedit for long enough.

Sep 17 2021, 5:46 PM

Sep 16 2021

pstef committed rG12061d2626e0: diff: link with libm for sqrt() (authored by pstef).
diff: link with libm for sqrt()
Sep 16 2021, 7:33 AM
pstef added a comment to D29493: sh: implement persistent history storage.

I thought about this problem more. I think it would satisfy all scenarios if we made the history save dependent on whether the load was successful or not. Something similar to this (compiled, untested):

Sep 16 2021, 12:38 AM
pstef committed rGf38702e5a52e: diff(1): Add --color support (authored by me_cameronkatri.com).
diff(1): Add --color support
Sep 16 2021, 12:01 AM
pstef committed rGe51aabf8cbb9: diff: implement option -F (--show-function-line) (authored by pstef).
diff: implement option -F (--show-function-line)
Sep 16 2021, 12:00 AM
pstef committed rG7760b8541418: diff: decrease indent level (authored by pstef).
diff: decrease indent level
Sep 16 2021, 12:00 AM
pstef committed rG2171b2cbe084: diff: avoid applying offsets to null pointer (authored by pstef).
diff: avoid applying offsets to null pointer
Sep 16 2021, 12:00 AM
pstef committed rGbcf2e78dc483: diff: replace isqrt() with sqrt() (authored by pstef).
diff: replace isqrt() with sqrt()
Sep 16 2021, 12:00 AM
pstef committed rGe43df07e3725: diff: move functions around and reduce their visibility (authored by pstef).
diff: move functions around and reduce their visibility
Sep 16 2021, 12:00 AM
pstef committed rGb5541f456d64: diff: convert boolean flag variables to bool (authored by pstef).
diff: convert boolean flag variables to bool
Sep 16 2021, 12:00 AM
pstef closed D31714: diff: implement -F (--show-function-line).
Sep 16 2021, 12:00 AM
pstef closed D30545: diff(1): Add --color support.
Sep 16 2021, 12:00 AM
pstef committed rG03582021117f: diff: improve code style (authored by pstef).
diff: improve code style
Sep 16 2021, 12:00 AM

Sep 15 2021

pstef closed D31540: mount: improve error message for invalid filesystem names.
Sep 15 2021, 2:33 PM
pstef committed rG6e8272f317b8: mount: improve error message for invalid filesystem names (authored by pstef).
mount: improve error message for invalid filesystem names
Sep 15 2021, 2:33 PM

Sep 5 2021

pstef added a comment to D31843: Vendor import of NetBSD's testsuite at 2021-09-05.

I may be confused about tests and suits, but I think we have our own test suite for indent which NetBSD has taken and modified together with the program - and it seems to be coming back like a boomerang with this differential. I think theirs are not compatible unless we take in their changes. And it may be problematic, because I remember thinking that some of their changes would have to be improved before importing back to FreeBSD.

Sep 5 2021, 12:48 PM
pstef added a comment to D30545: diff(1): Add --color support.

I made some stylistic changes and rebased this patch on top of it. I also modified it to clear color (especially background color) before newlines.
Are you OK with me committing your change like this?

Sep 5 2021, 7:55 AM

Sep 4 2021

pstef accepted D30545: diff(1): Add --color support.
Sep 4 2021, 8:26 PM
pstef added inline comments to D30545: diff(1): Add --color support.
Sep 4 2021, 7:52 PM

Aug 30 2021

pstef added a comment to D31706: sh: improve emacs mode.

By the way, since this is in histedit(), the binding won't survive bind -e which ultimately does keymacro_reset() and the binding from histedit() never get the chance to be restored. I think bindcmd() should call histedit() somewhere near the INTON. histedit() should be clever enough to do only the if (el) { part that is expanded in this patch.

#0  keymacro_reset (el=el@entry=0x800a41000) at /usr/src/contrib/libedit/keymacro.c:165
#1  0x000000080028e30d in map_init_emacs (el=el@entry=0x800a41000) at /usr/src/contrib/libedit/map.c:1068
#2  0x000000080028eae1 in map_bind (el=0x800a41000, argc=1, argv=<optimized out>) at /usr/src/contrib/libedit/map.c:1296
#3  0x000000080028f1eb in el_wparse (el=<optimized out>, el@entry=0x800a41000, argc=argc@entry=2, argv=0x800ad12a0) at /usr/src/contrib/libedit/parse.c:130
#4  0x000000080028624a in el_parse (el=0x800a41000, argc=argc@entry=2, argv=<optimized out>, argv@entry=0x800aa3480) at /usr/src/contrib/libedit/eln.c:97
#5  0x00000000002166dd in bindcmd (argc=2, argv=0x800aa3480) at /usr/src/bin/sh/histedit.c:557
Aug 30 2021, 9:03 AM

Aug 29 2021

pstef requested review of D31714: diff: implement -F (--show-function-line).
Aug 29 2021, 7:37 PM
pstef closed D31704: Update sysctl name in hwpmc.4 and pmcstat.
Aug 29 2021, 7:26 PM
pstef committed rG0939f965d80d: Update a sysctl name to nbuffers_pcpu in hwpmc.4 and pmcstat.c (authored by pstef).
Update a sysctl name to nbuffers_pcpu in hwpmc.4 and pmcstat.c
Aug 29 2021, 7:26 PM

Aug 28 2021

pstef accepted D31706: sh: improve emacs mode.
Aug 28 2021, 1:56 PM
pstef added a reviewer for D31588: fstyp: bump WARNS to default and work around warnings: trasz.
Aug 28 2021, 8:35 AM
pstef updated the diff for D31704: Update sysctl name in hwpmc.4 and pmcstat.
Aug 28 2021, 8:31 AM
pstef committed rGb25642d653ba: sh: fix NO_HISTORY build (authored by pstef).
sh: fix NO_HISTORY build
Aug 28 2021, 8:22 AM
pstef committed rGff5f61e07d70: ls: prevent no-color build from complaining when COLORTERM is non-empty (authored by pstef).
ls: prevent no-color build from complaining when COLORTERM is non-empty
Aug 28 2021, 8:22 AM
pstef committed rGa346729d1c3f: mount.h: improve a comment about flags (authored by pstef).
mount.h: improve a comment about flags
Aug 28 2021, 8:21 AM
pstef committed rG6558f29ac87a: fstyp: add BeFS support (authored by pstef).
fstyp: add BeFS support
Aug 28 2021, 8:21 AM
pstef committed rGe5db193a6579: style.9: remove an outdated comment about indent(1) (authored by pstef).
style.9: remove an outdated comment about indent(1)
Aug 28 2021, 8:21 AM

Aug 27 2021

pstef requested review of D31704: Update sysctl name in hwpmc.4 and pmcstat.
Aug 27 2021, 8:04 PM

Aug 25 2021

pstef added a comment to D30545: diff(1): Add --color support.

And I'm leaning towards never being the default here, like in ls(1).

Aug 25 2021, 8:33 PM