Lines Matching defs:fcntl
36 import fcntl
38 fcntl = None
55 if fcntl is None:
61 r = fcntl.ioctl(f, socket.IOCTL_VM_SOCKETS_GET_LOCAL_CID, " ")
487 @unittest.skipIf(fcntl is None, "need fcntl")
2402 @unittest.skipIf(fcntl is None, "need fcntl")
4686 if fcntl is not None:
4694 flag = fcntl.fcntl(sock, fcntl.F_GETFL, os.O_NONBLOCK)
5848 @unittest.skipIf(fcntl is None, "need fcntl")
5856 flags = fcntl.fcntl(fd, fcntl.F_GETFD)
5857 flags &= ~fcntl.FD_CLOEXEC
5858 fcntl.fcntl(fd, fcntl.F_SETFD, flags)
5862 @unittest.skipIf(fcntl is None, "need fcntl")
5867 self.assertEqual(fcntl.fcntl(fd, fcntl.F_GETFD) & fcntl.FD_CLOEXEC,
5868 fcntl.FD_CLOEXEC)
5871 self.assertEqual(fcntl.fcntl(fd, fcntl.F_GETFD) & fcntl.FD_CLOEXEC,
5891 fcntl.fcntl(s, fcntl.F_GETFL, os.O_NONBLOCK) & os.O_NONBLOCK)
5908 fcntl.fcntl(s, fcntl.F_GETFL, os.O_NONBLOCK) & os.O_NONBLOCK)