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

2020-02-03 Thread Kamil Rytarowski
On 03.02.2020 17:24, Kamil Rytarowski wrote: > On 03.02.2020 17:21, Joerg Sonnenberger wrote: >> On Sat, Feb 01, 2020 at 03:38:46PM +, Kamil Rytarowski wrote: >>> Module Name:src >>> Committed By: kamil >>> Date: Sat Feb 1 15:38:46 UTC 2020 >>> >>> Modified Files:

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

2020-02-03 Thread Kamil Rytarowski
On 03.02.2020 17:21, Joerg Sonnenberger wrote: > On Sat, Feb 01, 2020 at 03:38:46PM +, Kamil Rytarowski wrote: >> Module Name: src >> Committed By:kamil >> Date:Sat Feb 1 15:38:46 UTC 2020 >> >> Modified Files: >> src/lib/libc/gen: pthread_atfork.c >> >> Log

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

2020-02-03 Thread Joerg Sonnenberger
On Sat, Feb 01, 2020 at 03:38:46PM +, Kamil Rytarowski wrote: > Module Name: src > Committed By: kamil > Date: Sat Feb 1 15:38:46 UTC 2020 > > Modified Files: > src/lib/libc/gen: pthread_atfork.c > > Log Message: > Switch atform allocations from malloc()+free() to

CVS commit: src/lib/libc/gen

2019-10-05 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sat Oct 5 19:19:52 UTC 2019 Modified Files: src/lib/libc/gen: getlogin.c Log Message: getlogin_r: use strcpy(). We check namelen before copying the result. gcc 8 -Wstringop-overflow is uhappy when the specified bounds depend on

CVS commit: src/lib/libc/gen

2019-10-05 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sat Oct 5 19:19:52 UTC 2019 Modified Files: src/lib/libc/gen: getlogin.c Log Message: getlogin_r: use strcpy(). We check namelen before copying the result. gcc 8 -Wstringop-overflow is uhappy when the specified bounds depend on

CVS commit: src/lib/libc/gen

2019-09-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Sep 23 18:17:03 UTC 2019 Modified Files: src/lib/libc/gen: arc4random.c Log Message: lint is not smart enough to figure out that ilog2() is constant. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/lib/libc/gen

2019-09-23 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Mon Sep 23 18:17:03 UTC 2019 Modified Files: src/lib/libc/gen: arc4random.c Log Message: lint is not smart enough to figure out that ilog2() is constant. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32

CVS commit: src/lib/libc/gen

2019-09-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Mon Sep 16 01:25:16 UTC 2019 Modified Files: src/lib/libc/gen: utimens.c Log Message: Remove _INCOMPLETE_XOPEN_C063, no longer needed To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/gen/utimens.c Please

CVS commit: src/lib/libc/gen

2019-09-15 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 15 07:01:13 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: Fix markup, and remove two superfluous Pp. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/lib/libc/gen/sysctl.3 Please note

CVS commit: src/lib/libc/gen

2019-09-15 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 15 07:01:13 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: Fix markup, and remove two superfluous Pp. To generate a diff of this commit: cvs rdiff -u -r1.205 -r1.206 src/lib/libc/gen/sysctl.3 Please note

CVS commit: src/lib/libc/gen

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 01:03:24 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: fix wrong names and add markup To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/lib/libc/gen/sysctl.3 Please note that

CVS commit: src/lib/libc/gen

2019-09-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 01:03:24 UTC 2019 Modified Files: src/lib/libc/gen: sysctl.3 Log Message: fix wrong names and add markup To generate a diff of this commit: cvs rdiff -u -r1.204 -r1.205 src/lib/libc/gen/sysctl.3 Please note that

CVS commit: src/lib/libc/gen

2019-09-01 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 1 19:36:09 UTC 2019 Modified Files: src/lib/libc/gen: exec.3 Log Message: Remove superfluous Pp. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/gen/exec.3 Please note that diffs are not public

CVS commit: src/lib/libc/gen

2019-09-01 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Sep 1 19:36:09 UTC 2019 Modified Files: src/lib/libc/gen: exec.3 Log Message: Remove superfluous Pp. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/gen/exec.3 Please note that diffs are not public

CVS commit: src/lib/libc/gen

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Sun Sep 1 19:33:45 UTC 2019 Modified Files: src/lib/libc/gen: exec.3 Log Message: Document history of exec() Move statement on execlpe() & execvpe() to HISTORY section. To generate a diff of this commit: cvs rdiff -u -r1.29

CVS commit: src/lib/libc/gen

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Sun Sep 1 19:33:45 UTC 2019 Modified Files: src/lib/libc/gen: exec.3 Log Message: Document history of exec() Move statement on execlpe() & execvpe() to HISTORY section. To generate a diff of this commit: cvs rdiff -u -r1.29

CVS commit: src/lib/libc/gen

2019-06-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Wed Jun 12 12:32:54 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Fix typo. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/gen/posix_spawn.3 Please note that diffs are not

CVS commit: src/lib/libc/gen

2019-06-12 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Wed Jun 12 12:32:54 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Fix typo. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/gen/posix_spawn.3 Please note that diffs are not

CVS commit: src/lib/libc/gen

2019-06-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 12 12:26:24 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Rephrase sentence about vfork+exec in posix_spawn(3) Try to make it less confusing. Requested by To generate a diff of this commit: cvs

CVS commit: src/lib/libc/gen

2019-06-12 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 12 12:26:24 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Rephrase sentence about vfork+exec in posix_spawn(3) Try to make it less confusing. Requested by To generate a diff of this commit: cvs

CVS commit: src/lib/libc/gen

2019-06-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 12 00:05:48 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Document that posix_spawn(3) uses a dedicated syscall vfork+exec operations are done in one go. This is important information for programs

CVS commit: src/lib/libc/gen

2019-06-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jun 12 00:05:48 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Document that posix_spawn(3) uses a dedicated syscall vfork+exec operations are done in one go. This is important information for programs

CVS commit: src/lib/libc/gen

2019-06-11 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Tue Jun 11 12:49:21 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Quote the name "Ed" to avoid confusion with the macro "Ed". To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8

CVS commit: src/lib/libc/gen

2019-06-11 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Tue Jun 11 12:49:21 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Quote the name "Ed" to avoid confusion with the macro "Ed". To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8

CVS commit: src/lib/libc/gen

2019-06-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jun 11 12:47:34 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Correct outdated note that posix_spawn(3) is implemented with vfork(2) The original FreeBSD libc code uses vfork(2), it's not the case for

CVS commit: src/lib/libc/gen

2019-06-11 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Tue Jun 11 12:47:34 UTC 2019 Modified Files: src/lib/libc/gen: posix_spawn.3 Log Message: Correct outdated note that posix_spawn(3) is implemented with vfork(2) The original FreeBSD libc code uses vfork(2), it's not the case for

Re: CVS commit: src/lib/libc/gen (vax mentions moved to CAVEATs)

2017-09-27 Thread Kamil Rytarowski
On 27.09.2017 11:23, m...@netbsd.org wrote: > On Wed, Sep 27, 2017 at 09:04:30AM +, Maya Rashish wrote: >> Module Name: src >> Committed By:maya >> Date:Wed Sep 27 09:04:30 UTC 2017 >> >> Modified Files: >> src/lib/libc/gen: isinf.3 >> >> Log Message: >> Move VAX

Re: CVS commit: src/lib/libc/gen (vax mentions moved to CAVEATs)

2017-09-27 Thread maya
On Wed, Sep 27, 2017 at 09:04:30AM +, Maya Rashish wrote: > Module Name: src > Committed By: maya > Date: Wed Sep 27 09:04:30 UTC 2017 > > Modified Files: > src/lib/libc/gen: isinf.3 > > Log Message: > Move VAX notes to CAVEATS, clarify that it just returns zero > > The VAX

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

2017-09-09 Thread Robert Elz
Date:Sat, 9 Sep 2017 18:00:40 + From:"Kamil Rytarowski" Message-ID: <20170909180040.222c2f...@cvs.netbsd.org> | Not that devname(3) does not set errno on failure and document it as a bug. Not everything in libc is expected to set errno on

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

2017-02-13 Thread coypu
On Mon, Feb 13, 2017 at 12:04:02PM +, co...@sdf.org wrote: > ASan is wrong about where the problem happens, This can be dealt with -fno-omit-frame-pointer.

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

2017-02-13 Thread coypu
On Sun, Feb 12, 2017 at 05:37:49PM -0500, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sun Feb 12 22:37:49 UTC 2017 > > Modified Files: > src/lib/libc/gen: vis.c > > Log Message: > fix off-by-one, found by asan. > It fails in another case, attached

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

2015-05-26 Thread Joerg Sonnenberger
On Sat, May 23, 2015 at 10:01:08AM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Sat May 23 14:01:08 UTC 2015 Modified Files: src/lib/libc/gen: vis.c Log Message: Grr need to deal with isgraph(3). Is there a better way? Non-compat case

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

2014-11-26 Thread Christos Zoulas
In article 20141126164843.5cdd...@cvs.netbsd.org, Christos Zoulas source-changes-d@NetBSD.org wrote: -=-=-=-=-=- Module Name: src Committed By: christos Date: Wed Nov 26 16:48:43 UTC 2014 Modified Files: src/lib/libc/gen: opendir.c Log Message: - Use O_DIRECTORY to open the

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

