Hi Talkers, I found some sources where the guy uses _locking from the WIN API to replace lockf, I adapted this and linked the Cygwin executable against /usr/lib/mingw/libcrtdll.a. Is this a possible way to go? Or does libcrtdll conflict with libcygwin? At least the application seems to run basically, I have not tested the relevant parts though. Gerrit -- =^..^=