CVS commit: src/lib/libc/stdio

2024-05-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 4 05:50:49 UTC 2024 Modified Files: src/lib/libc/stdio: mktemp.3 Log Message: mktemp.3: mkdtemp is no longer nonstandard Reported by Aleksey Cheusov on tech-userlevel. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/lib/libc/stdio

2024-05-03 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat May 4 05:50:49 UTC 2024 Modified Files: src/lib/libc/stdio: mktemp.3 Log Message: mktemp.3: mkdtemp is no longer nonstandard Reported by Aleksey Cheusov on tech-userlevel. To generate a diff of this commit: cvs rdiff -u -r

CVS commit: src/lib/libc/stdio

2024-03-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Mar 29 22:39:41 UTC 2024 Modified Files: src/lib/libc/stdio: fvwrite.c Log Message: >From enh at google dot com in tech-userlevel. Don't limit writes to BUFSIZ, change the limit to INT_MAX; improves performance dramatically.

CVS commit: src/lib/libc/stdio

2024-03-29 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Mar 29 22:39:41 UTC 2024 Modified Files: src/lib/libc/stdio: fvwrite.c Log Message: >From enh at google dot com in tech-userlevel. Don't limit writes to BUFSIZ, change the limit to INT_MAX; improves performance dramatically.

CVS commit: src/lib/libc/stdio

2022-04-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Apr 3 14:17:53 UTC 2022 Modified Files: src/lib/libc/stdio: printf.3 Log Message: Improve wording to avoid confusion about the return value of {v,}asprintf(3) To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/lib/libc/stdio

2022-04-03 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Apr 3 14:17:53 UTC 2022 Modified Files: src/lib/libc/stdio: printf.3 Log Message: Improve wording to avoid confusion about the return value of {v,}asprintf(3) To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71

CVS commit: src/lib/libc/stdio

2022-03-12 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sat Mar 12 08:36:52 UTC 2022 Modified Files: src/lib/libc/stdio: vfwprintf.c Log Message: vfwprintf(3): use reallocarr To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/lib/libc/stdio/vfwprintf.c Please note that d

CVS commit: src/lib/libc/stdio

2022-03-12 Thread Nia Alarie
Module Name:src Committed By: nia Date: Sat Mar 12 08:36:52 UTC 2022 Modified Files: src/lib/libc/stdio: vfwprintf.c Log Message: vfwprintf(3): use reallocarr To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/lib/libc/stdio/vfwprintf.c Please note that d

CVS commit: src/lib/libc/stdio

2021-10-28 Thread Kimmo Suominen
Module Name:src Committed By: kim Date: Thu Oct 28 09:51:39 UTC 2021 Modified Files: src/lib/libc/stdio: mktemp.3 Log Message: Use .Sq instead of a dangling .So To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/libc/stdio/mktemp.3 Please note that di

CVS commit: src/lib/libc/stdio

2021-10-28 Thread Kimmo Suominen
Module Name:src Committed By: kim Date: Thu Oct 28 09:51:39 UTC 2021 Modified Files: src/lib/libc/stdio: mktemp.3 Log Message: Use .Sq instead of a dangling .So To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/libc/stdio/mktemp.3 Please note that di

CVS commit: src/lib/libc/stdio

2021-09-23 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Thu Sep 23 12:17:57 UTC 2021 Modified Files: src/lib/libc/stdio: printf.3 Log Message: printf(3): mention snprintb(3) To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/lib/libc/stdio/printf.3 Please note that diffs

CVS commit: src/lib/libc/stdio

2021-09-23 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Thu Sep 23 12:17:57 UTC 2021 Modified Files: src/lib/libc/stdio: printf.3 Log Message: printf(3): mention snprintb(3) To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/lib/libc/stdio/printf.3 Please note that diffs

CVS commit: src/lib/libc/stdio

2021-09-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 11 18:46:22 UTC 2021 Modified Files: src/lib/libc/stdio: fseek.3 Log Message: fseek.3: fix grammar To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/libc/stdio/fseek.3 Please note that diffs are not

CVS commit: src/lib/libc/stdio

2021-09-11 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Sep 11 18:46:22 UTC 2021 Modified Files: src/lib/libc/stdio: fseek.3 Log Message: fseek.3: fix grammar To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/libc/stdio/fseek.3 Please note that diffs are not

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

