diff options
author | cognet <cognet@FreeBSD.org> | 2006-10-21 00:46:56 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2006-10-21 00:46:56 +0000 |
commit | b4b85ee027c1dea172f462f1067f45b7ebc11961 (patch) | |
tree | 1ec2d4885194bbc00bbbc1fd2e745cb91cfeea53 /lib/libc/stdlib/getopt.c | |
parent | 8f92fe04c3829512304e750aec70de2de57b0897 (diff) | |
download | FreeBSD-src-b4b85ee027c1dea172f462f1067f45b7ebc11961.zip FreeBSD-src-b4b85ee027c1dea172f462f1067f45b7ebc11961.tar.gz |
Ok I am an idiot. On 32 bits big-endian systems, it is needed to handle the
syscalls using __syscall but only actually returning 32bits, such as mmap(),
specially : they set the return value in td->td_retval[0], but the userland
functions will expect this in r1, and not in r0 as it is normally done, as it
is the LSB. So add a special case for all these syscalls (all except lseek,
which truly returns 64bits).
Many thanks to Peter Grehan for his patience while explaining me the issue.
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions