Re: POSIX compatibility?

Ulrich Drepper (drepper@myware.rz.uni-karlsruhe.de)
11 Dec 1996 16:11:53 +0100


Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> writes:

> This is a different issue: libio (fgetc) always restarts read() after
> EINTR. But that's exactly what is desired, isn't it? Otherwise the test
> program would not exit with zero (result = ch == EOF && errno == EINTR).

I've looked through XPG4.2 and here EINTR is explicitly mentioned as
one of the possible errors. So I removed the restart code in libio.

I only hope this is compatible with ISO c++ as well...

-- Uli
---------------. drepper@cygnus.com ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper@gnu.ai.mit.edu `------------------------