summaryrefslogtreecommitdiffstats
path: root/Lib/posixfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-10 17:40:16 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-10 17:40:16 (GMT)
commitba885ffaa05f8b80041e0b83f15bf8fa71463447 (patch)
treecd8538acec976a7e325f3573b5e225a874d4b82a /Lib/posixfile.py
parent5f8ea10bc24be5a02f62d7d8563078f8e4e3e793 (diff)
downloadcpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.zip
cpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.tar.gz
cpython-ba885ffaa05f8b80041e0b83f15bf8fa71463447.tar.bz2
Added linux2 specific code :-(
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r--Lib/posixfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index f0df543..fc5f53f 100644
--- a/Lib/posixfile.py
+++ b/Lib/posixfile.py
@@ -196,6 +196,9 @@ class _posixfile_:
elif sys.platform in ['aix3', 'aix4']:
l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
struct.unpack('hhlllii', flock)
+ elif sys.platform == "linux2":
+ l_type, l_whence, l_start, l_len, l_pid, l_sysid = \
+ struct.unpack('hhllhh', flock)
else:
l_type, l_whence, l_start, l_len, l_sysid, l_pid = \
struct.unpack('hhllhh', flock)