this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added liblaunch; now everything fails because bootstrap_init() aborts

+50 -3
+1
src/CMakeLists.txt
··· 61 61 add_subdirectory(libsystem) 62 62 add_subdirectory(libutil) 63 63 add_subdirectory(libnotify) 64 + add_subdirectory(launchd/liblaunch) 64 65 add_subdirectory(keymgr) 65 66 add_subdirectory(libiconv) 66 67 add_subdirectory(duct/src)
+2
src/duct/src/bootstrap.c
··· 1 + #if 0 1 2 int bootstrap_parent() 2 3 { 3 4 return 0; ··· 6 7 void bootstrap_init(void) 7 8 { 8 9 } 10 + #endif 9 11 10 12 void _libxpc_initializer(void) 11 13 {
+35
src/launchd/liblaunch/CMakeLists.txt
··· 1 + project(liblaunch) 2 + 3 + cmake_minimum_required(VERSION 2.4.0) 4 + 5 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../external/libdispatch/) 6 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../external/libdispatch/private) 7 + include_directories(${DARLING_TOP_DIRECTORY}/platform-include) 8 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 9 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/) 10 + include_directories(${DARLING_TOP_DIRECTORY}/src/libc/darwin) 11 + include_directories(${CMAKE_CURRENT_BINARY_DIR}) 12 + 13 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fblocks -nostdinc -include ${DARLING_TOP_DIRECTORY}/kernel-include/sys/fileport.h -ggdb") 14 + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map") 15 + 16 + mig(job.defs) 17 + mig(helper.defs) 18 + 19 + set(launch_sources 20 + libbootstrap.c 21 + liblaunch.c 22 + libvproc.c 23 + ${CMAKE_CURRENT_BINARY_DIR}/jobUser.c 24 + ${CMAKE_CURRENT_BINARY_DIR}/helperServer.c 25 + ) 26 + 27 + SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib${SUFFIX}/darling") 28 + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) 29 + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 30 + 31 + add_library(launch SHARED ${launch_sources}) 32 + target_link_libraries(launch system_c system_kernel) 33 + 34 + install(TARGETS launch DESTINATION lib${SUFFIX}/darling) 35 +
+1
src/launchd/liblaunch/helper.defs
··· 1 + ../src/helper.defs
+1
src/launchd/liblaunch/job.defs
··· 1 + ../src/job.defs
+1
src/launchd/liblaunch/job_forward.defs
··· 1 + ../src/job_forward.defs
+1
src/launchd/liblaunch/job_reply.defs
··· 1 + ../src/job_reply.defs
+1
src/launchd/liblaunch/job_types.defs
··· 1 + ../src/job_types.defs
+5 -1
src/launchd/liblaunch/libvproc.c
··· 40 40 #include <sys/syscall.h> 41 41 #include <sys/event.h> 42 42 #include <System/sys/fileport.h> 43 - #include <os/assumes.h> 43 + //#include <os/assumes.h> 44 44 45 45 #if HAVE_QUARANTINE 46 46 #include <quarantine.h> ··· 57 57 #include "helperServer.h" 58 58 59 59 #include "reboot2.h" 60 + 61 + #ifndef os_assumes_zero 62 + # define os_assumes_zero(x) (x) 63 + #endif 60 64 61 65 #define likely(x) __builtin_expect((bool)(x), true) 62 66 #define unlikely(x) __builtin_expect((bool)(x), false)
+1 -1
src/launchd/src/core.h
··· 24 24 #include "runtime.h" 25 25 #include "bootstrap.h" 26 26 #include "launch.h" 27 - #include <xpc/private.h> 27 + // #include <xpc/private.h> 28 28 29 29 typedef struct job_s *job_t; 30 30 typedef struct jobmgr_s *jobmgr_t;
+1 -1
src/libsystem/CMakeLists.txt
··· 38 38 39 39 add_library(system SHARED ${libsystem_sources}) 40 40 target_link_libraries(system system_malloc system_c system_kernel keymgr 41 - system_m system_info system_notify unwind libdispatch_shared objc) 41 + system_m system_info system_notify unwind libdispatch_shared objc launch) 42 42 43 43 install(TARGETS system DESTINATION lib${SUFFIX}/darling) 44 44