[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getdelim doesn't set errno on failure?
From: |
Simon Josefsson |
Subject: |
Re: getdelim doesn't set errno on failure? |
Date: |
Thu, 01 Sep 2005 13:09:43 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Derek Price <address@hidden> writes:
> Whoa! Why fix the documentation? Why not simply return EOF on EOF, as
> currently described? The attached simple patch fixes this in
> lib/getdelim.c, matching the behavior to that displayed by my local
> glibc. This fix has been tested on at least one platform which was
> prevoiusly looping indefinitely around code that expected (and has
> expected for years) a -1 return to signify EOF.
>
> 2005-08-31 Derek Price <address@hidden>
>
> * getdelim.c (getdelim): Return EOF on EOF.
> Reported by Larry Jones <address@hidden>.
Look fine, applied!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: getdelim doesn't set errno on failure?,
Simon Josefsson <=