Mail Archives: djgpp-workers/2012/05/07/16:11:20
> Date: Sun, 06 May 2012 20:41:30 +0300
> From: Eli Zaretskii <eliz AT gnu DOT org>
>
> > From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
> > Date: Sun, 6 May 2012 18:06:08 +0200
> >
> > I have tried to implement the case when a NULL pointer is passed as filename.
> > Because DOS does not allow to change file descriptor flags of open files, only
> > the change of textmode using setmode() is supported. Any other function call
> > with a NULL pointer as filename argument will fail with EBADF.
> > Please note that a different file acces mode will make the call fail,
> > e.g.: if the new mode is O_WRONLY but the old mode was O_RDWR then the call
> > will fail. No file access mode is allowed.
> > Suggestions, objections, comments are welcome.
>
> Thanks, this looks good to me.
However, this thread:
http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00063.html
and in particular its last 2 messages, seem to indicate that perhaps
we shouldn't support such a controversial feature.
- Raw text -