This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 0/5] obstacks again
- From: Paul Eggert <eggert at cs dot ucla dot edu>
- To: Eric Blake <eblake at redhat dot com>, Alan Modra <amodra at gmail dot com>
- Cc: bug-gnulib at gnu dot org, libc-alpha at sourceware dot org
- Date: Fri, 31 Oct 2014 15:24:13 -0700
- Subject: Re: [PATCH 0/5] obstacks again
- Authentication-results: sourceware.org; auth=none
- References: <20141029033201 dot GI4267 at bubble dot grove dot modra dot org> <5450983F dot 3030608 at cs dot ucla dot edu> <20141029220223 dot GP4267 at bubble dot grove dot modra dot org> <5451B1F6 dot 7060305 at cs dot ucla dot edu> <20141030060723 dot GR4267 at bubble dot grove dot modra dot org> <5453E801 dot 6050402 at cs dot ucla dot edu> <5454098E dot 2080502 at redhat dot com>
Eric Blake wrote:
Can we use ssize_t instead of size_t for obstack_blank_fast?
Not portably, no. ssize_t need not be the same width as size_t.
As I understand it, ssize_t was partly invented to support platforms where
'read' took a 64-bit size_t argument and returned a 32-bit signed result -- and
ssize_t is therefore best avoided except when dealing directly with system calls
that return ssize_t.