[PATCH] Wrong errno out of memory in open syscall

Brandon S. Allbery KF8NH allbery en kf8nh.apk.net
Sab Ene 29 00:33:53 CST 2000


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.

-- 
brandon s. allbery	   os/2,linux,solaris,perl	allbery en kf8nh.apk.net
system administrator	   kthkrb,heimdal,gnome,rt	  allbery en ece.cmu.edu
carnegie mellon / electrical and computer engineering			kf8nh
    We are Linux. Resistance is an indication that you missed the point.



-
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