From: M. R. B. <mr...@0x...> - 2002-11-01 03:20:14
|
* NIIBE Yutaka <gn...@m1...> on Fri, Nov 01, 2002: > M. R. Brown wrote: > > You're confusing pread w/ pread64. >=20 > Please look the problem at first. Linux's "pread" API is different > with POSIX. We don't have pread64 in Linux. Please check. The last > argument is 64-bit (long-long) in Linux, but GNU C library offers > POSIX API. >=20 I've been doing too much 2.5 hacking lately. I apologize for this, there's a pread64 in 2.5, not 2.4 (apparently it was renamed). > I think that your opinion is the Right Thing, basically (handle in > libc layer rather than in kernel). In general. >=20 > But I wonder if you understand this problem, specifically. >=20 I do now. > The issue is calling convention of long-long. >=20 > I think that better way to solve this is implement pread with 6 > arguments with dummy fourth argument, as MIPS implementation. >=20 > I mean, fix kernel, fix glibc, BOTH. Yep. Sorry. I assumed it was a glibc problem only. M. R. |