• Home
  • Raw
  • Download

Lines Matching refs:fcntl

12 fcntl = import_module('fcntl')  variable
34 fcntl.F_WRLCK, 0)
36 lockdata = struct.pack('qqihhi', 0, 0, 0, fcntl.F_WRLCK, 0, 0)
38 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
40 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
67 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
70 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
78 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
81 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
88 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
90 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
92 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
94 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
101 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
103 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
116 cmd = fcntl.F_NOTIFY
118 flags = fcntl.DN_MULTISHOT
123 fcntl.fcntl(fd, cmd, flags)
131 fcntl.flock(fileno, fcntl.LOCK_SH)
132 fcntl.flock(fileno, fcntl.LOCK_UN)
133 fcntl.flock(self.f, fcntl.LOCK_SH | fcntl.LOCK_NB)
134 fcntl.flock(self.f, fcntl.LOCK_UN)
135 fcntl.flock(fileno, fcntl.LOCK_EX)
136 fcntl.flock(fileno, fcntl.LOCK_UN)
138 self.assertRaises(ValueError, fcntl.flock, -1, fcntl.LOCK_SH)
139 self.assertRaises(TypeError, fcntl.flock, 'spam', fcntl.LOCK_SH)
144 self.assertRaises(OverflowError, fcntl.flock, _testcapi.INT_MAX+1,
145 fcntl.LOCK_SH)