Hi!

I'm using pread/pwrite in my multi-threaded application. Ran into mysterious
problems. I discovered that uClibc thinks that the kernel does not implement
pread/pwrite (__NR_pread is not defined). __NR_pread64 is defined though.
This make uClibc use a fake pread/pwrite instead, using three lseeks (one to
save the old position, one to reposition and finally, after the read/write
operation, one to restore the original position). This sequence is
apparently not thread safe which causes my problems. The place this is
implemented is libc/sysdeps/linux/common/pread_write.c.

I'm using uClibc-0.9.29. Do you have any suggestions? Is this a bug or have
I misconfigured? I have configured uClibc with LFS.

Best Regards,
Marcus
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to