Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef8f0c commit 027188aCopy full SHA for 027188a
1 file changed
Lib/posixfile.py
@@ -177,7 +177,9 @@ def lock(self, how, *args):
177
# Hack by [email protected] to get locking to go on freebsd;
178
# additions for AIX by [email protected]
179
import sys, os
180
- if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'):
+ if sys.platform in ('netbsd1',
181
+ 'freebsd2', 'freebsd3',
182
+ 'bsdos2', 'bsdos3', 'bsdos4'):
183
flock = struct.pack('lxxxxlxxxxlhh', \
184
l_start, l_len, os.getpid(), l_type, l_whence)
185
elif sys.platform in ['aix3', 'aix4']:
@@ -190,7 +192,9 @@ def lock(self, how, *args):
190
192
flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
191
193
194
if '?' in how:
195
196
197
198
l_start, l_len, l_pid, l_type, l_whence = \
199
struct.unpack('lxxxxlxxxxlhh', flock)
200
0 commit comments