From: M. R. B. <mr...@0x...> - 2002-10-31 15:57:36
|
* SUGIOKA Toshinobu <su...@it...> on Fri, Nov 01, 2002: > Hi, all. >=20 > Currently, pread/pwrite system call do not work on SH-4. >=20 > This is caused by mismatch of calling convention. > (see glibc-2.2.5/sysdeps/unix/sysv/linux/pread.c) > glibc invokes pread system call with 5 long arguments, > but sys_pread takes 3 longs and 1 long long. These are > different on SH-4. (otherwise same on SH-3) >=20 > I have attached the patch which I'll commit if no one has any objections. >=20 You're confusing pread w/ pread64. Please fix glibc, and keep this mess out of the kernel. M. R. |