Lines Matching defs:fcntl
44 import fcntl
46 fcntl = None
3928 @unittest.skipIf(fcntl is None, "need fcntl")
3935 flags = fcntl.fcntl(fd, fcntl.F_GETFD)
3936 flags &= ~fcntl.FD_CLOEXEC
3937 fcntl.fcntl(fd, fcntl.F_SETFD, flags)
3941 @unittest.skipIf(fcntl is None, "need fcntl")
3945 self.assertEqual(fcntl.fcntl(fd, fcntl.F_GETFD) & fcntl.FD_CLOEXEC,
3946 fcntl.FD_CLOEXEC)
3949 self.assertEqual(fcntl.fcntl(fd, fcntl.F_GETFD) & fcntl.FD_CLOEXEC,