mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
parent
e504c0c2dc
commit
2d21863266
2 changed files with 3 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ class _posixfile_:
|
|||
import sys, os
|
||||
if sys.platform in ('netbsd1',
|
||||
'openbsd2',
|
||||
'freebsd2', 'freebsd3',
|
||||
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
||||
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||
flock = struct.pack('lxxxxlxxxxlhh', \
|
||||
l_start, l_len, os.getpid(), l_type, l_whence)
|
||||
|
|
@ -192,7 +192,7 @@ class _posixfile_:
|
|||
if '?' in how:
|
||||
if sys.platform in ('netbsd1',
|
||||
'openbsd2',
|
||||
'freebsd2', 'freebsd3',
|
||||
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
||||
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||
l_start, l_len, l_pid, l_type, l_whence = \
|
||||
struct.unpack('lxxxxlxxxxlhh', flock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue