Mail Archives: djgpp-workers/2003/03/07/13:45:06
> I was unsure whether to duplicate the information about handling
> out-of-space errors or just refer to the write page from the pwrite page.
> Any thoughts?
I think referring to the write page is fine.
> + /* Is this a redirected standard handle: stdout, stderr?
> + * I.e.: are the standard handles pipes? Disallow on pipes. */
> + switch(fd) {
> + case STDOUT_FILENO:
> + case STDERR_FILENO:
> + if (isatty(fd) == 0) {
Why not just call isatty() for all fds? stderr/stdout aren't the only
fds that can be redirected. Consider that at least stdaux and stdprn
are also ttys.
> + @portability !ansi, !posix-1003.2-1992, posix-1003.1-2001
I'm wondering if, given the plethora of new standards coming out, we
should rethink how the portability tags work. Maybe we should just
note the standards where the functions were first introduced, and
elide the !s for superceded standards? I.e., in this case, the two !s
would be redundant if you say it was added in posix-1003.1-2001.
- Raw text -