2014-09-27 Thread Alan Barrett
On Fri, 26 Sep 2014, Roy Marples wrote: Log Message: Remove \$ as a hidden marker as vis(3) wasn't setting it and it clobbered VIS_SHELL | VIS_CSTYLE. This is wrong. vis -l outputs \$, and with this change, unvis won't correctly handle it. unvis is not intended to reverse shell-style

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

2014-09-27 Thread Roy Marples
On Saturday 27 Sep 2014 11:04:09 Alan Barrett wrote: On Fri, 26 Sep 2014, Roy Marples wrote: Log Message: Remove \$ as a hidden marker as vis(3) wasn't setting it and it clobbered VIS_SHELL | VIS_CSTYLE. This is wrong. vis -l outputs \$, and with this change, unvis won't correctly

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

2014-09-26 Thread Alan Barrett
On Fri, 26 Sep 2014, Roy Marples wrote: Modified Files: src/lib/libc/gen: unvis.c Log Message: Remove \$ as a hidden marker as vis(3) wasn't setting it and it clobbered VIS_SHELL | VIS_CSTYLE. This is wrong. vis -l outputs \$, and with this change, unvis won't correctly handle it.

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

2014-09-26 Thread Roy Marples
On 2014-09-26 15:09, Alan Barrett wrote: On Fri, 26 Sep 2014, Roy Marples wrote: Modified Files: src/lib/libc/gen: unvis.c Log Message: Remove \$ as a hidden marker as vis(3) wasn't setting it and it clobbered VIS_SHELL | VIS_CSTYLE. This is wrong. vis -l outputs \$, and with this

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

2014-09-08 Thread Joerg Sonnenberger
On Mon, Sep 08, 2014 at 12:42:09PM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Mon Sep 8 16:42:09 UTC 2014 Modified Files: src/lib/libc/gen: vis.c Log Message: PR/49185: Conrad Meyer: strvisx: Handle zero-length input strings gracefully.

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

2014-09-08 Thread Joerg Sonnenberger
On Mon, Sep 08, 2014 at 01:35:01PM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Mon Sep 8 17:35:01 UTC 2014 Modified Files: src/lib/libc/gen: vis.c Log Message: get rid of MB_STRZ as suggested by joerg. Thanks. Can the NULL pointer case

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

2014-09-08 Thread Christos Zoulas
In article 20140908174838.ga25...@britannica.bec.de, Joerg Sonnenberger jo...@britannica.bec.de wrote: On Mon, Sep 08, 2014 at 01:35:01PM -0400, Christos Zoulas wrote: Module Name: src Committed By:christos Date:Mon Sep 8 17:35:01 UTC 2014 Modified Files:

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

2013-10-20 Thread David Laight
On Thu, Oct 17, 2013 at 07:56:17PM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Thu Oct 17 23:56:17 UTC 2013 Modified Files: src/lib/libc/gen: arc4random.c Log Message: remove always inline because new gcc bitches. In that function isn't

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

2012-03-22 Thread Alan Barrett
On Thu, 22 Mar 2012, Havard Eidnes wrote: Modified Files: src/lib/libc/gen: modf_ieee754.c Log Message: Add a pair of casts to silence lint about conversion possibly losing bits. - v.dblu_dbl.dbl_fracl = frac 0x; - v.dblu_dbl.dbl_frach = frac 32; +

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

2012-03-21 Thread David Laight
On Wed, Mar 21, 2012 at 10:28:32AM -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Wed Mar 21 14:28:32 UTC 2012 Modified Files: src/lib/libc/gen: setmode.c Log Message: fix argument order. Matt should have used my sed script ...

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

2011-03-15 Thread Martin Husemann
On Tue, Mar 15, 2011 at 07:12:57AM +0200, Jukka Ruohonen wrote: Wouldn't libutil be a better place than libc for something like this? Why not just in ls? Seems to be non-standard, so not much software will use it. Martin

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

2011-03-15 Thread Joerg Sonnenberger
On Tue, Mar 15, 2011 at 03:47:04AM +, Eric Haszlakiewicz wrote: Module Name: src Committed By: erh Date: Tue Mar 15 03:47:04 UTC 2011 Modified Files: src/lib/libc/gen: Makefile.inc Added Files: src/lib/libc/gen: commaize_number.3 commaize_number.c Log Message:

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

2011-03-15 Thread Joerg Sonnenberger
On Tue, Mar 15, 2011 at 11:26:05AM +0100, Joerg Sonnenberger wrote: On Tue, Mar 15, 2011 at 03:47:04AM +, Eric Haszlakiewicz wrote: Module Name:src Committed By: erh Date: Tue Mar 15 03:47:04 UTC 2011 Modified Files: src/lib/libc/gen: Makefile.inc

re: CVS commit: src/lib/libc/gen

