[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] getdelim doesn't set errno on failure?
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] getdelim doesn't set errno on failure? |
Date: |
Tue, 23 Aug 2005 17:09:16 +0200 |
User-agent: |
KMail/1.5 |
Oskar Liljeblad wrote:
> I don't know if this is necessary or necessarily correct, but
> it seems getdelim doesn't always set errno on failure (when it
> returns -1).
It is also not specified to do so. 'getdelim' is a glibc invention, and
the glibc manual says:
"If an error occurs or end of file is reached without any bytes
read, `getline' returns `-1'.
...
[getdelim] is like `getline' except ..."
without mentioning errno.
If you change the gnulib implementation without also changing the
glibc and the cygwin implementation, it buys you nothing.
Bruno
- Re: getdelim doesn't set errno on failure?, (continued)
- Re: getdelim doesn't set errno on failure?, Bruno Haible, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Jim Meyering, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Bruno Haible, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Oskar Liljeblad, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Jim Meyering, 2005/08/24
- Re: ISO C 99 versus POSIX 2001, Bruno Haible, 2005/08/24
- Re: ISO C 99 versus POSIX 2001, Paul Eggert, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Oskar Liljeblad, 2005/08/24
- Re: getdelim doesn't set errno on failure?, Derek Price, 2005/08/31
- Re: getdelim doesn't set errno on failure?, Derek Price, 2005/08/31
Re: [bug-gnulib] getdelim doesn't set errno on failure?,
Bruno Haible <=