Lines Matching refs:fcntl
14 fcntl = import_module('fcntl') variable
39 fcntl.F_WRLCK, 0)
41 lockdata = struct.pack('hhlllii', fcntl.F_WRLCK, 0, 0, 0, 0, 0, 0)
45 lockdata = struct.pack('hh'+start_len+'hh', fcntl.F_WRLCK, 0, 0, 0, 0, 0)
73 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
77 rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETLKW, lockdata)
85 rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
87 rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
92 fcntl.fcntl(-1, fcntl.F_SETFL, os.O_NONBLOCK)
94 fcntl.fcntl(BadFile(-1), fcntl.F_SETFL, os.O_NONBLOCK)
96 fcntl.fcntl('spam', fcntl.F_SETFL, os.O_NONBLOCK)
98 fcntl.fcntl(BadFile('spam'), fcntl.F_SETFL, os.O_NONBLOCK)
105 fcntl.fcntl(INT_MAX + 1, fcntl.F_SETFL, os.O_NONBLOCK)
107 fcntl.fcntl(BadFile(INT_MAX + 1), fcntl.F_SETFL, os.O_NONBLOCK)
109 fcntl.fcntl(INT_MIN - 1, fcntl.F_SETFL, os.O_NONBLOCK)
111 fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
117 cmd = fcntl.F_NOTIFY
119 flags = fcntl.DN_MULTISHOT
125 fcntl.fcntl(fd, cmd, flags)