The F_SETLK constant is set at 6 on BSD systems... while 6 is correct for Linux systems, F_SETLK is 8 on BSD systems... I assume this means that F_SETOWN etc. are wrote too for fcntl constants on BSD systems. Just to let you know. :-)