Re: glib outstanding stuff
- From: Havoc Pennington <hp redhat com>
- To: Joel Becker <jlbec evilplan org>
- Cc: David Benson <daveb ffem org>, gtk-devel-list gnome org
- Subject: Re: glib outstanding stuff
- Date: 04 Oct 2000 23:26:41 -0400
Joel Becker <jlbec evilplan org> writes:
> On Wed, Oct 04, 2000 at 06:36:50PM -0700, David Benson wrote:
> > except if the file is a fifo (or an entry in /proc),
> > so probably a fallback to havoc's original implemention
> > would be a good idea.
>
> Oh, yeah, forgot about that case. I have a load_file_fd()
> function that handles those cases, and dynamic buffering is used. I
> still think that the overhead of stdio is not needed.
>
What is the trigger for the fallback?
I'm not sure I want to write:
if is_fifo() || is_proc() || is_socket():
blah;
since we could omit a case on some platform. Is there another
(portable) way to tell (does stat return a size of 0 here?)
> Eek! I haven't had one fail, so I didn't see that. What is the
> status on the "try to get memory and fail gracefully so the app can
> abort nicely" attempts?
>
Going into GLib 2.0 in some form, I would guess.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]