]> git.saurik.com Git - apple/libsystem.git/commitdiff
Libsystem-1238.tar.gz macos-1012 macos-10121 macos-10122 macos-10123 os-x-1012 v1238
authorApple <opensource@apple.com>
Thu, 22 Sep 2016 17:40:04 +0000 (17:40 +0000)
committerApple <opensource@apple.com>
Thu, 22 Sep 2016 17:40:04 +0000 (17:40 +0000)
Libsystem.xcconfig
Libsystem.xcodeproj/project.pbxproj
alloc_once_private.h
init.c
optionallibs
requiredlibs

index e9f5bd242a03f1d9fe428a445a94372fc82a2e9b..2baddb0cbffe6f64d7aec05a9b84dc8182ae7e1d 100644 (file)
@@ -24,3 +24,13 @@ INFOPLIST_INSTALL_PATH = Versions/B/Resources
 INFOPLIST_INSTALL_PATH[sdk=iphoneos*] =
 INFOPLIST_INSTALL_PATH[sdk=*simulator*] =
 INFOPLIST_INSTALL_PATH[sdk=watchos*] =
+INFOPLIST_OUTPUT_FORMAT = binary
+INFOPLIST_OUTPUT_FORMAT[sdk=macosx*] = xml
+APPLY_RULES_IN_COPY_FILES = YES
+PLIST_FILE_OUTPUT_FORMAT = binary
+PLIST_FILE_OUTPUT_FORMAT[sdk=macosx*] = xml
+
+// override presence of $(EXECUTABLE_VARIANT_SUFFIX) in the default EXECUTABLE_NAME rdar://26234727
+DYLIB_INSTALL_NAME_EXECUTABLE_NAME = $(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_SUFFIX)
+DYLIB_INSTALL_NAME_EXECUTABLE_PATH = $(DYLIB_INSTALL_NAME_EXECUTABLE_NAME)
+LD_DYLIB_INSTALL_NAME = $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(DYLIB_INSTALL_NAME_EXECUTABLE_PATH)
index ab049eae56e4e2b5bc4f93d75b09dc012227a2eb..7339ac639ff7070b8d61c7c9b6ae55d2d21756c7 100644 (file)
                BA5511A9136C9D400012B9B5 /* Project object */ = {
                        isa = PBXProject;
                        attributes = {
-                               LastUpgradeCheck = 0420;
+                               LastUpgradeCheck = 0700;
                        };
                        buildConfigurationList = BA5511AC136C9D400012B9B5 /* Build configuration list for PBXProject "Libsystem" */;
                        compatibilityVersion = "Xcode 3.2";
                        buildSettings = {
                                PRODUCT_NAME = "$(TARGET_NAME).B";
                                "PRODUCT_NAME[sdk=iphonesimulator*]" = "$(TARGET_NAME)";
+                               SDKROOT = macosx.internal;
                        };
                        name = Release;
                };
index da5a5eaa909273b63b8f295792ede7030067e015..a565d459b4a92f3a44eb0193fc8ff01de42a0f3d 100644 (file)
 /* Keys for use with os_once_alloc. */
 
 /* Keys for Libsystem. */
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NOTIFY     0
-#define OS_ALLOC_ONCE_KEY_LIBXPC       1
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_C  2
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_INFO       3
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NETWORK    4
-#define OS_ALLOC_ONCE_KEY_LIBCACHE     5
-#define OS_ALLOC_ONCE_KEY_LIBCOMMONCRYPTO      6
-#define OS_ALLOC_ONCE_KEY_LIBDISPATCH  7
-#define OS_ALLOC_ONCE_KEY_LIBDYLD      8
-#define OS_ALLOC_ONCE_KEY_LIBKEYMGR    9
-#define OS_ALLOC_ONCE_KEY_LIBLAUNCH    10
-#define OS_ALLOC_ONCE_KEY_LIBMACHO     11
-#define OS_ALLOC_ONCE_KEY_OS_TRACE     12
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_BLOCKS     13
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_MALLOC     14
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM   15
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PTHREAD    16
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_STATS      17
-#define OS_ALLOC_ONCE_KEY_LIBSECINIT   18
-#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_CORESERVICES 19
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NOTIFY                     0
+#define OS_ALLOC_ONCE_KEY_LIBXPC                                       1
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_C                          2
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_INFO                       3
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_NETWORK                    4
+#define OS_ALLOC_ONCE_KEY_LIBCACHE                                     5
+#define OS_ALLOC_ONCE_KEY_LIBCOMMONCRYPTO                      6
+#define OS_ALLOC_ONCE_KEY_LIBDISPATCH                          7
+#define OS_ALLOC_ONCE_KEY_LIBDYLD                                      8
+#define OS_ALLOC_ONCE_KEY_LIBKEYMGR                                    9
+#define OS_ALLOC_ONCE_KEY_LIBLAUNCH                                    10
+#define OS_ALLOC_ONCE_KEY_LIBMACHO                                     11
+#define OS_ALLOC_ONCE_KEY_OS_TRACE                                     12
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_BLOCKS                     13
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_MALLOC                     14
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM           15
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PTHREAD                    16
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_STATS                      17
+#define OS_ALLOC_ONCE_KEY_LIBSECINIT                           18
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_CORESERVICES       19
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_SYMPTOMS           20
+#define OS_ALLOC_ONCE_KEY_LIBSYSTEM_PLATFORM_ASL       21
 
 /* Keys OS_ALLOC_ONCE_KEY_MAX - 10 upwards are reserved for the system. */
 #define OS_ALLOC_ONCE_KEY_RESERVED_0   (OS_ALLOC_ONCE_KEY_MAX - 10)
diff --git a/init.c b/init.c
index 254815e255375b28da2348d17988c805358d5a30..e684473ffa0259b9a37955f6d514c5072a1c0363 100644 (file)
--- a/init.c
+++ b/init.c
@@ -144,20 +144,21 @@ libSystem_initializer(int argc,
        __libkernel_init(&libkernel_funcs, envp, apple, vars);
 
        __libplatform_init(NULL, envp, apple, vars);
+
        __pthread_init(&libpthread_funcs, envp, apple, vars);
+
        _libc_initializer(&libc_funcs, envp, apple, vars);
 
        // TODO: Move __malloc_init before __libc_init after breaking malloc's upward link to Libc
        __malloc_init(apple);
 
-#if !TARGET_OS_SIMULATOR
+#if !TARGET_OS_SIMULATOR && !TARGET_OS_TV && !TARGET_OS_WATCH
        /* <rdar://problem/9664631> */
        __keymgr_initializer();
 #endif
 
        _dyld_initializer();
 
-
        libdispatch_init();
        _libxpc_initializer();
 
index 2885215e2260deb031c05cc9dbca6828823a9317..6308f5b5c5984e982975fa541bf895802fead665 100644 (file)
@@ -1,12 +1,7 @@
 keymgr
 quarantine
 system_containermanager
-system_coreservices
-system_coretls
-system_network
 system_networkextension
 system_secinit
-system_sim_trace
-system_trace
-unc
+system_symptoms
 vminterpose
index 55c06a939c21d5d8132f6ff943fa1a69e8b6b399..5343f7c4b91f4ceb771339a298aad3570c622af7 100644 (file)
@@ -12,14 +12,18 @@ system_asl
 system_blocks
 system_c
 system_configuration
+system_coreservices
+system_coretls
 system_dnssd
 system_info
 system_kernel system_sim_kernel
 system_m
 system_malloc
+system_network
 system_notify
 system_platform system_sim_platform
 system_pthread system_sim_pthread
 system_sandbox
+system_trace
 unwind unwind_sim
 xpc