Use the 'fcntl' module. 
This module is expected to be fully working.
