[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] __fpending prototype: `const' parameter
From: |
Paul Eggert |
Subject: |
Re: [bug-gnulib] __fpending prototype: `const' parameter |
Date: |
Thu, 25 Nov 2004 12:06:43 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> extern size_t __fpending (FILE *__fp) __THROW;
>
> Yet, shouldn't the parameter be a const pointer?
It's not a const pointer in Solaris 9, and I assume it's done that
way for compatibility with Solaris.
One can imagine an implementation that caches the pending byte count
on request, but normally doesn't compute it; in that case, it'd be
more useful to have the pointer be non-const.