mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
According to Jeffrey Honig, bsd/os 4.0 should be added to the list.
This commit is contained in:
parent
c222ec28a5
commit
5ef8f0c3c7
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, os.O_NONBLOCK)
|
||||||
if verbose:
|
if verbose:
|
||||||
print 'Status from fnctl with O_NONBLOCK: ', rv
|
print 'Status from fnctl with O_NONBLOCK: ', rv
|
||||||
|
|
||||||
if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3', 'bsdos2', 'bsdos3'):
|
if sys.platform in ('netbsd1',
|
||||||
|
'freebsd2', 'freebsd3',
|
||||||
|
'bsdos2', 'bsdos3', 'bsdos4'):
|
||||||
lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
|
lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
|
||||||
elif sys.platform in ['aix3', 'aix4']:
|
elif sys.platform in ['aix3', 'aix4']:
|
||||||
lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
|
lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue