Home | History | Annotate | Download | only in python2.7

Lines Matching defs:fcntl

57                 "fcntl.lockf() provides better locking", DeprecationWarning, 2)
117 import fcntl, os
133 cur_fl = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0)
137 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFL, l_flags)
141 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_SETFD, arg)
145 l_flags = fcntl.fcntl(file.fileno(), fcntl.F_GETFL, 0)
147 if fcntl.fcntl(file.fileno(), fcntl.F_GETFD, 0) & 1:
154 import struct, fcntl
156 if 'w' in how: l_type = fcntl.F_WRLCK
157 elif 'r' in how: l_type = fcntl.F_RDLCK
158 elif 'u' in how: l_type = fcntl.F_UNLCK
161 if '|' in how: cmd = fcntl.F_SETLKW
162 elif '?' in how: cmd = fcntl.F_GETLK
163 else: cmd = fcntl.F_SETLK
195 flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
214 if l_type != fcntl.F_UNLCK:
215 if l_type == fcntl.F_RDLCK: