Module Name:src
Committed By: riastradh
Date: Sun Mar 30 16:28:57 UTC 2025
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Pick some nits in the prose.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/string/strlcpy.3
Pl
Module Name:src
Committed By: riastradh
Date: Sun Mar 30 16:28:57 UTC 2025
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Pick some nits in the prose.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/string/strlcpy.3
Pl
Module Name:src
Committed By: riastradh
Date: Sun Mar 30 01:15:23 UTC 2025
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Another attempt at reworking the description for clarity.
These functions have extremely sharp edges that are apparently stil
Module Name:src
Committed By: riastradh
Date: Sun Mar 30 01:15:23 UTC 2025
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Another attempt at reworking the description for clarity.
These functions have extremely sharp edges that are apparently stil
Module Name:src
Committed By: kre
Date: Sat Nov 2 16:10:31 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
Delete unnecessary definitions of SIGRTMIN & SIGRTMAX
Long ago, SIGRTMIN & SIGRTMAX were #ifdef _KERNEL in
so duplicate definitions were a
Module Name:src
Committed By: kre
Date: Sat Nov 2 16:10:31 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
Delete unnecessary definitions of SIGRTMIN & SIGRTMAX
Long ago, SIGRTMIN & SIGRTMAX were #ifdef _KERNEL in
so duplicate definitions were a
Module Name:src
Committed By: kre
Date: Sat Nov 2 15:47:02 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
KNF.NFC.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/string/__strsignal.c
Please note that diffs are n
Module Name:src
Committed By: kre
Date: Sat Nov 2 15:47:02 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
KNF.NFC.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/string/__strsignal.c
Please note that diffs are n
Module Name:src
Committed By: kre
Date: Sat Nov 2 13:02:01 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
Stop attempting to return a (char*) in place of (const char *)
This removes a cast that was added in 1994, when __strsignal()
returned a ch
Module Name:src
Committed By: kre
Date: Sat Nov 2 13:02:01 UTC 2024
Modified Files:
src/lib/libc/string: __strsignal.c
Log Message:
Stop attempting to return a (char*) in place of (const char *)
This removes a cast that was added in 1994, when __strsignal()
returned a ch
Module Name:src
Committed By: wiz
Date: Mon Jul 15 19:25:30 UTC 2024
Modified Files:
src/lib/libc/string: memccpy.3
Log Message:
memccpy(3): add STANDARDS section
With input from kre@
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/string/memc
Module Name:src
Committed By: wiz
Date: Mon Jul 15 19:25:30 UTC 2024
Modified Files:
src/lib/libc/string: memccpy.3
Log Message:
memccpy(3): add STANDARDS section
With input from kre@
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/string/memc
Module Name:src
Committed By: riastradh
Date: Sun Aug 13 11:27:22 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): More on how strlcpy is not a safe strncpy replacement.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib
Module Name:src
Committed By: riastradh
Date: Sun Aug 13 11:27:22 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): More on how strlcpy is not a safe strncpy replacement.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib
Module Name:src
Committed By: wiz
Date: Sun Aug 13 04:20:08 UTC 2023
Modified Files:
src/lib/libc/string: memcpy.3
Log Message:
memcpy: consistency in prototype and fix sentence
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/string/memcpy.3
P
Module Name:src
Committed By: wiz
Date: Sun Aug 13 04:20:08 UTC 2023
Modified Files:
src/lib/libc/string: memcpy.3
Log Message:
memcpy: consistency in prototype and fix sentence
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/string/memcpy.3
P
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:32:26 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Fix column sizing.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/string/strncpy.3
Please note
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:32:26 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Fix column sizing.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/string/strncpy.3
Please note
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:30:32 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Tweak markup.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/string/strlcpy.3
Please note that
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:30:32 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Tweak markup.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libc/string/strlcpy.3
Please note that
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:20:39 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3 strncpy.3
Log Message:
strlcpy(3), strncpy(3): Omit needless (void) casts in examples.
The return values are not critical.
To generate a diff of thi
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:20:39 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3 strncpy.3
Log Message:
strlcpy(3), strncpy(3): Omit needless (void) casts in examples.
The return values are not critical.
To generate a diff of thi
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:17:16 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3 strlcpy.3 strncpy.3
Log Message:
strcpy(3), strlcpy(3), strncpy(3): Just say `byte', not `character'.
To generate a diff of this commit:
cvs rdiff -u
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:17:16 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3 strlcpy.3 strncpy.3
Log Message:
strcpy(3), strlcpy(3), strncpy(3): Just say `byte', not `character'.
To generate a diff of this commit:
cvs rdiff -u
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:12:11 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Tiny wording tweak.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/string/strncpy.3
Please note
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:12:11 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Tiny wording tweak.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/string/strncpy.3
Please note
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:11:21 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Reword to make sentence structure parallel.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/strin
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:11:21 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Reword to make sentence structure parallel.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/strin
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:10:27 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Fix typo -- stpncpy, not stpcpy which is different.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/lib
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:10:27 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Fix typo -- stpncpy, not stpcpy which is different.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/lib
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:09:11 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Take another whack at clarifying this.
Emphasize the fixed-buffer nature of it, and that NUL-termination is
neither required
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 21:09:11 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Take another whack at clarifying this.
Emphasize the fixed-buffer nature of it, and that NUL-termination is
neither required
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:34:28 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Nix stray space between `NUL' and `-terminating'.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:34:28 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Nix stray space between `NUL' and `-terminating'.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc
Module Name:src
Committed By: uwe
Date: Fri Aug 11 16:06:10 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): don't use \*[Ge] for >= - it's wrong for source code
In the PostScript output it produces the single mathematical "greater
or equal
Module Name:src
Committed By: uwe
Date: Fri Aug 11 16:06:10 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): don't use \*[Ge] for >= - it's wrong for source code
In the PostScript output it produces the single mathematical "greater
or equal
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:05:56 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3
Log Message:
strcpy(3): Note that strlcpy(3) is a safer replacement for strcpy(3).
Suggest snprintf("%s") as a more portable alternative too.
Note tha
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:05:56 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3
Log Message:
strcpy(3): Note that strlcpy(3) is a safer replacement for strcpy(3).
Suggest snprintf("%s") as a more portable alternative too.
Note tha
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:04:25 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Rework the example in an attempt to improve exposition.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 16:04:25 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Rework the example in an attempt to improve exposition.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 15:37:55 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Note strcpy(3) man page revision this forked from.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 15:37:55 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Note strcpy(3) man page revision this forked from.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 15:36:17 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3 strlcpy.3 strncpy.3
Log Message:
strcpy(3), strlcpy(3), strncpy(3): Use `.Tn NUL' for the zero byte.
Let's be consistent within these man pages. (If s
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 15:36:17 UTC 2023
Modified Files:
src/lib/libc/string: strcpy.3 strlcpy.3 strncpy.3
Log Message:
strcpy(3), strlcpy(3), strncpy(3): Use `.Tn NUL' for the zero byte.
Let's be consistent within these man pages. (If s
Module Name:src
Committed By: uwe
Date: Fri Aug 11 13:18:24 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): markup tweaks
NUL is a character name, not a defined name, use .Tn
.Ns has implicit .No effect
Use \*q for ASCII quotes (.Dq uses f
Module Name:src
Committed By: uwe
Date: Fri Aug 11 13:18:24 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): markup tweaks
NUL is a character name, not a defined name, use .Tn
.Ns has implicit .No effect
Use \*q for ASCII quotes (.Dq uses f
Module Name:src
Committed By: uwe
Date: Fri Aug 11 13:10:59 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): use .Sm off/on around a fancy expression to avoid lots of Ns
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/l
Module Name:src
Committed By: uwe
Date: Fri Aug 11 13:10:59 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): use .Sm off/on around a fancy expression to avoid lots of Ns
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/l
Module Name:src
Committed By: ryoon
Date: Fri Aug 11 13:07:17 UTC 2023
Modified Files:
src/lib/libc/string: Makefile.inc
Log Message:
Install strncpy.3 to fix build
To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/lib/libc/string/Makefile.inc
Please not
Module Name:src
Committed By: ryoon
Date: Fri Aug 11 13:07:17 UTC 2023
Modified Files:
src/lib/libc/string: Makefile.inc
Log Message:
Install strncpy.3 to fix build
To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/lib/libc/string/Makefile.inc
Please not
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 12:26:59 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Slightly more consistency about NUL vs '\0' in the text.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 12:26:59 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Slightly more consistency about NUL vs '\0' in the text.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 11:51:54 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Qualify example of strlcpy(3) with a major caveat.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 11:51:54 UTC 2023
Modified Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3): Qualify example of strlcpy(3) with a major caveat.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 09:39:39 UTC 2023
Modified Files:
src/lib/libc/string: Makefile.inc strcpy.3
Added Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3), stpncpy(3): Split man page out of strcpy(3), stpcpy(3).
These
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 09:39:39 UTC 2023
Modified Files:
src/lib/libc/string: Makefile.inc strcpy.3
Added Files:
src/lib/libc/string: strncpy.3
Log Message:
strncpy(3), stpncpy(3): Split man page out of strcpy(3), stpcpy(3).
These
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 08:15:30 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Rework man page to clarify relation to strncpy(3).
Add caveats explaining when strlcpy(3) and strlcat(3) are dangerously
inad
Module Name:src
Committed By: riastradh
Date: Fri Aug 11 08:15:30 UTC 2023
Modified Files:
src/lib/libc/string: strlcpy.3
Log Message:
strlcpy(3): Rework man page to clarify relation to strncpy(3).
Add caveats explaining when strlcpy(3) and strlcat(3) are dangerously
inad
Module Name:src
Committed By: simonb
Date: Tue Jan 31 01:42:32 UTC 2023
Modified Files:
src/lib/libc/string: strchr.3
Log Message:
Note that strchrnul() first appeared in glibc 2.1.1 and appeared in
FreeBSD 10 before it appeared in NetBSD 8.
To generate a diff of this co
Module Name:src
Committed By: simonb
Date: Tue Jan 31 01:42:32 UTC 2023
Modified Files:
src/lib/libc/string: strchr.3
Log Message:
Note that strchrnul() first appeared in glibc 2.1.1 and appeared in
FreeBSD 10 before it appeared in NetBSD 8.
To generate a diff of this co
Module Name:src
Committed By: kre
Date: Wed Dec 28 14:32:04 UTC 2022
Modified Files:
src/lib/libc/string: swab.c
Log Message:
PR lib/57141 - never decrement len without actually performing a STEP.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc
Module Name:src
Committed By: kre
Date: Wed Dec 28 14:32:04 UTC 2022
Modified Files:
src/lib/libc/string: swab.c
Log Message:
PR lib/57141 - never decrement len without actually performing a STEP.
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc
On Fri, Oct 29, 2021 at 10:11:57AM +, Nia Alarie wrote:
> Module Name: src
> Committed By: nia
> Date: Fri Oct 29 10:11:57 UTC 2021
>
> Modified Files:
> src/lib/libc/string: wcsdup.c
>
> Log Message:
> wcsdup(3): use reallocarr to catch integer overflow
Except that no such in
Module Name:src
Committed By: nia
Date: Fri Oct 29 10:11:57 UTC 2021
Modified Files:
src/lib/libc/string: wcsdup.c
Log Message:
wcsdup(3): use reallocarr to catch integer overflow
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/string/wcsdup.c
P
Module Name:src
Committed By: nia
Date: Fri Oct 29 10:11:57 UTC 2021
Modified Files:
src/lib/libc/string: wcsdup.c
Log Message:
wcsdup(3): use reallocarr to catch integer overflow
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/string/wcsdup.c
P
Date:Sat, 4 Apr 2020 21:16:45 +
From:David Holland
Message-ID: <20200404211645.ga19...@netbsd.org>
| I fail to see any scenario in which it's legitimate for an application
| to scribble in internal data belonging to libc. Why should this be
| permitted?
You
On Thu, Mar 26, 2020 at 10:54:21AM +0700, Robert Elz wrote:
> | I don't agree -- because applications shouldn't attempt to modify the
> | result, it should be const.
>
> The only reason apps shouldn't modify the string is in case of
> porting the app to an (well, some) ancient implementat
On Thu, Mar 26, 2020 at 10:54:21AM +0700, Robert Elz wrote:
> Date:Wed, 25 Mar 2020 20:51:25 +
> From:David Holland
> Message-ID: <20200325205125.ga11...@netbsd.org>
>
> | I don't agree -- because applications shouldn't attempt to modify the
> | result, it sho
Date:Wed, 25 Mar 2020 20:51:25 +
From:David Holland
Message-ID: <20200325205125.ga11...@netbsd.org>
| I don't agree -- because applications shouldn't attempt to modify the
| result, it should be const.
The only reason apps shouldn't modify the string is in ca
On Wed, Mar 25, 2020 at 06:50:47PM +, Robert Elz wrote:
> Modified Files:
> src/lib/libc/string: strerror.3
>
> Log Message:
> Delete the BUGS paragraph about the "missing" const qualifier for the
> result type of strerror() (and strerror_l()). While that once should
> really hav
On Jun 24, 4:35am, riastr...@netbsd.org (Taylor R Campbell) wrote:
-- Subject: Re: CVS commit: src/lib/libc/string
| Oops, that was silly of me -- the libc symbols actually have a double-
| underscore prefix, presumably meaning `these are internal; do not
| use'. Should I move the man pag
On Jun 24, 3:54am, riastr...@netbsd.org (Taylor R Campbell) wrote:
-- Subject: Re: CVS commit: src/lib/libc/string
|Date: Mon, 24 Jun 2013 01:36:29 + (UTC)
|From: chris...@astron.com (Christos Zoulas)
|
|I've objected many times railroading those in and casting the into
On Mon, 24 Jun 2013, Taylor R Campbell wrote:
Discuss on tech-userlevel?
Yes please.
--apb (Alan Barrett)
Oops, that was silly of me -- the libc symbols actually have a double-
underscore prefix, presumably meaning `these are internal; do not
use'. Should I move the man pages to section 9, or do we want these
exposed in libc, presumably requiring some weak aliasing cruft?
Discuss on tech-userlevel?
(
Date: Mon, 24 Jun 2013 01:36:29 + (UTC)
From: chris...@astron.com (Christos Zoulas)
I've objected many times railroading those in and casting the into stone
by adding man pages and making them part of a formal release. I give up :-(
Sorry, I didn't mean to stonewall or railroad an
In article <20130623164406.d678...@cvs.netbsd.org>,
Taylor R Campbell wrote:
>-=-=-=-=-=-
I've objected many times railroading those in and casting the into stone
by adding man pages and making them part of a formal release. I give up :-(
christos
On Fri, Nov 25, 2011 at 05:40:51PM +0100, Joerg Sonnenberger wrote:
> > And why should the/any static analyzer have to figure that out when
> > coding it right makes it a nonissue?
>
> Because that's what is making warnings useful. To not complain about
> non-issues.
Like this?
const cha
On Fri, Nov 25, 2011 at 04:23:46PM +, David Holland wrote:
> On Fri, Nov 25, 2011 at 02:48:30PM +0100, Joerg Sonnenberger wrote:
> > > > > > > Sure it does. You should just have written the code using
> (size_t)1,
> > > > > > > or even just 1UL, instead of 1ULL. There is no port where size_t
On Fri, Nov 25, 2011 at 02:48:30PM +0100, Joerg Sonnenberger wrote:
> > > > > > Sure it does. You should just have written the code using
> > > > > > (size_t)1,
> > > > > > or even just 1UL, instead of 1ULL. There is no port where size_t is
> > > > > > unsigned long long.
> > > > > >
> > >
On Fri, Nov 25, 2011 at 01:44:24PM +, David Holland wrote:
> On Fri, Nov 25, 2011 at 02:29:12PM +0100, Joerg Sonnenberger wrote:
> > > > > Sure it does. You should just have written the code using (size_t)1,
> > > > > or even just 1UL, instead of 1ULL. There is no port where size_t is
> > >
On Fri, Nov 25, 2011 at 02:29:12PM +0100, Joerg Sonnenberger wrote:
> > > > Sure it does. You should just have written the code using (size_t)1,
> > > > or even just 1UL, instead of 1ULL. There is no port where size_t is
> > > > unsigned long long.
> > > >
> > > > ... Unless what you meant wa
On Fri, Nov 25, 2011 at 01:18:19PM +, David Holland wrote:
> On Fri, Nov 25, 2011 at 02:15:12PM +0100, Joerg Sonnenberger wrote:
> > > Sure it does. You should just have written the code using (size_t)1,
> > > or even just 1UL, instead of 1ULL. There is no port where size_t is
> > > unsigned
On Fri, Nov 25, 2011 at 02:15:12PM +0100, Joerg Sonnenberger wrote:
> > Sure it does. You should just have written the code using (size_t)1,
> > or even just 1UL, instead of 1ULL. There is no port where size_t is
> > unsigned long long.
> >
> > ... Unless what you meant was "get rid of all 32
On Fri, Nov 25, 2011 at 12:57:29PM +, David Holland wrote:
> On Fri, Nov 25, 2011 at 01:01:34PM +0100, Joerg Sonnenberger wrote:
> > > Log Message:
> > > Add explicit casts to make lint happy and fix the NetBSD/i386 build.
> >
> > Can we please just get rid of this PoS? This doesn't even q
On Fri, Nov 25, 2011 at 01:01:34PM +0100, Joerg Sonnenberger wrote:
> > Log Message:
> > Add explicit casts to make lint happy and fix the NetBSD/i386 build.
>
> Can we please just get rid of this PoS? This doesn't even qualify as bad
> signal to noise ratio.
Sure it does. You should just ha
On Fri, Nov 25, 2011 at 09:00:51AM +, Matthias Scheler wrote:
> Module Name: src
> Committed By: tron
> Date: Fri Nov 25 09:00:51 UTC 2011
>
> Modified Files:
> src/lib/libc/string: wcscspn_bloom.h
>
> Log Message:
> Add explicit casts to make lint happy and fix the NetBSD/i386
Am 24.11.11 19:44, schrieb Joerg Sonnenberger:
> Module Name: src
> Committed By: joerg
> Date: Thu Nov 24 18:44:25 UTC 2011
>
> Modified Files:
> src/lib/libc/string: wcscspn.c wcspbrk.c
> Added Files:
> src/lib/libc/string: wcscspn_bloom.h
This breaks the build on i386, at
On Mon, Apr 19, 2010 at 03:02:05AM +, Christos Zoulas wrote:
> In article <20100419021334.ga8...@britannica.bec.de>,
> Joerg Sonnenberger wrote:
> >On Sun, Apr 18, 2010 at 10:51:35AM +, Alan Barrett wrote:
> >> Log Message:
> >> Bitwise operations on signed types are well-defined if the v
On Mon, 19 Apr 2010, Joerg Sonnenberger wrote:
> On Sun, Apr 18, 2010 at 10:51:35AM +, Alan Barrett wrote:
> > Log Message:
> > Bitwise operations on signed types are well-defined if the values
> > happen to be positive, and indeed the values here were guaranteed
> > to be positive, but some co
On Mon, Apr 19, 2010 at 03:02:05AM +, Christos Zoulas wrote:
>> In that case use an explicit cast to the unsigned type. What you did is
>> penalize the code for no good reason.
>
> Any compiler these days knows how to do these micro-optimizations.
Furthermore, as swab() is fairly useless,
In article <20100419021334.ga8...@britannica.bec.de>,
Joerg Sonnenberger wrote:
>On Sun, Apr 18, 2010 at 10:51:35AM +, Alan Barrett wrote:
>> Log Message:
>> Bitwise operations on signed types are well-defined if the values
>> happen to be positive, and indeed the values here were guaranteed
On Sun, Apr 18, 2010 at 10:51:35AM +, Alan Barrett wrote:
> Log Message:
> Bitwise operations on signed types are well-defined if the values
> happen to be positive, and indeed the values here were guaranteed
> to be positive, but some compilers complained anyway, so convert
> the bitwise opera
On Apr 18, 11:01am, mar...@duskware.de (Martin Husemann) wrote:
-- Subject: Re: CVS commit: src/lib/libc/string
| On Sat, Apr 17, 2010 at 09:14:21PM -0400, Christos Zoulas wrote:
| > Yes, it does not make sense, but that is what POSIX specifies.
|
| Yeah, but wouldn't ignoring this part
On Sat, Apr 17, 2010 at 09:14:21PM -0400, Christos Zoulas wrote:
> Yes, it does not make sense, but that is what POSIX specifies.
Yeah, but wouldn't ignoring this part (keeping it size_t) still work
for all valid calls, i.e. differing from the obviously stupid standard
be a harmless thing?
Martin
On Apr 17, 11:25pm, mar...@netbsd.org (Martin Husemann) wrote:
-- Subject: Re: CVS commit: src/lib/libc/string
| On Sat, Apr 17, 2010 at 01:57:39PM -0400, Christos Zoulas wrote:
| > Module Name:src
| > Committed By: christos
| > Date: Sat Apr 17 17:57:39
On Sat, Apr 17, 2010 at 01:57:39PM -0400, Christos Zoulas wrote:
> Module Name: src
> Committed By: christos
> Date: Sat Apr 17 17:57:39 UTC 2010
>
> Modified Files:
> src/lib/libc/string: swab.3 swab.c
>
> Log Message:
> Change and document for POSIX compliance.
The restrict part
On Wed, Aug 05, 2009 at 04:08:00PM +, Joerg Sonnenberger wrote:
> Module Name: src
> Committed By: joerg
> Date: Wed Aug 5 16:08:00 UTC 2009
>
> Modified Files:
> src/lib/libc/string: Lint_ffs.c
I'm not sure why we have these Lint_xxx.c stubs for functions where
we have a real
On Thu, Jul 30, 2009 at 09:46:44PM -0400, Perry E. Metzger wrote:
>
> David Laight writes:
> > Module Name:src
> > Committed By: dsl
> > Date: Thu Jul 30 21:42:06 UTC 2009
> >
> > Modified Files:
> > src/lib/libc/string: strcspn.c strspn.c
> >
> > Log Message:
> >
David Laight writes:
> Module Name: src
> Committed By: dsl
> Date: Thu Jul 30 21:42:06 UTC 2009
>
> Modified Files:
> src/lib/libc/string: strcspn.c strspn.c
>
> Log Message:
> Use a 'register only' str[c]spn() on 64 bit systems.
How much of a speedup is this?
Also, you have a s
In article
<20090410232748.gs25357__19460.5905832306$1239406176$gmane$...@danbala.tuwien.ac.at>,
Thomas Klausner wrote:
>On Fri, Apr 10, 2009 at 07:13:38PM -0400, Christos Zoulas wrote:
>> Module Name: src
>> Committed By:christos
>> Date:Fri Apr 10 23:13:38 UTC 2009
>>
1 - 100 of 102 matches
Mail list logo