[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glibc related porting questions
From: |
Roland McGrath |
Subject: |
Re: glibc related porting questions |
Date: |
Mon, 23 Jul 2001 19:32:10 -0400 (EDT) |
> 1. it is trying to close all file descriptors in pipe_open, using NOFILE.
> We don't define that. Should it keep track of fds it opens and close
> exactly those? I think that is the proper fix, isn't it?
Yes, or use FD_CLOEXEC when you open them.
> Or is it completely unnecessary to close the fds?
No, it's necessary.
> 2. There is a READ_DATA_PENDING macro to determine the available bytes
> for reading(?) on various systems. Seems to be a highly inofficial
> thing. Anyways, the GLibC support there relies on _STDIO_USES_IOSTREAM,
> which we don't define. What will work for us with our stdio?
Add a configure check for stdio_ext.h and use those interfaces. They exist
in libio since glibc-2.2, and it so happens I just added them for stdio
this weekend (you need to test the new code because I haven't).