summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-06-12 21:48:40 +0000
committerJay Freeman <saurik@saurik.com>2008-06-12 21:48:40 +0000
commitc27a92457f665f053e3872aa64c4569be0ca06a5 (patch)
treea652165570bb7608c3aca19426220eb12657a3bb /tool
parenta6b322f346c04ff7c39eb0c486e92725f3873e42 (diff)
Added current Telesphoreo patches.
git-svn-id: http://svn.telesphoreo.org/trunk@301 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'tool')
-rw-r--r--tool/include.diff130
-rw-r--r--tool/patches/Security++.diff102
-rw-r--r--tool/patches/wchar_t.diff28
3 files changed, 260 insertions, 0 deletions
diff --git a/tool/include.diff b/tool/include.diff
index 7b4157e0b..688bd5938 100644
--- a/tool/include.diff
+++ b/tool/include.diff
@@ -159,6 +159,108 @@ diff -ru /apl/inc/Foundation/NSGeometry.h /apl/32/Foundation/NSGeometry.h
#if __LP64__ || NS_BUILD_32_LIKE_64
+diff --git /usr/include/Security/KCExceptions.h /usr/include/Security/KCExceptions.h
+index 3c62f78..e0abd87 100644
+--- /usr/include/Security/KCExceptions.h
++++ /usr/include/Security/KCExceptions.h
+@@ -28,7 +28,7 @@
+ #ifndef _SECURITY_KCEXCEPTIONS_H_
+ #define _SECURITY_KCEXCEPTIONS_H_
+
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+ #include <security_utilities/errors.h>
+
+ #ifdef lock
+diff --git /usr/include/Security/KCUtilities.h /usr/include/Security/KCUtilities.h
+index 7658350..137ac00 100644
+--- /usr/include/Security/KCUtilities.h
++++ /usr/include/Security/KCUtilities.h
+@@ -25,7 +25,7 @@
+ #define _SECURITY_KCUTILITIES_H_
+
+ #include <security_utilities/errors.h>
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+
+ namespace Security
+ {
+diff --git /usr/include/Security/Keychains.h /usr/include/Security/Keychains.h
+index 90ef927..f6e8e78 100644
+--- /usr/include/Security/Keychains.h
++++ /usr/include/Security/Keychains.h
+@@ -106,7 +106,7 @@ private:
+ typedef KeychainSchemaImpl Impl;
+ };
+
+-
++class ItemImpl;
+ class KeychainImpl : public SecCFObject, private CssmClient::Db::DefaultCredentialsMaker
+ {
+ NOCOPY(KeychainImpl)
+diff --git /usr/include/Security/cs.h /usr/include/Security/cs.h
+index d7957fc..87e31ca 100644
+--- /usr/include/Security/cs.h
++++ /usr/include/Security/cs.h
+@@ -31,7 +31,7 @@
+ #include <Security/CodeSigning.h>
+ #include <Security/SecCodeSigner.h>
+ #include <Security/SecBasePriv.h>
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+ #include <security_utilities/globalizer.h>
+ #include <security_utilities/seccfobject.h>
+ #include <security_utilities/cfclass.h>
+diff --git /usr/include/Security/cspclient.h /usr/include/Security/cspclient.h
+index 8aab4b4..2ffe721 100644
+--- /usr/include/Security/cspclient.h
++++ /usr/include/Security/cspclient.h
+@@ -67,8 +67,8 @@ public:
+ Context(const CSP &csp, CSSM_ALGORITHMS alg = CSSM_ALGID_NONE);
+ ~Context();
+
+- CSP Context::attachment() const { return parent<CSP>(); }
+- Module Context::module() const { return attachment()->module(); }
++ CSP attachment() const { return parent<CSP>(); }
++ Module module() const { return attachment()->module(); }
+
+ CSSM_ALGORITHMS algorithm() const { return mAlgorithm; }
+ void algorithm(CSSM_ALGORITHMS alg);
+diff --git /usr/include/Security/mach++.h /usr/include/Security/mach++.h
+index 93cae91..e539b83 100644
+--- /usr/include/Security/mach++.h
++++ /usr/include/Security/mach++.h
+@@ -192,7 +192,7 @@ private:
+ mutable char nameBuffer[BOOTSTRAP_MAX_NAME_LEN];
+
+ protected:
+- char *Bootstrap::makeName(const char *s) const
++ char *makeName(const char *s) const
+ { return strncpy(nameBuffer, s, BOOTSTRAP_MAX_NAME_LEN); }
+ };
+
+diff --git /usr/include/Security/objectacl.h /usr/include/Security/objectacl.h
+index 0be1f62..c9ec079 100644
+--- /usr/include/Security/objectacl.h
++++ /usr/include/Security/objectacl.h
+@@ -125,7 +125,7 @@ public:
+ virtual bool validate(const AclValidationContext &ctx) const = 0;
+
+ template <class Action>
+- void ObjectAcl::Entry::exportBlob(Action &pub, Action &priv)
++ void exportBlob(Action &pub, Action &priv)
+ {
+ Endian<uint32> del = delegate; pub(del); // 4 bytes delegate flag
+ exportSubject(subject, pub, priv); // subject itself (polymorphic)
+@@ -197,7 +197,7 @@ public:
+ // These helpers deal with transferring one subject from/to reader/writer streams.
+ // You'd usually only call those from complex subject implementations (e.g. threshold)
+ template <class Action>
+- static void ObjectAcl::exportSubject(AclSubject *subject, Action &pub, Action &priv)
++ static void exportSubject(AclSubject *subject, Action &pub, Action &priv)
+ {
+ Endian<uint32> typeAndVersion = subject->type() | subject->version() << AclSubject::versionShift;
+ pub(typeAndVersion);
--- /usr/include/arm/signal.h 2008-02-27 05:37:19.000000000 +0000
+++ /usr/include/arm/signal.h 2008-03-24 09:51:14.000000000 +0000
@@ -13,6 +13,8 @@
@@ -179,3 +281,31 @@ diff -ru /apl/inc/Foundation/NSGeometry.h /apl/32/Foundation/NSGeometry.h
#endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */
#endif /* __APPLE_API_OBSOLETE */
+diff --git /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
+index b570daa..3309946 100644
+--- /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
++++ /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
+@@ -127,7 +127,7 @@ namespace std
+ #define _GLIBCXX_USE_C99_COMPLEX 1
+
+ // Define if code specialized for wchar_t should be used.
+-#define _GLIBCXX_USE_WCHAR_T 1
++/* #undef _GLIBCXX_USE_WCHAR_T */
+
+ // Define if using setrlimit to set resource limits during 'make check'.
+ #define _GLIBCXX_RES_LIMITS 1
+diff --git /usr/include/c++/4.0.0/bits/stringfwd.h /usr/include/c++/4.0.0/bits/stringfwd.h
+index 99d3ce3..cc033d6 100644
+--- /usr/include/c++/4.0.0/bits/stringfwd.h
++++ /usr/include/c++/4.0.0/bits/stringfwd.h
+@@ -61,9 +61,9 @@ namespace std
+
+ #ifdef _GLIBCXX_USE_WCHAR_T
+ template<> struct char_traits<wchar_t>;
++#endif
+
+ typedef basic_string<wchar_t> wstring;
+-#endif
+ } // namespace std
+
+ #endif // _STRINGFWD_H
diff --git a/tool/patches/Security++.diff b/tool/patches/Security++.diff
new file mode 100644
index 000000000..3b15afda0
--- /dev/null
+++ b/tool/patches/Security++.diff
@@ -0,0 +1,102 @@
+diff --git /usr/include/Security/KCExceptions.h /usr/include/Security/KCExceptions.h
+index 3c62f78..e0abd87 100644
+--- /usr/include/Security/KCExceptions.h
++++ /usr/include/Security/KCExceptions.h
+@@ -28,7 +28,7 @@
+ #ifndef _SECURITY_KCEXCEPTIONS_H_
+ #define _SECURITY_KCEXCEPTIONS_H_
+
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+ #include <security_utilities/errors.h>
+
+ #ifdef lock
+diff --git /usr/include/Security/KCUtilities.h /usr/include/Security/KCUtilities.h
+index 7658350..137ac00 100644
+--- /usr/include/Security/KCUtilities.h
++++ /usr/include/Security/KCUtilities.h
+@@ -25,7 +25,7 @@
+ #define _SECURITY_KCUTILITIES_H_
+
+ #include <security_utilities/errors.h>
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+
+ namespace Security
+ {
+diff --git /usr/include/Security/Keychains.h /usr/include/Security/Keychains.h
+index 90ef927..f6e8e78 100644
+--- /usr/include/Security/Keychains.h
++++ /usr/include/Security/Keychains.h
+@@ -106,7 +106,7 @@ private:
+ typedef KeychainSchemaImpl Impl;
+ };
+
+-
++class ItemImpl;
+ class KeychainImpl : public SecCFObject, private CssmClient::Db::DefaultCredentialsMaker
+ {
+ NOCOPY(KeychainImpl)
+diff --git /usr/include/Security/cs.h /usr/include/Security/cs.h
+index d7957fc..87e31ca 100644
+--- /usr/include/Security/cs.h
++++ /usr/include/Security/cs.h
+@@ -31,7 +31,7 @@
+ #include <Security/CodeSigning.h>
+ #include <Security/SecCodeSigner.h>
+ #include <Security/SecBasePriv.h>
+-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
++#include <CarbonCore/MacErrors.h>
+ #include <security_utilities/globalizer.h>
+ #include <security_utilities/seccfobject.h>
+ #include <security_utilities/cfclass.h>
+diff --git /usr/include/Security/cspclient.h /usr/include/Security/cspclient.h
+index 8aab4b4..2ffe721 100644
+--- /usr/include/Security/cspclient.h
++++ /usr/include/Security/cspclient.h
+@@ -67,8 +67,8 @@ public:
+ Context(const CSP &csp, CSSM_ALGORITHMS alg = CSSM_ALGID_NONE);
+ ~Context();
+
+- CSP Context::attachment() const { return parent<CSP>(); }
+- Module Context::module() const { return attachment()->module(); }
++ CSP attachment() const { return parent<CSP>(); }
++ Module module() const { return attachment()->module(); }
+
+ CSSM_ALGORITHMS algorithm() const { return mAlgorithm; }
+ void algorithm(CSSM_ALGORITHMS alg);
+diff --git /usr/include/Security/mach++.h /usr/include/Security/mach++.h
+index 93cae91..e539b83 100644
+--- /usr/include/Security/mach++.h
++++ /usr/include/Security/mach++.h
+@@ -192,7 +192,7 @@ private:
+ mutable char nameBuffer[BOOTSTRAP_MAX_NAME_LEN];
+
+ protected:
+- char *Bootstrap::makeName(const char *s) const
++ char *makeName(const char *s) const
+ { return strncpy(nameBuffer, s, BOOTSTRAP_MAX_NAME_LEN); }
+ };
+
+diff --git /usr/include/Security/objectacl.h /usr/include/Security/objectacl.h
+index 0be1f62..c9ec079 100644
+--- /usr/include/Security/objectacl.h
++++ /usr/include/Security/objectacl.h
+@@ -125,7 +125,7 @@ public:
+ virtual bool validate(const AclValidationContext &ctx) const = 0;
+
+ template <class Action>
+- void ObjectAcl::Entry::exportBlob(Action &pub, Action &priv)
++ void exportBlob(Action &pub, Action &priv)
+ {
+ Endian<uint32> del = delegate; pub(del); // 4 bytes delegate flag
+ exportSubject(subject, pub, priv); // subject itself (polymorphic)
+@@ -197,7 +197,7 @@ public:
+ // These helpers deal with transferring one subject from/to reader/writer streams.
+ // You'd usually only call those from complex subject implementations (e.g. threshold)
+ template <class Action>
+- static void ObjectAcl::exportSubject(AclSubject *subject, Action &pub, Action &priv)
++ static void exportSubject(AclSubject *subject, Action &pub, Action &priv)
+ {
+ Endian<uint32> typeAndVersion = subject->type() | subject->version() << AclSubject::versionShift;
+ pub(typeAndVersion);
diff --git a/tool/patches/wchar_t.diff b/tool/patches/wchar_t.diff
new file mode 100644
index 000000000..cede076d5
--- /dev/null
+++ b/tool/patches/wchar_t.diff
@@ -0,0 +1,28 @@
+diff --git /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
+index b570daa..3309946 100644
+--- /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
++++ /usr/include/c++/4.0.0/arm-apple-darwin8/bits/c++config.h
+@@ -127,7 +127,7 @@ namespace std
+ #define _GLIBCXX_USE_C99_COMPLEX 1
+
+ // Define if code specialized for wchar_t should be used.
+-#define _GLIBCXX_USE_WCHAR_T 1
++/* #undef _GLIBCXX_USE_WCHAR_T */
+
+ // Define if using setrlimit to set resource limits during 'make check'.
+ #define _GLIBCXX_RES_LIMITS 1
+diff --git /usr/include/c++/4.0.0/bits/stringfwd.h /usr/include/c++/4.0.0/bits/stringfwd.h
+index 99d3ce3..cc033d6 100644
+--- /usr/include/c++/4.0.0/bits/stringfwd.h
++++ /usr/include/c++/4.0.0/bits/stringfwd.h
+@@ -61,9 +61,9 @@ namespace std
+
+ #ifdef _GLIBCXX_USE_WCHAR_T
+ template<> struct char_traits<wchar_t>;
++#endif
+
+ typedef basic_string<wchar_t> wstring;
+-#endif
+ } // namespace std
+
+ #endif // _STRINGFWD_H