diff options
author | Guido van Rossum <guido@python.org> | 1999-12-06 14:51:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-12-06 14:51:05 (GMT) |
commit | 5274c336f5c33838259ab29e43ac88158953f474 (patch) | |
tree | 40d7a3365dd1b18c3c51382e05574cff7b788e4a /Lib/posixfile.py | |
parent | 8f35681843b922c905a10d7c74b30859cff88346 (diff) | |
download | cpython-5274c336f5c33838259ab29e43ac88158953f474.zip cpython-5274c336f5c33838259ab29e43ac88158953f474.tar.gz cpython-5274c336f5c33838259ab29e43ac88158953f474.tar.bz2 |
According to Craig H Rowland, openbsd2 is yet another BSD variant that
uses the BSD version of the lock structure. Sigh, @!%$.
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r-- | Lib/posixfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 2cd4168..ba83b0a 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -178,6 +178,7 @@ class _posixfile_: # additions for AIX by Vladimir.Marangozov@imag.fr import sys, os if sys.platform in ('netbsd1', + 'openbsd2', 'freebsd2', 'freebsd3', 'bsdos2', 'bsdos3', 'bsdos4'): flock = struct.pack('lxxxxlxxxxlhh', \ @@ -193,6 +194,7 @@ class _posixfile_: if '?' in how: if sys.platform in ('netbsd1', + 'openbsd2', 'freebsd2', 'freebsd3', 'bsdos2', 'bsdos3', 'bsdos4'): l_start, l_len, l_pid, l_type, l_whence = \ |