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
4e422817
Commit
4e422817
authored
Jul 17, 2005
by
Hye-Shik Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for FreeBSD 7.
parent
149787e7
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
550 additions
and
3 deletions
+550
-3
Lib/plat-freebsd7/IN.py
Lib/plat-freebsd7/IN.py
+535
-0
Lib/plat-freebsd7/regen
Lib/plat-freebsd7/regen
+3
-0
Lib/posixfile.py
Lib/posixfile.py
+2
-1
Lib/test/regrtest.py
Lib/test/regrtest.py
+1
-0
Lib/test/test_fcntl.py
Lib/test/test_fcntl.py
+1
-0
Lib/test/test_socket.py
Lib/test/test_socket.py
+1
-1
Misc/NEWS
Misc/NEWS
+5
-0
setup.py
setup.py
+2
-1
No files found.
Lib/plat-freebsd7/IN.py
0 → 100644
View file @
4e422817
This diff is collapsed.
Click to expand it.
Lib/plat-freebsd7/regen
0 → 100644
View file @
4e422817
#! /bin/sh
set
-v
python ../../Tools/scripts/h2py.py
-i
'(u_long)'
/usr/include/netinet/in.h
Lib/posixfile.py
View file @
4e422817
...
@@ -179,7 +179,8 @@ class _posixfile_:
...
@@ -179,7 +179,8 @@ class _posixfile_:
if
sys
.
platform
in
(
'netbsd1'
,
if
sys
.
platform
in
(
'netbsd1'
,
'openbsd2'
,
'openbsd2'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
):
'freebsd6'
,
'freebsd7'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
):
flock
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
\
flock
=
struct
.
pack
(
'lxxxxlxxxxlhh'
,
\
l_start
,
l_len
,
os
.
getpid
(),
l_type
,
l_whence
)
l_start
,
l_len
,
os
.
getpid
(),
l_type
,
l_whence
)
elif
sys
.
platform
in
(
'aix3'
,
'aix4'
):
elif
sys
.
platform
in
(
'aix3'
,
'aix4'
):
...
...
Lib/test/regrtest.py
View file @
4e422817
...
@@ -1073,6 +1073,7 @@ _expectations = {
...
@@ -1073,6 +1073,7 @@ _expectations = {
}
}
_expectations
[
'freebsd5'
]
=
_expectations
[
'freebsd4'
]
_expectations
[
'freebsd5'
]
=
_expectations
[
'freebsd4'
]
_expectations
[
'freebsd6'
]
=
_expectations
[
'freebsd4'
]
_expectations
[
'freebsd6'
]
=
_expectations
[
'freebsd4'
]
_expectations
[
'freebsd7'
]
=
_expectations
[
'freebsd4'
]
class
_ExpectedSkips
:
class
_ExpectedSkips
:
def
__init__
(
self
):
def
__init__
(
self
):
...
...
Lib/test/test_fcntl.py
View file @
4e422817
...
@@ -22,6 +22,7 @@ if sys.platform.startswith('atheos'):
...
@@ -22,6 +22,7 @@ if sys.platform.startswith('atheos'):
if
sys
.
platform
in
(
'netbsd1'
,
'Darwin1.2'
,
'darwin'
,
if
sys
.
platform
in
(
'netbsd1'
,
'Darwin1.2'
,
'darwin'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'freebsd2'
,
'freebsd3'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'freebsd7'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
,
'bsdos2'
,
'bsdos3'
,
'bsdos4'
,
'openbsd'
,
'openbsd2'
,
'openbsd3'
):
'openbsd'
,
'openbsd2'
,
'openbsd3'
):
if
struct
.
calcsize
(
'l'
)
==
8
:
if
struct
.
calcsize
(
'l'
)
==
8
:
...
...
Lib/test/test_socket.py
View file @
4e422817
...
@@ -312,7 +312,7 @@ class GeneralModuleTests(unittest.TestCase):
...
@@ -312,7 +312,7 @@ class GeneralModuleTests(unittest.TestCase):
# I've ordered this by protocols that have both a tcp and udp
# I've ordered this by protocols that have both a tcp and udp
# protocol, at least for modern Linuxes.
# protocol, at least for modern Linuxes.
if
sys
.
platform
in
(
'linux2'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
if
sys
.
platform
in
(
'linux2'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'darwin'
):
'
freebsd7'
,
'
darwin'
):
# avoid the 'echo' service on this platform, as there is an
# avoid the 'echo' service on this platform, as there is an
# assumption breaking non-standard port/protocol entry
# assumption breaking non-standard port/protocol entry
services
=
(
'daytime'
,
'qotd'
,
'domain'
)
services
=
(
'daytime'
,
'qotd'
,
'domain'
)
...
...
Misc/NEWS
View file @
4e422817
...
@@ -432,6 +432,11 @@ Mac
...
@@ -432,6 +432,11 @@ Mac
---
---
New
platforms
-------------
-
FreeBSD
7
support
is
added
.
Tools
/
Demos
Tools
/
Demos
-----------
-----------
...
...
setup.py
View file @
4e422817
...
@@ -821,7 +821,8 @@ class PyBuildExt(build_ext):
...
@@ -821,7 +821,8 @@ class PyBuildExt(build_ext):
# Linux-specific modules
# Linux-specific modules
exts
.
append
(
Extension
(
'linuxaudiodev'
,
[
'linuxaudiodev.c'
])
)
exts
.
append
(
Extension
(
'linuxaudiodev'
,
[
'linuxaudiodev.c'
])
)
if
platform
in
(
'linux2'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
):
if
platform
in
(
'linux2'
,
'freebsd4'
,
'freebsd5'
,
'freebsd6'
,
'freebsd7'
):
exts
.
append
(
Extension
(
'ossaudiodev'
,
[
'ossaudiodev.c'
])
)
exts
.
append
(
Extension
(
'ossaudiodev'
,
[
'ossaudiodev.c'
])
)
if
platform
==
'sunos5'
:
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