Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Ugh in 2.1.60 | Date | 31 Oct 1997 21:29:09 GMT |
| |
Followup to: <k2en51uavl.fsf@zero.aec.at> By author: Andi Kleen <ak@muc.de> In newsgroup: linux.dev.kernel > > The problem of returning two values in get_user() can be simply solved > by using asm wrappers and the same trick that the syscalls use - just > set the carry bit on error and fetch the error from another register > then. >
At least on the i386, syscall errors are handled by returning -errno, which means that negative values cannot be legitimately returned.
-hpa -- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
| |