>If I understand this correctly, the problem was that you was doing a
>readlock instead of an unlock.
it was doing a lock, and setting the file to read-only for all
processes in the system.
>The write you got in the log, was a write on a not locked file.
the OS/2 readonly flags explain things: in my_pwrite(), lseek() was
working ok, while write() was failing. Now I removed the read-only flag
from locking code, and mysql is working well.
>This doesn't however has anything to do with how Unix works; The locks
>and read/write access on a file are independent.
I think this is an OS/2 extra feature, not present under Unix (or at
least not with the same name).
* member of TeamOS/2 - Italy