bug-gnulib
[Top][All Lists]
Advanced

[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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]