[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read-file
From: |
Simon Josefsson |
Subject: |
Re: read-file |
Date: |
Fri, 16 Jun 2006 21:54:46 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
address@hidden (Larry Jones) writes:
> Simon Josefsson writes:
>>
>> Yup. That's the intention. (Of course, other functions may set errno
>> too, if, e.g., malloc or fclose fails.)
>
> malloc() doesn't set errno, either.
I believe the one in glibc does. Also, 1003.1-2004 says malloc should
set errno:
http://www.opengroup.org/onlinepubs/009695399/functions/malloc.html
Note this part:
The following new requirements on POSIX implementations derive from
alignment with the Single UNIX Specification:
* In the RETURN VALUE section, the requirement to set errno to
indicate an error is added.
* The [ENOMEM] error condition is added.
/Simon
- read-file (was: strfile), Simon Josefsson, 2006/06/16
- Re: [bug-gnulib] read-file (was: strfile), Bruno Haible, 2006/06/16
- Re: read-file, Paul Eggert, 2006/06/16
- Re: read-file, Aaron Stone, 2006/06/16
- Re: read-file, Simon Josefsson, 2006/06/16
- Re: read-file, Larry Jones, 2006/06/16
- Re: read-file,
Simon Josefsson <=
- Re: read-file, Larry Jones, 2006/06/16
- Re: read-file, Paul Eggert, 2006/06/19
Re: read-file, Simon Josefsson, 2006/06/16
- Re: read-file, Larry Jones, 2006/06/16
- Re: read-file, Simon Josefsson, 2006/06/16
- Re: read-file, Larry Jones, 2006/06/16
- Re: read-file, Simon Josefsson, 2006/06/17
- Re: read-file, Paul Eggert, 2006/06/19
- Re: read-file, Simon Josefsson, 2006/06/21