diff options
author | Guido van Rossum <guido@python.org> | 2000-08-29 14:57:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-08-29 14:57:27 (GMT) |
commit | 2d21863266ad3b7551e03933abbfadaa86b95fb2 (patch) | |
tree | b616c5e3a393fe79a99430296a36fb85084fd6ba | |
parent | e504c0c2dc6fabbab4f44dab21674d94f2b6df34 (diff) | |
download | cpython-2d21863266ad3b7551e03933abbfadaa86b95fb2.zip cpython-2d21863266ad3b7551e03933abbfadaa86b95fb2.tar.gz cpython-2d21863266ad3b7551e03933abbfadaa86b95fb2.tar.bz2 |
Add support for FreeBSD-[45].
-- tg@FreeBSD.org
-rw-r--r-- | Lib/posixfile.py | 4 | ||||
-rwxr-xr-x | Lib/test/test_fcntl.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py index 2db37e0..d358dc4 100644 --- a/Lib/posixfile.py +++ b/Lib/posixfile.py @@ -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) diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index b59efda..3c1be88 100755 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -17,7 +17,7 @@ if verbose: print 'Status from fnctl with O_NONBLOCK: ', rv if sys.platform in ('netbsd1', - 'freebsd2', 'freebsd3', + 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5', 'bsdos2', 'bsdos3', 'bsdos4', 'openbsd', 'openbsd2'): lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0) |