diff options
author | Guido van Rossum <guido@python.org> | 1999-02-23 04:14:32 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-02-23 04:14:32 (GMT) |
commit | 027188a3827eeaa7df83740ab3731767b4a2995a (patch) | |
tree | c7eff893b781ecd935d74dcc4ccd5fdbded74b1d /Lib | |
parent | 5ef8f0c3c70fbb6eb7fb801729f00cd74b8301cd (diff) | |
download | cpython-027188a3827eeaa7df83740ab3731767b4a2995a.zip cpython-027188a3827eeaa7df83740ab3731767b4a2995a.tar.gz cpython-027188a3827eeaa7df83740ab3731767b4a2995a.tar.bz2 |
According to Jeffrey Honig, bsd/os 2.0 - 4.0 should be added to the
list (of bsd variants that have a different lock structure).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/posixfile.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index d3aeac0..2cd4168 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -177,7 +177,9 @@ class _posixfile_: # Hack by davem@magnet.com to get locking to go on freebsd; # additions for AIX by Vladimir.Marangozov@imag.fr import sys, os - if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'): + if sys.platform in ('netbsd1', + 'freebsd2', 'freebsd3', + 'bsdos2', 'bsdos3', 'bsdos4'): flock = struct.pack('lxxxxlxxxxlhh', \ l_start, l_len, os.getpid(), l_type, l_whence) elif sys.platform in ['aix3', 'aix4']: @@ -190,7 +192,9 @@ class _posixfile_: flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) if '?' in how: - if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'): + if sys.platform in ('netbsd1', + 'freebsd2', 'freebsd3', + 'bsdos2', 'bsdos3', 'bsdos4'): l_start, l_len, l_pid, l_type, l_whence = \ struct.unpack('lxxxxlxxxxlhh', flock) elif sys.platform in ['aix3', 'aix4']: |