On Sat, 20 Mar 2010 15:32:56 +0100The following (attached) test case works fine however, using mode 0 or
Juan Jose Garcia-Ripoll <firstname.lastname@example.org> wrote:
> A candidate for failure is when you create a file descriptor with one mode
> and try to fdopen() it with a different mode, as in the following tiny
> Replacing smm_io with smm_input fixes the problem here.
07777, except for the close(2) syscall since fclose(3) closes the
internal file descriptor (which as necessary could be fixed using
dup(2)/dup2(2) of course). There the FD is also open O_RDONLY yet the
fdopen(3) and fgets(3) calls work fine with an "rw" FILE...