2021-02-01 Thread Robert Elz
Date:Mon, 1 Feb 2021 17:50:54 + From:"Jaromir Dolecek" Message-ID: <20210201175054.112e7f...@cvs.netbsd.org> | FreeBSD has a similar check, but they return EINVAL instead, feel | free to adjust if SUS or other standard mandates specific value Not currently (u

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

2021-01-31 Thread Robert Elz
Date:Sun, 31 Jan 2021 18:34:22 +0100 From:Joerg Sonnenberger Message-ID: | That makes no sense. Just turn them into a short read, which is | something users have to deal with anyway. I'm not sure I agree with that one. If the user's size * nmemb overflows a si

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

2021-01-31 Thread Kamil Rytarowski
On 31.01.2021 18:34, Joerg Sonnenberger wrote: > On Sun, Jan 31, 2021 at 05:27:28PM +0100, Kamil Rytarowski wrote: >> On 31.01.2021 17:18, Jaromir Dolecek wrote: >>> Module Name:src >>> Committed By: jdolecek >>> Date: Sun Jan 31 16:18:22 UTC 2021 >>> >>> Modified Files:

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

2021-01-31 Thread Joerg Sonnenberger
On Sun, Jan 31, 2021 at 05:27:28PM +0100, Kamil Rytarowski wrote: > On 31.01.2021 17:18, Jaromir Dolecek wrote: > > Module Name:src > > Committed By: jdolecek > > Date: Sun Jan 31 16:18:22 UTC 2021 > > > > Modified Files: > > src/lib/libc/stdio: fread.c > > > > Log

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

2021-01-31 Thread Kamil Rytarowski
On 31.01.2021 17:18, Jaromir Dolecek wrote: > Module Name: src > Committed By: jdolecek > Date: Sun Jan 31 16:18:22 UTC 2021 > > Modified Files: > src/lib/libc/stdio: fread.c > > Log Message: > for unbuffered I/O arrange for the destination buffer to be filled in one > go, instead

CVS commit: src/lib/libc/stdio

2019-09-07 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Sat Sep 7 11:53:27 UTC 2019 Modified Files: src/lib/libc/stdio: fflush.3 Log Message: Document history To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdio/fflush.3 Please note that diffs are not pub

CVS commit: src/lib/libc/stdio

2019-09-07 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Sat Sep 7 11:53:27 UTC 2019 Modified Files: src/lib/libc/stdio: fflush.3 Log Message: Document history To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libc/stdio/fflush.3 Please note that diffs are not pub

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:48:16 UTC 2019 Modified Files: src/lib/libc/stdio: putc.3 Log Message: putc & putw were in v1 https://www.bell-labs.com/usr/dmr/www/man31.pdf putchar was in v4 https://minie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:48:16 UTC 2019 Modified Files: src/lib/libc/stdio: putc.3 Log Message: putc & putw were in v1 https://www.bell-labs.com/usr/dmr/www/man31.pdf putchar was in v4 https://minie.tuhs.org/cgi-bin/utree.pl?file=V4/man/man3/

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:32:55 UTC 2019 Modified Files: src/lib/libc/stdio: fopen.3 Log Message: Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/lib

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:32:55 UTC 2019 Modified Files: src/lib/libc/stdio: fopen.3 Log Message: Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/lib

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:30:58 UTC 2019 Modified Files: src/lib/libc/stdio: getc.3 Log Message: Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/

CVS commit: src/lib/libc/stdio

2019-09-01 Thread Sevan Janiyan
Module Name:src Committed By: sevan Date: Mon Sep 2 00:30:58 UTC 2019 Modified Files: src/lib/libc/stdio: getc.3 Log Message: Start documenting history https://www.bell-labs.com/usr/dmr/www/man31.pdf To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/

CVS commit: src/lib/libc/stdio

2019-08-31 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sun Sep 1 01:23:14 UTC 2019 Modified Files: src/lib/libc/stdio: tmpnam.3 Log Message: Refer to "w+" as "mode" as that's what fopen(3) calls it. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/stdio/tmpna

CVS commit: src/lib/libc/stdio

2019-08-31 Thread Valeriy E. Ushakov
Module Name:src Committed By: uwe Date: Sun Sep 1 01:23:14 UTC 2019 Modified Files: src/lib/libc/stdio: tmpnam.3 Log Message: Refer to "w+" as "mode" as that's what fopen(3) calls it. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/lib/libc/stdio/tmpna

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

2017-11-06 Thread Joerg Sonnenberger
On Fri, Nov 03, 2017 at 10:49:55PM -0400, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sat Nov 4 02:49:55 UTC 2017 > > Modified Files: > src/lib/libc/stdio: flags.c fopen.3 > > Log Message: > Implement nofollow (l) for fopen(3). Test case? Joerg

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

2014-09-30 Thread Steffen Nurpmeso
Martin Husemann wrote: |On Mon, Sep 29, 2014 at 09:35:04PM +0200, Steffen Nurpmeso wrote: |> Not being able to get to the list of pull-ups from that page, or |> at least getting a hint of where to find them is... a mistake. | |I wouldn't call it a mistake (though links certainly can be added)

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

2014-09-30 Thread Martin Husemann
On Mon, Sep 29, 2014 at 09:35:04PM +0200, Steffen Nurpmeso wrote: > Not being able to get to the list of pull-ups from that page, or > at least getting a hint of where to find them is... a mistake. I wouldn't call it a mistake (though links certainly can be added) - that page documents something c

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

2014-09-29 Thread Steffen Nurpmeso
Martin Husemann wrote: |On Mon, Sep 29, 2014 at 08:29:10PM +0200, Steffen Nurpmeso wrote: |> (And also i would place a link to the current pull-ups (to the |> wiki) on www.netbsd.org/developers/releng/pullups.html, since |> Google shows the latter first, yet that is astonishing empty.) | |Ca

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

2014-09-29 Thread Alan Barrett
On Mon, 29 Sep 2014, Martin Husemann wrote: On Mon, Sep 29, 2014 at 08:29:10PM +0200, Steffen Nurpmeso wrote: (And also i would place a link to the current pull-ups (to the wiki) on www.netbsd.org/developers/releng/pullups.html, since Google shows the latter first, yet that is astonishing empty.

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

2014-09-29 Thread Steffen Nurpmeso
|Module Name: src |Committed By: christos |Date: Mon Sep 29 14:58:33 UTC 2014 | |Modified Files: | src/lib/libc/stdio: printf.3 vsnprintf.c vsnprintf_ss.c | |Log Message: |Return EOVERFLOW like FreeBSD does if the buffer size exceeds INT_MAX |(well FreeBSD documents INT_MAX + 1,

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

2014-09-29 Thread Martin Husemann
On Mon, Sep 29, 2014 at 08:29:10PM +0200, Steffen Nurpmeso wrote: > (And also i would place a link to the current pull-ups (to the > wiki) on www.netbsd.org/developers/releng/pullups.html, since > Google shows the latter first, yet that is astonishing empty.) Can you say that again, please? Marti

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

2012-03-28 Thread Christos Zoulas
In article <20120328161802.gv26...@bigmac.stderr.spb.ru>, Valeriy E. Ushakov wrote: >On Wed, Mar 28, 2012 at 11:30:50 -0400, Christos Zoulas wrote: > >> On Mar 28, 5:24am, u...@stderr.spb.ru ("Valeriy E. Ushakov") wrote: >> -- Subject: Re: CVS commit: src/l

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

2012-03-28 Thread Valeriy E. Ushakov
On Wed, Mar 28, 2012 at 11:30:50 -0400, Christos Zoulas wrote: > On Mar 28, 5:24am, u...@stderr.spb.ru ("Valeriy E. Ushakov") wrote: > -- Subject: Re: CVS commit: src/lib/libc/stdio > > | On Tue, Mar 27, 2012 at 22:53:47 +, Christos Zoulas wrote: > | > | >

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

2012-03-28 Thread Christos Zoulas
On Mar 28, 5:24am, u...@stderr.spb.ru ("Valeriy E. Ushakov") wrote: -- Subject: Re: CVS commit: src/lib/libc/stdio | On Tue, Mar 27, 2012 at 22:53:47 +, Christos Zoulas wrote: | | > In article <20120327202907.gt26...@bigmac.stderr.spb.ru>, | > Valeriy E. Ushakov wrot

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

2012-03-27 Thread Valeriy E. Ushakov
On Tue, Mar 27, 2012 at 22:53:47 +, Christos Zoulas wrote: > In article <20120327202907.gt26...@bigmac.stderr.spb.ru>, > Valeriy E. Ushakov wrote: > > > >But that is not what the code was. The code was: > > > >char c; if (c == CHAR_MAX) ... > > > >and *that* is portable. As I said in an

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

2012-03-27 Thread Cherry G. Mathew
On 28 March 2012 07:53, Christos Zoulas wrote: > In article <20120327202907.gt26...@bigmac.stderr.spb.ru>, > Valeriy E. Ushakov wrote: >> >>But that is not what the code was.  The code was: >> >>    char c; if (c == CHAR_MAX) ... >> >>and *that* is portable.  As I said in another mail to thsi thr

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

2012-03-27 Thread Christos Zoulas
In article <20120327202907.gt26...@bigmac.stderr.spb.ru>, Valeriy E. Ushakov wrote: > >But that is not what the code was. The code was: > >char c; if (c == CHAR_MAX) ... > >and *that* is portable. As I said in another mail to thsi thread that >went unanswered, it is literally schizophrenic o

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

2012-03-27 Thread Valeriy E. Ushakov
On Tue, Mar 27, 2012 at 20:19:41 +, Christos Zoulas wrote: > In article > , > Takehiko NOZAKI wrote: > >-=-=-=-=-=- > > > >Hi, > > > >It seems that lint(1) is not cross build safe, it doesn't handle MD char > >default type of sign/unsignd. See src/usr.bin/xlint/lint1/tree.c::cvtcon(). > >Th

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

2012-03-27 Thread Christos Zoulas
In article , Takehiko NOZAKI wrote: >-=-=-=-=-=- > >Hi, > >It seems that lint(1) is not cross build safe, it doesn't handle MD char >default type of sign/unsignd. See src/usr.bin/xlint/lint1/tree.c::cvtcon(). >They use host MD CHAR_MAX directry ;) > >So, if cross building ppc/arm on other arch ca

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

2012-03-27 Thread Takehiko NOZAKI
Hi, It seems that lint(1) is not cross build safe, it doesn't handle MD char default type of sign/unsignd. See src/usr.bin/xlint/lint1/tree.c::cvtcon(). They use host MD CHAR_MAX directry ;) So, if cross building ppc/arm on other arch cause false alarm , "out of range " warnng. Regards. -- 2012

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

2012-03-21 Thread Takehiko NOZAKI
Hi, It seems that lint(1) is not cross build safe, it doesn't handle MD char default type of sign/unsignd. See src/usr.bin/xlint/lint1/tree.c::cvtcon(). They use host MD CHAR_MAX directry ;) So, if cross building ppc/arm on other arch cause false alarm , "out of range " warnng. very truly yours.

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

2012-03-21 Thread Valeriy E. Ushakov
On Thu, Mar 22, 2012 at 02:36:03 +, Christos Zoulas wrote: > In article <20120322013932.ga24...@britannica.bec.de>, > Joerg Sonnenberger wrote: > >> > >> What's is wrong with it? > > > >It should be unnecessary. CHAR_MAX is certainly required to fit into > >both char and unsigned char. > >

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

2012-03-21 Thread Christos Zoulas
In article <20120322013932.ga24...@britannica.bec.de>, Joerg Sonnenberger wrote: >> >> What's is wrong with it? > >It should be unnecessary. CHAR_MAX is certainly required to fit into >both char and unsigned char. Yes, the issue here being that lint is saying that if char is signed the constant

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

2012-03-21 Thread Joerg Sonnenberger
On Thu, Mar 22, 2012 at 01:31:41AM +, Christos Zoulas wrote: > In article <20120322003141.gb1...@britannica.bec.de>, > Joerg Sonnenberger wrote: > >On Wed, Mar 21, 2012 at 10:20:47AM -0400, Christos Zoulas wrote: > >> Module Name: src > >> Committed By: christos > >> Date:

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

2012-03-21 Thread Christos Zoulas
In article <20120322003141.gb1...@britannica.bec.de>, Joerg Sonnenberger wrote: >On Wed, Mar 21, 2012 at 10:20:47AM -0400, Christos Zoulas wrote: >> Module Name: src >> Committed By:christos >> Date:Wed Mar 21 14:20:47 UTC 2012 >> >> Modified Files: >> src/lib/libc/s

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

2012-03-21 Thread Joerg Sonnenberger
On Wed, Mar 21, 2012 at 10:20:47AM -0400, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Wed Mar 21 14:20:47 UTC 2012 > > Modified Files: > src/lib/libc/stdio: vfwprintf.c > > Log Message: > unsigned char portability casts This looks wrong. What's the p

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

2012-02-17 Thread NONAKA Kimihiro
Hi, 2012/2/18 Christos Zoulas : > Module Name:    src > Committed By:   christos > Date:           Fri Feb 17 19:57:53 UTC 2012 > > Modified Files: >        src/lib/libc/stdio: vfwprintf.c > > Log Message: > Fix: CVE-2012-0864 fprintf() positional argument abuse. > Described in: http://www.phrack

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

2011-09-11 Thread Jukka Ruohonen
On Mon, Sep 12, 2011 at 07:00:52AM +0300, Jukka Ruohonen wrote: > True enough. But I've generally followed "NetBSD-specific vs. standard" > dichotomy. In the ideal case one could mention if a function is available > in OpenBSD, FreeBSD, Solaris, Linux, etc. too, but we have enough trouble > maintai

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

2011-09-11 Thread Jukka Ruohonen
On Mon, Sep 12, 2011 at 02:41:07AM +, David Holland wrote: > On Sun, Sep 11, 2011 at 07:37:06AM +, Jukka Ruohonen wrote: > > Modified Files: > >src/lib/libc/stdio: funopen.3 > > > > Log Message: > > It is not just funopen(3) that is a BSDism. > > While that's true, those function

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

2011-09-11 Thread David Holland
On Sun, Sep 11, 2011 at 07:37:06AM +, Jukka Ruohonen wrote: > Modified Files: > src/lib/libc/stdio: funopen.3 > > Log Message: > It is not just funopen(3) that is a BSDism. While that's true, those functions aren't specific to .Nx; AFAIK they were in 4.4. -- David A. Holland dholl

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

2010-10-24 Thread Matthias Scheler
On Mon, Oct 25, 2010 at 12:24:14AM +0700, Robert Elz wrote: > Date:Sun, 24 Oct 2010 16:00:46 +0100 > From:Matthias Scheler > Message-ID: <20101024150046.ga...@colwyn.zhadum.org.uk> > > | It doesn't have to be a macro anyway as it used only ones. > > Yes, I meant to

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

2010-10-24 Thread Robert Elz
Date:Sun, 24 Oct 2010 16:00:46 +0100 From:Matthias Scheler Message-ID: <20101024150046.ga...@colwyn.zhadum.org.uk> | It doesn't have to be a macro anyway as it used only ones. Yes, I meant to ask about that, simply written inline would be no problem. kre

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

2010-10-24 Thread Matthias Scheler
On Sun, Oct 24, 2010 at 09:55:21AM +0700, Robert Elz wrote: > Date:Sat, 23 Oct 2010 16:33:37 +0100 > From:Matthias Scheler > Message-ID: <20101023153336.ga...@colwyn.zhadum.org.uk> > > | I'm sorry but this whole code is horrible. > > I agree with that, but ... > >

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

2010-10-23 Thread Robert Elz
Date:Sat, 23 Oct 2010 16:33:37 +0100 From:Matthias Scheler Message-ID: <20101023153336.ga...@colwyn.zhadum.org.uk> | I'm sorry but this whole code is horrible. I agree with that, but ... | What is wrong with something as simple as this? | +#define _FPOS_OVERF

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

2010-10-23 Thread Christos Zoulas
In article <20101023153336.ga...@colwyn.zhadum.org.uk>, Matthias Scheler wrote: >On Sat, Oct 23, 2010 at 10:12:51AM -0400, Christos Zoulas wrote: >> Module Name: src >> Committed By:christos >> Date:Sat Oct 23 14:12:51 UTC 2010 >> >> Modified Files: >> src/lib/libc/s

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

2010-10-23 Thread Matthias Scheler
On Sat, Oct 23, 2010 at 10:12:51AM -0400, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sat Oct 23 14:12:51 UTC 2010 > > Modified Files: > src/lib/libc/stdio: local.h > > Log Message: > tell lint to shut up. I'm sorry but this whole code is horrible. W

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

2010-10-23 Thread Jukka Ruohonen
On Fri, Oct 22, 2010 at 05:29:46PM -0400, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Fri Oct 22 21:29:46 UTC 2010 > > Modified Files: > src/lib/libc/stdio: ftell.c local.h > > Log Message: > implement EOVERFLOW > > > To generate a diff of this comm

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

2010-09-27 Thread Masao Uebayashi
On Tue, Sep 28, 2010 at 08:28:04AM +0200, Alistair Crooks wrote: > On Tue, Sep 28, 2010 at 11:06:39AM +0900, Masao Uebayashi wrote: > > > Index: src/lib/libc/stdio/fmemopen.c > > > diff -u src/lib/libc/stdio/fmemopen.c:1.3 > > > src/lib/libc/stdio/fmemopen.c:1.4 > > > --- src/lib/libc/stdio/fmemop

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

2010-09-27 Thread Alistair Crooks
On Tue, Sep 28, 2010 at 11:06:39AM +0900, Masao Uebayashi wrote: > > Index: src/lib/libc/stdio/fmemopen.c > > diff -u src/lib/libc/stdio/fmemopen.c:1.3 src/lib/libc/stdio/fmemopen.c:1.4 > > --- src/lib/libc/stdio/fmemopen.c:1.3 Sat Sep 25 14:00:30 2010 > > +++ src/lib/libc/stdio/fmemopen.c

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

2010-09-27 Thread Masao Uebayashi
> Index: src/lib/libc/stdio/fmemopen.c > diff -u src/lib/libc/stdio/fmemopen.c:1.3 src/lib/libc/stdio/fmemopen.c:1.4 > --- src/lib/libc/stdio/fmemopen.c:1.3 Sat Sep 25 14:00:30 2010 > +++ src/lib/libc/stdio/fmemopen.c Mon Sep 27 16:50:13 2010 > @@ -79,16 +79,18 @@ > if (p->cur >= p->tail)

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

2010-05-15 Thread David Holland
On Fri, May 14, 2010 at 08:29:34AM +0300, Jukka Ruohonen wrote: > > Yes. The trouble is that because libraries and headers don't match up, > > you need to parse headers to extract the lists, and that seems likely > > to end up being delicate and a constant source of annoyance. > > How about

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

2010-05-13 Thread Jukka Ruohonen
On Fri, May 14, 2010 at 05:10:24AM +, David Holland wrote: > Yes. The trouble is that because libraries and headers don't match up, > you need to parse headers to extract the lists, and that seems likely > to end up being delicate and a constant source of annoyance. How about the section 4 ma

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

2010-05-13 Thread David Holland
On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > Correct the discussion about return values: fileno() may fail and return > -1. > > Note that in such cases the NetBSD implementation does not set errno to >

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

2010-05-13 Thread David Holland
On Fri, May 14, 2010 at 05:10:24AM +, David Holland wrote: > Anyway, can you (at your convenience) send me a list of the things > like this that need consistency checking? I will then have a shot at > writing some scripts and we can see what things look like. er wait, there's a list upthrea

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

2010-05-13 Thread David Holland
On Thu, May 06, 2010 at 03:17:38PM +0300, Jukka Ruohonen wrote: > > > Perhaps we need a bot to watch all commits and send reminders like > > > "You added a new file, but you haven't updated the sets, see > > > for instructions", "You added a new sysctl node but you haven't > > > updated sysctl

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

2010-05-07 Thread Christos Zoulas
In article <20100507063258.ga23...@apb-laptoy.apb.alt.za>, Alan Barrett wrote: >On Thu, 06 May 2010, Christos Zoulas wrote: >> >The fileno() function may fail if: >> > >> >[EBADF] >> >The stream argument is not a valid stream, or the stream is not >> >associated with a file. >

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

2010-05-06 Thread Alan Barrett
On Thu, 06 May 2010, Christos Zoulas wrote: > >The fileno() function may fail if: > > > >[EBADF] > >The stream argument is not a valid stream, or the stream is not > > associated with a file. > > > >Isn't the above EBADF exactly what you are after? > > Our stdio supports funope

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

2010-05-06 Thread Christos Zoulas
In article <20100506150045.ga...@marx.bitnet>, Jukka Ruohonen wrote: >On Thu, May 06, 2010 at 02:48:32PM +0200, Joerg Sonnenberger wrote: >> On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: >> > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: >> > > Correct the disc

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

2010-05-06 Thread Matthias Scheler
On 6 May 2010, at 9:14, Jukka Ruohonen wrote: > Module Name: src > Committed By: jruoho > Date: Thu May 6 08:14:08 UTC 2010 > > Modified Files: > src/lib/libc/stdio: ferror.3 > > Log Message: > Correct the discussion about return values: fileno() may fail and return -1. > Note t

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

2010-05-06 Thread Joerg Sonnenberger
On Thu, May 06, 2010 at 06:00:45PM +0300, Jukka Ruohonen wrote: > On Thu, May 06, 2010 at 02:48:32PM +0200, Joerg Sonnenberger wrote: > > On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > > > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > > > Correct the discuss

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

2010-05-06 Thread Jukka Ruohonen
On Thu, May 06, 2010 at 02:48:32PM +0200, Joerg Sonnenberger wrote: > On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > > Correct the discussion about return values: fileno() may fail and return > > -1. > > > No

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

2010-05-06 Thread Joerg Sonnenberger
On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > Correct the discussion about return values: fileno() may fail and return > -1. > > Note that in such cases the NetBSD implementation does not set errno to > > EBA

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

2010-05-06 Thread Jukka Ruohonen
On Thu, May 06, 2010 at 07:48:59AM +, David Holland wrote: > On Wed, May 05, 2010 at 08:05:20AM +0200, Alan Barrett wrote: > > Perhaps we need a bot to watch all commits and send reminders like > > "You added a new file, but you haven't updated the sets, see > > for instructions", "You adde

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

2010-05-06 Thread Jukka Ruohonen
On Thu, May 06, 2010 at 12:04:53PM +0300, Jukka Ruohonen wrote: > On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > > Correct the discussion about return values: fileno() may fail and return > > -1. > > > Note t

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

2010-05-06 Thread Jukka Ruohonen
On Thu, May 06, 2010 at 08:51:29AM +, David Holland wrote: > On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > > Correct the discussion about return values: fileno() may fail and return > -1. > > Note that in such cases the NetBSD implementation does not set errno to > > EBA

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

2010-05-06 Thread David Holland
On Thu, May 06, 2010 at 08:14:08AM +, Jukka Ruohonen wrote: > Correct the discussion about return values: fileno() may fail and return -1. > Note that in such cases the NetBSD implementation does not set errno to > EBADF, hence diverging from the standard in this small detail. How is that n

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

2010-05-06 Thread David Holland
On Wed, May 05, 2010 at 08:05:20AM +0200, Alan Barrett wrote: > On Wed, 05 May 2010, Jukka Ruohonen wrote: > > Few examples of pages that are badly and *systematically* behind: > > > >intro(3) > >intro(4) > >pci(4) > >usb(4) > >mk.conf(5) > >sysctl(7) > > Perhap

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

2010-05-05 Thread Joerg Sonnenberger
On Wed, May 05, 2010 at 06:53:06AM +0300, Jukka Ruohonen wrote: > > Please revert this change. > > I will rever it. Can you change it to use .Xr please? That makes proper cross-references in HTML output possible. Joerg

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

2010-05-05 Thread Jukka Ruohonen
On Wed, May 05, 2010 at 08:52:23AM +0100, Mindaugas Rasiukevicius wrote: > History is indeed important, however it belongs to books, articles, etc. > Other part of history belongs to version control logs, as Robert already > mentioned. If I will want to figure out why and by whom some function was

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

2010-05-05 Thread Mindaugas Rasiukevicius
Jukka Ruohonen wrote: > On Wed, May 05, 2010 at 12:58:13AM +0700, Robert Elz wrote: > > | As something like gets() has been standardized for ages, it makes > > | sense to explicitly note that this may no longer be true (with > > | respect to POSIX). > > > > That's where I disagree, it is ju

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

2010-05-04 Thread Alan Barrett
On Wed, 05 May 2010, Jukka Ruohonen wrote: > Few examples of pages that are badly and *systematically* behind: > > intro(3) > intro(4) > pci(4) > usb(4) > mk.conf(5) > sysctl(7) Perhaps we need a bot to watch all commits and send reminders like "You added a new

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

2010-05-04 Thread Jukka Ruohonen
On Wed, May 05, 2010 at 01:03:49PM +1000, Luke Mewburn wrote: > I disagree; a list of all the public APIs for a given library in > the main man page for that library is very useful. One more note I have made while skimming through the manual pages. Few examples of pages that are badly and *system

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

2010-05-04 Thread Jukka Ruohonen
On Wed, May 05, 2010 at 01:03:49PM +1000, Luke Mewburn wrote: > On Tue, May 04, 2010 at 07:43:12AM +, Jukka Ruohonen wrote: > | Remove the list of functions. > | > | This list was updated only two times in nearly two decades. > | > | (If people need to learn the standard I/O functio

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

2010-05-04 Thread Luke Mewburn
On Tue, May 04, 2010 at 07:43:12AM +, Jukka Ruohonen wrote: | Module Name:src | Committed By: jruoho | Date: Tue May 4 07:43:12 UTC 2010 | | Modified Files: | src/lib/libc/stdio: stdio.3 | | Log Message: | Remove the list of functions. |

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

2010-05-04 Thread Jukka Ruohonen
On Wed, May 05, 2010 at 12:58:13AM +0700, Robert Elz wrote: > | As something like gets() has been standardized for ages, it makes sense to > | explicitly note that this may no longer be true (with respect to POSIX). > > That's where I disagree, it is just bloat - once it stops being a standard

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

2010-05-04 Thread Robert Elz
Date:Tue, 4 May 2010 16:39:16 +0300 From:Jukka Ruohonen Message-ID: <20100504133916.ga9...@marx.bitnet> | In my manual page: [...] | What was the problem again? Something odd - sorry - it looks as if my (older) "nroff -mandoc" on current sources manages to lose

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

2010-05-04 Thread Joerg Sonnenberger
On Tue, May 04, 2010 at 04:39:16PM +0300, Jukka Ruohonen wrote: > In my manual page: > > The functions fgets() and gets() conform to ANSI X3.159-1989 > (``ANSI C89'') and IEEE Std 1003.1-2001 (``POSIX.1''). The IEEE Std > 1003.1-2008 (``POSIX.1'') revision marked gets() as obsolesc

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

2010-05-04 Thread Jukka Ruohonen
On Tue, May 04, 2010 at 06:35:48PM +0700, Robert Elz wrote: > I don't understand the change - that is, I don't understand the > sentence that was added to the man page, it says ... > > "The revision marked gets() as obsolete..." > > What revision??? In my manual page: The functions fgets()

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

2010-05-04 Thread Robert Elz
Date:Fri, 30 Apr 2010 06:00:14 + From:Jukka Ruohonen Message-ID: <20100430060014.7739117...@cvs.netbsd.org> | Module Name:src | Committed By: jruoho | Date: Fri Apr 30 06:00:14 UTC 2010 | | Modified Files: | src/lib/lib

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

2009-12-07 Thread enami tsugutomo
Roy Marples writes: > Module Name: src > Committed By: roy > Date: Wed Dec 2 11:14:47 UTC 2009 > > Modified Files: > src/lib/libc/stdio: getdelim.c > > Log Message: > Pass lint. > > > To generate a diff of this commit: > cvs rdiff -u -r1.10 -r1.11 src/lib/libc/stdio/getdelim.c

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

2009-11-30 Thread matthew green
Module Name: src Committed By:roy Date:Tue Dec 1 00:03:53 UTC 2009 Modified Files: src/lib/libc/stdio: fgetstr.c getdelim.c local.h Log Message: Remove __getdelim and just use getdelim. this isn't right. now someone can provide their ow

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

2009-11-30 Thread Joerg Sonnenberger
On Mon, Nov 30, 2009 at 10:51:46PM +, Roy Marples wrote: > Module Name: src > Committed By: roy > Date: Mon Nov 30 22:51:46 UTC 2009 > > Modified Files: > src/lib/libc/stdio: getdelim.3 > > Log Message: > Note that EOF returns -1 when no characters are read. > Add code example.

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

2009-10-26 Thread James Chacon
On Oct 26, 2009, at 4:02 PM, David Laight wrote: On Sun, Oct 25, 2009 at 05:42:20PM +, Christos Zoulas wrote: Can we just revert the past 2 commits? Changing: (size_t)x -> x + 0u does not look like an improvement to me. At least the first shows the intent, the second is just confusin

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

2009-10-26 Thread David Laight
On Sun, Oct 25, 2009 at 05:42:20PM +, Christos Zoulas wrote: > > Can we just revert the past 2 commits? Changing: > > (size_t)x -> x + 0u > > does not look like an improvement to me. At least the first shows the intent, > the second is just confusing, specially when size_t is unsigned long.

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

2009-10-26 Thread Matthias Scheler
On Mon, Oct 26, 2009 at 06:14:36AM +, David Holland wrote: > On Sun, Oct 25, 2009 at 05:09:34PM +, David Laight wrote: > > Lint is differentially far too picky... > > Remove some warnings that only appear on i386 (not on amd64) and that > > for some reason best known to others are deemed

  1   2   >