Re: [PATCH] Wrong errno out of memory in open syscall

From: Guest section DW (dwguest@win.tue.nl)
Date: Fri Jan 28 2000 - 19:28:28 EST


On Fri, Jan 28, 2000 at 05:58:58PM -0500, Brandon S. Allbery KF8NH wrote:
> In message <E12EEUh-00053m-00@the-village.bc.nu>, Alan Cox writes:
> +-----
> | > - return ERR_PTR(-EACCES);
> | > + return ERR_PTR(-ENOMEM);
> |
> | ENOMEM isnt a valid return to open() except for a streams file. Quite why
> | SuS specifies this I dont know.
> +--->8
>
> System V returns EAGAIN for this kind of condition, since it's considered a
> "temporarily out of system resources" kind of error, FWIW. It would seem to
> make a bit more sense than EACCES.

Yes.
What version of System V is this? I have a handful of System V manuals,
but mine either do not list EAGAIN at all (for open()) or describe it
by "the path argument names the slave side of a pseudo-terminal device
that is locked". Or is this undocumented behaviour?

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:22 EST