[PATCH] Wrong errno out of memory in open syscall

Guest section DW dwguest en win.tue.nl
Sab Ene 29 04:26:30 CST 2000


On Fri, Jan 28, 2000 at 05:58:58PM -0500, Brandon S. Allbery KF8NH wrote:
> In message <E12EEUh-00053m-00 en 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 en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda