Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
47d7a069
Kaydet (Commit)
47d7a069
authored
Tem 12, 2006
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix #1467450: ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
load shared libraries.
üst
a1f10901
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
__init__.py
Lib/ctypes/__init__.py
+18
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/ctypes/__init__.py
Dosyayı görüntüle @
47d7a069
...
...
@@ -22,6 +22,23 @@ if __version__ != _ctypes_version:
if
_os
.
name
in
(
"nt"
,
"ce"
):
from
_ctypes
import
FormatError
DEFAULT_MODE
=
RTLD_LOCAL
if
_os
.
name
==
"posix"
and
_sys
.
platform
==
"darwin"
:
import
gestalt
# gestalt.gestalt("sysv") returns the version number of the
# currently active system file as BCD.
# On OS X 10.4.6 -> 0x1046
# On OS X 10.2.8 -> 0x1028
# See also http://www.rgaros.nl/gestalt/
#
# On OS X 10.3, we use RTLD_GLOBAL as default mode
# because RTLD_LOCAL does not work at least on some
# libraries.
if
gestalt
.
gestalt
(
"sysv"
)
<
0x1040
:
DEFAULT_MODE
=
RTLD_GLOBAL
from
_ctypes
import
FUNCFLAG_CDECL
as
_FUNCFLAG_CDECL
,
\
FUNCFLAG_PYTHONAPI
as
_FUNCFLAG_PYTHONAPI
...
...
@@ -284,7 +301,7 @@ class CDLL(object):
_flags_
=
_FUNCFLAG_CDECL
_restype_
=
c_int
# default, can be overridden in instances
def
__init__
(
self
,
name
,
mode
=
RTLD_LOCAL
,
handle
=
None
):
def
__init__
(
self
,
name
,
mode
=
DEFAULT_MODE
,
handle
=
None
):
self
.
_name
=
name
if
handle
is
None
:
self
.
_handle
=
_dlopen
(
self
.
_name
,
mode
)
...
...
Misc/NEWS
Dosyayı görüntüle @
47d7a069
...
...
@@ -22,6 +22,8 @@ Library
Extension Modules
-----------------
- Bug #1467450: On Mac OS X 10.3, RTLD_GLOBAL is now used as the
default mode for loading shared libraries in ctypes.
What'
s
New
in
Python
2.5
beta
2
?
================================
...
...
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