Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f64700a5
Commit
f64700a5
authored
Aug 18, 2004
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for FreeBSD 6.
parent
75b9da4a
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
529 additions
and
4 deletions
+529
-4
Lib/plat-freebsd6/IN.py
Lib/plat-freebsd6/IN.py
+515
-0
Lib/plat-freebsd6/regen
Lib/plat-freebsd6/regen
+3
-0
Lib/posixfile.py
Lib/posixfile.py
+1
-1
Lib/test/regrtest.py
Lib/test/regrtest.py
+5
-0
Lib/test/test_fcntl.py
Lib/test/test_fcntl.py
+1
-1
Lib/test/test_socket.py
Lib/test/test_socket.py
+1
-1
Misc/NEWS
Misc/NEWS
+2
-0
setup.py
setup.py
+1
-1
No files found.
Lib/plat-freebsd6/IN.py
0 → 100644
View file @
f64700a5
This diff is collapsed.
Click to expand it.
Lib/plat-freebsd6/regen
0 → 100644
View file @
f64700a5
#! /bin/sh
set
-v
python ../../Tools/scripts/h2py.py
-i
'(u_long)'
/usr/include/netinet/in.h
Lib/posixfile.py
View file @
f64700a5
...
...
@@ -185,7 +185,7 @@ class _posixfile_:
if
sys
.
platform
in
(
'netbsd1'
,
'openbsd2'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
):
'
freebsd6'
,
'
bsdos2'
,
'bsdos3'
,
'bsdos4'
):
flock
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
\
l_start
,
l_len
,
os
.
getpid
(),
l_type
,
l_whence
)
elif
sys
.
platform
in
[
'aix3'
,
'aix4'
]:
...
...
Lib/test/regrtest.py
View file @
f64700a5
...
...
@@ -1036,21 +1036,25 @@ _expectations = {
test_bsddb3
test_cd
test_cl
test_gdbm
test_gl
test_imgfile
test_linuxaudiodev
test_locale
test_macfs
test_macostools
test_mpz
test_nis
test_normalization
test_ossaudiodev
test_pep277
test_plistlib
test_pty
test_scriptpackages
test_socket_ssl
test_socketserver
test_sunaudiodev
test_tcl
test_timeout
test_unicode_file
test_urllibnet
...
...
@@ -1059,6 +1063,7 @@ _expectations = {
"""
,
}
_expectations
[
'freebsd5'
]
=
_expectations
[
'freebsd4'
]
_expectations
[
'freebsd6'
]
=
_expectations
[
'freebsd4'
]
class
_ExpectedSkips
:
def
__init__
(
self
):
...
...
Lib/test/test_fcntl.py
View file @
f64700a5
...
...
@@ -21,7 +21,7 @@ if sys.platform.startswith('atheos'):
start_len
=
"qq"
if
sys
.
platform
in
(
'netbsd1'
,
'Darwin1.2'
,
'darwin'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
,
'openbsd'
,
'openbsd2'
,
'openbsd3'
):
lockdata
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
0
,
0
,
0
,
fcntl
.
F_WRLCK
,
0
)
...
...
Lib/test/test_socket.py
View file @
f64700a5
...
...
@@ -311,7 +311,7 @@ class GeneralModuleTests(unittest.TestCase):
# Find one service that exists, then check all the related interfaces.
# I've ordered this by protocols that have both a tcp and udp
# protocol, at least for modern Linuxes.
if
sys
.
platform
in
(
'freebsd4'
,
'freebsd5'
,
'darwin'
):
if
sys
.
platform
in
(
'freebsd4'
,
'freebsd5'
,
'
freebsd6'
,
'
darwin'
):
# avoid the 'echo' service on this platform, as there is an
# assumption breaking non-standard port/protocol entry
services
=
(
'daytime'
,
'qotd'
,
'domain'
)
...
...
Misc/NEWS
View file @
f64700a5
...
...
@@ -137,6 +137,8 @@ the library reference as well.
New platforms
-------------
- FreeBSD 6 is now supported.
Tests
-----
...
...
setup.py
View file @
f64700a5
...
...
@@ -782,7 +782,7 @@ class PyBuildExt(build_ext):
# Linux-specific modules
exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) )
if platform in ('linux2', 'freebsd4', 'freebsd5'):
if platform in ('linux2', 'freebsd4', 'freebsd5'
, 'freebsd6'
):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
if platform == 'sunos5':
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment