Re: null-terminated vs. nul-terminated

2022-03-26 Thread Greg Troxel
Taylor R Campbell writes: >> Date: Sat, 26 Mar 2022 16:53:19 +0100 >> From: Roland Illig >> >> The term "null-terminated string" is quite common when talking about C. >> In contrast, the word "nul" in "nul-terminated" always reminds me of >> the character abbreviation in ASCII, which has a

CVS commit: src/lib/libc/gen

2022-03-26 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Sun Mar 27 00:32:15 UTC 2022 Modified Files: src/lib/libc/gen: popen.3 Log Message: popen.3: revert s/null-/nul-/ change, this is subject to debate To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/lib/libc/gen

2022-03-26 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Sun Mar 27 00:32:15 UTC 2022 Modified Files: src/lib/libc/gen: popen.3 Log Message: popen.3: revert s/null-/nul-/ change, this is subject to debate To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/sys/arch/mips/cavium

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:38:00 UTC 2022 Modified Files: src/sys/arch/mips/cavium: octeon_intr.c Log Message: mips/cavium: Simplify membars around interrupt establishment. Previously I used xc_barrier to ensure the initialization of the

CVS commit: src/sys/arch/mips/cavium

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:38:00 UTC 2022 Modified Files: src/sys/arch/mips/cavium: octeon_intr.c Log Message: mips/cavium: Simplify membars around interrupt establishment. Previously I used xc_barrier to ensure the initialization of the

CVS commit: src/sys/dev/ic

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:35:57 UTC 2022 Modified Files: src/sys/dev/ic: igpio.c Log Message: igpio(4): Use device_xname, not struct device members. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/igpio.c

CVS commit: src/sys/dev/ic

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:35:57 UTC 2022 Modified Files: src/sys/dev/ic: igpio.c Log Message: igpio(4): Use device_xname, not struct device members. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/igpio.c

CVS commit: src/sys/dev/ic

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:35:35 UTC 2022 Modified Files: src/sys/dev/ic: igpio.c igpioreg.h Log Message: igpio(4): Nix trailing whitespace. (setq show-trailing-whitespace t), M-x delete-trailing-whitespace To generate a diff of this

CVS commit: src/sys/dev/ic

2022-03-26 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 26 19:35:35 UTC 2022 Modified Files: src/sys/dev/ic: igpio.c igpioreg.h Log Message: igpio(4): Nix trailing whitespace. (setq show-trailing-whitespace t), M-x delete-trailing-whitespace To generate a diff of this

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Jason Thorpe
> On Mar 26, 2022, at 9:39 AM, Taylor R Campbell > wrote: > > `C string' is ambiguous because there are also char arrays that > function as strings but which are not guaranteed to be NUL-terminated, > as strncpy is intended for. A non-terminated char array is not a C-string. The term

CVS commit: src/sys/arch/amiga/dev

2022-03-26 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sat Mar 26 17:15:18 UTC 2022 Modified Files: src/sys/arch/amiga/dev: grfabs_cc.c Log Message: s/logial/logical/ To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/arch/amiga/dev/grfabs_cc.c Please note that

CVS commit: src/sys/arch/amiga/dev

2022-03-26 Thread Andrius Varanavicius
Module Name:src Committed By: andvar Date: Sat Mar 26 17:15:18 UTC 2022 Modified Files: src/sys/arch/amiga/dev: grfabs_cc.c Log Message: s/logial/logical/ To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/arch/amiga/dev/grfabs_cc.c Please note that

CVS commit: src/distrib/sparc/miniroot

2022-03-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 26 17:11:20 UTC 2022 Modified Files: src/distrib/sparc/miniroot: Makefile.inc Log Message: grow (for llvm) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/distrib/sparc/miniroot/Makefile.inc Please

CVS commit: src/distrib/sparc/miniroot

2022-03-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 26 17:11:20 UTC 2022 Modified Files: src/distrib/sparc/miniroot: Makefile.inc Log Message: grow (for llvm) To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/distrib/sparc/miniroot/Makefile.inc Please

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Jason Thorpe
> On Mar 26, 2022, at 9:09 AM, Warner Losh wrote: > > Since all the 'C' standards[*] use "null-terminated" and "null character", > it's likely best to use that terminology because there is a source of truth > for its definition in case of ambiguity or doubt. Ah, but you're giving up the

CVS commit: src/distrib/sandpoint/ramdisk

2022-03-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 26 17:09:53 UTC 2022 Modified Files: src/distrib/sandpoint/ramdisk: Makefile Log Message: grow To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/distrib/sandpoint/ramdisk/Makefile Please note that

CVS commit: src/distrib/sandpoint/ramdisk

2022-03-26 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 26 17:09:53 UTC 2022 Modified Files: src/distrib/sandpoint/ramdisk: Makefile Log Message: grow To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/distrib/sandpoint/ramdisk/Makefile Please note that

Re: null-terminated vs. nul-terminated

2022-03-26 Thread Roland Illig
Am 26.03.2022 um 17:09 schrieb Warner Losh: [*] I've not gone the extra mile and checked to see if K used this phrase, to be honest. It does. The book from 1978 says in its tutorial section: > getline puts the character \0 (the null character, whose value > is zero) at the end of the array

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Warner Losh
On Sat, Mar 26, 2022 at 9:53 AM Roland Illig wrote: > Am 24.03.2022 um 02:55 schrieb David H. Gutteridge: > > Module Name: src > > Committed By: gutteridge > > Date: Thu Mar 24 01:55:15 UTC 2022 > > > > Modified Files: > > src/lib/libc/gen: popen.3 > > > > Log Message: > >

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Taylor R Campbell
> Date: Sat, 26 Mar 2022 16:53:19 +0100 > From: Roland Illig > > The term "null-terminated string" is quite common when talking about C. > In contrast, the word "nul" in "nul-terminated" always reminds me of > the character abbreviation in ASCII, which has a narrower scope than C. > I prefer

CVS commit: src/tests/lib/libc/sys

2022-03-26 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 26 16:22:50 UTC 2022 Modified Files: src/tests/lib/libc/sys: t_ptrace_core_wait.h Log Message: Add sparc* to the list of architectures that need an explicit address with PT_CONTINUE in this test. To generate a diff of

CVS commit: src/tests/lib/libc/sys

2022-03-26 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 26 16:22:50 UTC 2022 Modified Files: src/tests/lib/libc/sys: t_ptrace_core_wait.h Log Message: Add sparc* to the list of architectures that need an explicit address with PT_CONTINUE in this test. To generate a diff of

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Jason Thorpe
> On Mar 26, 2022, at 9:17 AM, Martin Husemann wrote: > When talking about it I prefer "zero terminated", or C-string, in > contrast to C++ std::string (which are objects) or Pascal strings > (which have an explicit length at the beginning). Yes, I also prefer the term “C-string" -- thorpej

Re: null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Martin Husemann
On Sat, Mar 26, 2022 at 04:53:19PM +0100, Roland Illig wrote: > The term "null-terminated string" is quite common when talking about C. NULL terminated lists/array are quite common, but NULL is a pointer and the string is terminated by a 0 char (sometimes spelled as \0 in a string literal, but

CVS commit: src/lib/libcurses

2022-03-26 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sat Mar 26 16:03:02 UTC 2022 Modified Files: src/lib/libcurses: newwin.c Log Message: __makenew: use calloc to get zeroed memory for window contents. PR lib/56767. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65

CVS commit: src/lib/libcurses

2022-03-26 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sat Mar 26 16:03:02 UTC 2022 Modified Files: src/lib/libcurses: newwin.c Log Message: __makenew: use calloc to get zeroed memory for window contents. PR lib/56767. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65

null-terminated vs. nul-terminated (was: Re: CVS commit: src/lib/libc/gen)

2022-03-26 Thread Roland Illig
Am 24.03.2022 um 02:55 schrieb David H. Gutteridge: Module Name:src Committed By: gutteridge Date: Thu Mar 24 01:55:15 UTC 2022 Modified Files: src/lib/libc/gen: popen.3 Log Message: popen.3: minor spelling, grammar, style, and xref tweaks To generate a diff of this

CVS commit: src/usr.bin/make

2022-03-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Mar 26 15:39:58 UTC 2022 Modified Files: src/usr.bin/make: make.1 Log Message: Mention 'make -r' with .POSIX To generate a diff of this commit: cvs rdiff -u -r1.306 -r1.307 src/usr.bin/make/make.1 Please note that diffs are

CVS commit: src/usr.bin/make

2022-03-26 Thread Simon J. Gerraty
Module Name:src Committed By: sjg Date: Sat Mar 26 15:39:58 UTC 2022 Modified Files: src/usr.bin/make: make.1 Log Message: Mention 'make -r' with .POSIX To generate a diff of this commit: cvs rdiff -u -r1.306 -r1.307 src/usr.bin/make/make.1 Please note that diffs are

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:34:07 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: directive.exp opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp opt-debug-var.exp

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:34:07 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: directive.exp opt-debug-graph1.exp opt-debug-graph2.exp opt-debug-graph3.exp opt-debug-var.exp

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:17:47 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: deptgt-makeflags.exp directive-unexport-env.exp vardebug.exp varmod-defined.exp

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:17:47 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: deptgt-makeflags.exp directive-unexport-env.exp vardebug.exp varmod-defined.exp

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:02:40 UTC 2022 Modified Files: src/usr.bin/make: make.h trace.c var.c Log Message: make: prefer 'long long' over 'long' on 32-bit C99 platforms When sorting the words of an expression numerically using the modifier

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 14:02:40 UTC 2022 Modified Files: src/usr.bin/make: make.h trace.c var.c Log Message: make: prefer 'long long' over 'long' on 32-bit C99 platforms When sorting the words of an expression numerically using the modifier

CVS commit: src/sys/dev/cardbus

2022-03-26 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 26 13:41:16 UTC 2022 Modified Files: src/sys/dev/cardbus: cardbus.c Log Message: When reading CIS tuples from a BAR, do not blindly copy 2k of data (or to the end of the BAR space), but instead follow the tuples and stop

CVS commit: src/sys/dev/cardbus

2022-03-26 Thread Martin Husemann
Module Name:src Committed By: martin Date: Sat Mar 26 13:41:16 UTC 2022 Modified Files: src/sys/dev/cardbus: cardbus.c Log Message: When reading CIS tuples from a BAR, do not blindly copy 2k of data (or to the end of the BAR space), but instead follow the tuples and stop

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 13:32:32 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: opt-env.exp opt-env.mk opt-file.mk Log Message: make: clean up comments To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 13:32:32 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: opt-env.exp opt-env.mk opt-file.mk Log Message: make: clean up comments To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 12:44:57 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: Makefile directive-undef.mk Log Message: make: fix crash on .undef of an environment variable (since 2020-10-06) To

CVS commit: src/usr.bin/make

2022-03-26 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Mar 26 12:44:57 UTC 2022 Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: Makefile directive-undef.mk Log Message: make: fix crash on .undef of an environment variable (since 2020-10-06) To

Re: CVS commit: src/lib/libc/time

2022-03-26 Thread Christos Zoulas
In article <977b81a4-d330-6722-7ce4-cc4e61011...@gmx.de>, Roland Illig wrote: >Am 25.03.2022 um 22:25 schrieb Christos Zoulas: >> In article <20220325183551.0f039f...@cvs.netbsd.org>, >> Roland Illig wrote: >>> -=-=-=-=-=- >>> >>> Module Name:src >>> Committed By: rillig >>> Date:

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:49:27 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Add terminology comments. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/dev/audio/audio.c Please note that diffs are

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:49:27 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Add terminology comments. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/sys/dev/audio/audio.c Please note that diffs are

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:43:36 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Improve comments. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/dev/audio/audio.c Please note that diffs are not

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:43:36 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Improve comments. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/sys/dev/audio/audio.c Please note that diffs are not

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:41:12 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Remove a dead code in audio_track_record(). To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/sys/dev/audio/audio.c Please

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:41:12 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Remove a dead code in audio_track_record(). To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/sys/dev/audio/audio.c Please

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:36:06 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Clarify the assertion in audio_rmixer_process(). By previous commit (r1.116), the assersion no longer fires even without this modification. But

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:36:06 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Clarify the assertion in audio_rmixer_process(). By previous commit (r1.116), the assersion no longer fires even without this modification. But

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:27:32 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Fix conditions that audio_read() calls audio_track_record(). audio_track_record() must be called when usrbuf has at least one free block. I hope

CVS commit: src/sys/dev/audio

2022-03-26 Thread Tetsuya Isaki
Module Name:src Committed By: isaki Date: Sat Mar 26 06:27:32 UTC 2022 Modified Files: src/sys/dev/audio: audio.c Log Message: Fix conditions that audio_read() calls audio_track_record(). audio_track_record() must be called when usrbuf has at least one free block. I hope