2011-03-15 Thread matthew green
Module Name: src Committed By: erh Date: Tue Mar 15 03:47:04 UTC 2011 Modified Files: src/lib/libc/gen: Makefile.inc Added Files: src/lib/libc/gen: commaize_number.3 commaize_number.c Log Message: PR#7540, add a commaize_number function, which inserts comma into

re: CVS commit: src/lib/libc/gen

2011-03-15 Thread matthew green
On Tue, Mar 15, 2011 at 11:26:05AM +0100, Joerg Sonnenberger wrote: On Tue, Mar 15, 2011 at 03:47:04AM +, Eric Haszlakiewicz wrote: Module Name: src Committed By: erh Date: Tue Mar 15 03:47:04 UTC 2011 Modified Files: src/lib/libc/gen: Makefile.inc

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

2011-03-15 Thread David Laight
On Tue, Mar 15, 2011 at 12:26:05PM +0100, Joerg Sonnenberger wrote: On Tue, Mar 15, 2011 at 11:26:05AM +0100, Joerg Sonnenberger wrote: On Tue, Mar 15, 2011 at 03:47:04AM +, Eric Haszlakiewicz wrote: Module Name: src Committed By: erh Date: Tue Mar 15 03:47:04

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

2011-03-14 Thread Paul Goyette
Is it locale-aware? Will it always insert a comma, or can it be conditioned to insert a period if the locale so indicates? On Tue, 15 Mar 2011, Eric Haszlakiewicz wrote: Module Name:src Committed By: erh Date: Tue Mar 15 03:47:04 UTC 2011 Modified Files:

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

2011-03-14 Thread Paul Goyette
Hmmm, guess I should have waited for the commit to ls, where it does indicate locale-awareness. Thanks! On Mon, 14 Mar 2011, Paul Goyette wrote: Is it locale-aware? Will it always insert a comma, or can it be conditioned to insert a period if the locale so indicates? On Tue, 15 Mar 2011,

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

2011-03-13 Thread David Laight
On Sun, Mar 13, 2011 at 07:40:45AM +, matthew green wrote: src/lib/libc/gen: unvis.c Log Message: cast ~0 to (size_t) when passing to a size_t taking function. fixes lint build errors. Is that right? My C promotion rules are getting rusty... ~0 is of type 'int', 'size_t' is an

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

2011-03-13 Thread Greg Troxel
David Laight da...@l8s.co.uk writes: On Sun, Mar 13, 2011 at 07:40:45AM +, matthew green wrote: src/lib/libc/gen: unvis.c Log Message: cast ~0 to (size_t) when passing to a size_t taking function. fixes lint build errors. Is that right? My C promotion rules are getting rusty...

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

2011-02-15 Thread NAKAJIMA Yoshihiro
Module Name: src Committed By: christos Date: Thu Jan 20 02:57:00 UTC 2011 Modified Files: src/lib/libc/gen: getcwd.c Log Message: provide a _sys_getcwd() entry like all the rest of the system calls to be used by SSP. To generate a diff of this commit: cvs rdiff -u

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

2011-02-15 Thread Christos Zoulas
In article 20110215.215643.260798087.nakay...@leto.eonet.ne.jp, NAKAJIMA Yoshihiro nakay...@leto.eonet.ne.jp wrote: Module Name: src Committed By:christos Date:Thu Jan 20 02:57:00 UTC 2011 Modified Files: src/lib/libc/gen: getcwd.c Log Message: provide a

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

2010-12-12 Thread David Holland
On Thu, Dec 09, 2010 at 09:27:32PM +, Joerg Sonnenberger wrote: Log Message: Wrap sys_errlist constants in a macro to make it easier to extract the strings reliably with sed/awk. Why two layers of parentheses? Also, if we're going to be extracting strings anyway, errlist.c and whatever

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

2010-12-12 Thread Joerg Sonnenberger
On Sun, Dec 12, 2010 at 08:34:25AM +, David Holland wrote: On Thu, Dec 09, 2010 at 09:27:32PM +, Joerg Sonnenberger wrote: Log Message: Wrap sys_errlist constants in a macro to make it easier to extract the strings reliably with sed/awk. Why two layers of parentheses? In case

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

2010-12-12 Thread David Laight
On Sun, Dec 12, 2010 at 08:34:25AM +, David Holland wrote: Also, if we're going to be extracting strings anyway, errlist.c and whatever else ought to be built from errno.h. Look at the cpp 'abose' I put into (IIRC) disklabel.h so that single lines can be expanded in different ways.

CVS commit: src/lib/libc/gen

2010-01-01 Thread David A. Holland
Module Name:src Committed By: dholland Date: Fri Jan 1 19:59:21 UTC 2010 Modified Files: src/lib/libc/gen: getcwd.c Log Message: POSIX says realpath(NULL, foo) is supposed to yield EINVAL rather than being allowed to crash. Go figure. Closes PR lib/42559 from Stathis