Minor DJGPP fixes

Zack Weinberg zack@wolery.cumb.org
Mon May 1 09:07:00 GMT 2000


On Mon, May 01, 2000 at 04:37:09AM -0400, Eli Zaretskii wrote:
> > - fcntl() working is a characteristic of the _host_, not the target.
> > - You should determine if it works using an autoconf test.
> 
> Why didn't the original code use an Autoconf test, then?  I understand
> that it was added only recently.

Because I never dreamed that any system wouldn't support that
particular fcntl() operation.  It's been around since forever in
Unix.  I'm tempted to tell you to fix your library.

> > - If it doesn't work, you need to open the file in blocking mode, not
> >   just elide the fcntl(); otherwise the code reading the file will
> >   break. 
> 
> Could you please explain what does ``open in blocking mode'' mean?
> Isn't a normal default `open' good enough?  If not, why not?

I think this has been adequately explained elsewhere.

zw


More information about the Gcc-patches mailing list