]> granicus.if.org Git - python/commitdiff
According to Craig H Rowland, openbsd2 is yet another BSD variant that
authorGuido van Rossum <guido@python.org>
Mon, 6 Dec 1999 14:51:05 +0000 (14:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 6 Dec 1999 14:51:05 +0000 (14:51 +0000)
uses the BSD version of the lock structure.  Sigh, @!%$.

Lib/posixfile.py

index 2cd416873e539c00b460265a707288390756e664..ba83b0adfcb37b8cb947263d9065d54a7bf97ee9 100644 (file)
@@ -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 = \