I think this is fcntl(..., F_SETFL, ...), so something like
    import os, fcntl, sys
    flags = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL)      
    flags |= os.O_DIRECT
    fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, flags)

Jeff

Attachment: pgpx52DBavw3Y.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to