bd1aff620a
Python is an interpreted, interactive, object-oriented programming language that combines remarkable power with very clear syntax. For an introduction to programming in Python you are referred to the Python Tutorial. The Python Library Reference documents built-in and standard types, constants, functions and modules. Finally, the Python Reference Manual describes the syntax and semantics of the core language in (perhaps too) much detail. Python's basic power can be extended with your own modules written in C or C++. On most systems such modules may be dynamically loaded. Python is also adaptable as an exten- sion language for existing applications. See the internal documentation for hints. This package has been compiled without support for threads.
31 lines
1.4 KiB
Text
31 lines
1.4 KiB
Text
$NetBSD: patch-ad,v 1.1.1.1 2004/12/05 23:27:49 recht Exp $
|
|
|
|
--- Lib/posixfile.py.orig Wed Aug 18 17:13:40 2004
|
|
+++ Lib/posixfile.py
|
|
@@ -183,10 +183,11 @@ class _posixfile_:
|
|
# additions for AIX by Vladimir.Marangozov@imag.fr
|
|
import sys, os
|
|
if sys.platform in ('netbsd1',
|
|
+ 'netbsd2',
|
|
'openbsd2',
|
|
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
|
'freebsd6', 'bsdos2', 'bsdos3', 'bsdos4'):
|
|
- flock = struct.pack('lxxxxlxxxxlhh', \
|
|
+ flock = struct.pack('qqihh', \
|
|
l_start, l_len, os.getpid(), l_type, l_whence)
|
|
elif sys.platform in ['aix3', 'aix4']:
|
|
flock = struct.pack('hhlllii', \
|
|
@@ -199,11 +200,12 @@ class _posixfile_:
|
|
|
|
if '?' in how:
|
|
if sys.platform in ('netbsd1',
|
|
+ 'netbsd2',
|
|
'openbsd2',
|
|
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
|
|
'bsdos2', 'bsdos3', 'bsdos4'):
|
|
l_start, l_len, l_pid, l_type, l_whence = \
|
|
- struct.unpack('lxxxxlxxxxlhh', flock)
|
|
+ struct.unpack('qqihh', flock)
|
|
elif sys.platform in ['aix3', 'aix4']:
|
|
l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
|
|
struct.unpack('hhlllii', flock)
|