this repo has no description
1
fork

Configure Feed

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

Build launchctl (doesn't really work yet)

+77
+1
platform-include/readline
··· 1 + ../src/libedit/src/editline
+5
src/CFF/CFUtilities.c
··· 1 1 2 2 #include "CoreFoundation/CFPriv.h" 3 + #include "CoreFoundation/CFLogUtilities.h" 3 4 #include <CoreFoundation/CFString.h> 4 5 #include <CoreFoundation/CFData.h> 5 6 #include <CoreFoundation/CFPropertyList.h> ··· 93 94 return _CFCopyVersionDictionary(str); 94 95 } 95 96 97 + void CFLog(int32_t level, CFStringRef format, ...) 98 + { 99 + } 100 +
+18
src/CFF/CoreFoundation/CFLogUtilities.h
··· 1 + #ifndef CF_CFLOGUTILITIES_H_ 2 + #define CF_CFLOGUTILITIES_H_ 3 + 4 + enum { 5 + kCFLogLevelEmergency = 0, 6 + kCFLogLevelAlert, 7 + kCFLogLevelCritical, 8 + kCFLogLevelError, 9 + kCFLogLevelWarning, 10 + kCFLogLevelNotice, 11 + kCFLogLevelInfo, 12 + kCFLogLevelDebug 13 + }; 14 + 15 + void CFLog(int32_t level, CFStringRef format, ...); 16 + 17 + #endif 18 +
+1
src/CMakeLists.txt
··· 120 120 add_subdirectory(external/gpatch) 121 121 add_subdirectory(external/gnudiff) 122 122 add_subdirectory(launchd/src) 123 + add_subdirectory(launchd/support) 123 124 endif (NOT DARLING_NO_EXECUTABLES) 124 125 125 126 ######################
+39
src/launchd/support/CMakeLists.txt
··· 1 + project(launchd-support) 2 + 3 + cmake_minimum_required(VERSION 2.4.0) 4 + 5 + if(COMMAND cmake_policy) 6 + cmake_policy(SET CMP0003 NEW) 7 + endif(COMMAND cmake_policy) 8 + 9 + 10 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../external/libdispatch/) 11 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../external/libdispatch/private) 12 + include_directories(${DARLING_TOP_DIRECTORY}/platform-include) 13 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}) 14 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../liblaunch/) 15 + include_directories(${DARLING_TOP_DIRECTORY}/src/libc/darwin) 16 + include_directories(${DARLING_TOP_DIRECTORY}/src/libc/gen) 17 + include_directories(${DARLING_TOP_DIRECTORY}/src/libc/include/NetBSD) 18 + include_directories(${DARLING_TOP_DIRECTORY}/src/CFF) 19 + include_directories(${DARLING_TOP_DIRECTORY}/src/libinfo/lookup.subproj) 20 + include_directories(${CMAKE_CURRENT_BINARY_DIR}) 21 + include_directories(${DARLING_TOP_DIRECTORY}/src/external/corefoundation/Headers) 22 + include_directories(${CMAKE_BINARY_DIR}/src/external/corefoundation/Headers) 23 + include_directories(${DARLING_TOP_DIRECTORY}/src/external/foundation/Headers) 24 + 25 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fblocks -nostdinc -include ${DARLING_TOP_DIRECTORY}/kernel-include/sys/fileport.h -ggdb -O0") 26 + set(CMAKE_EXE_LINKER_FLAGS "-nodefaultlibs -nostdlib -Wl,--version-script=${DARLING_TOP_DIRECTORY}/darwin.map") 27 + 28 + add_definitions(-DPRIVATE -DOBJC2RUNTIME=1) 29 + 30 + SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/darling") 31 + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) 32 + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 33 + 34 + include(darling_exe) 35 + add_darling_executable(launchctl launchctl.c) 36 + target_link_libraries(launchctl xpc CFFExtra edit) 37 + 38 + install(TARGETS launchctl DESTINATION libexec/darling/bin) 39 +
+12
src/launchd/support/launchctl.c
··· 32 32 #include <CoreFoundation/CFPriv.h> 33 33 #include <CoreFoundation/CFLogUtilities.h> 34 34 #include <TargetConditionals.h> 35 + #ifndef DARLING 35 36 #include <IOKit/IOKitLib.h> 37 + #endif 36 38 #include <NSSystemDirectories.h> 37 39 #include <mach/mach.h> 38 40 #include <mach-o/getsect.h> ··· 2149 2151 _exit(EXIT_FAILURE); 2150 2152 } 2151 2153 2154 + #ifndef DARLING 2152 2155 mach_timespec_t wt = { 5, 0 }; 2153 2156 IOKitWaitQuiet(kIOMasterPortDefault, &wt); /* This will hopefully return after all the kexts have shut up. */ 2157 + #endif 2154 2158 2155 2159 setenv("TERM", "vt100", 1); 2156 2160 if (runcom_fsck) { ··· 2215 2219 * of log messages from being slammed onto the console prompt. It mostly 2216 2220 * works. 2217 2221 */ 2222 + #ifndef DARLING 2218 2223 mach_timespec_t wt = { 5, 0 }; 2219 2224 IOKitWaitQuiet(kIOMasterPortDefault, &wt); 2225 + #endif 2220 2226 2221 2227 setenv("TERM", "vt100", 1); 2222 2228 fprintf(stdout, "Entering boot-time debugging mode...\n"); ··· 2475 2481 2476 2482 (void)posix_assumes_zero(load_and_unload_cmd(load_launchd_items_cnt, load_launchd_items)); 2477 2483 2484 + #ifndef DARLING 2478 2485 /* See <rdar://problem/5066316>. */ 2479 2486 if (!_launchctl_apple_internal) { 2480 2487 mach_timespec_t w = { 5, 0 }; 2481 2488 IOKitWaitQuiet(kIOMasterPortDefault, &w); 2482 2489 } 2490 + #endif 2483 2491 2484 2492 do_BootCache_magic(BOOTCACHE_TAG); 2485 2493 ··· 4440 4448 } 4441 4449 } 4442 4450 4451 + #ifndef DARLING 4443 4452 if (prog != NULL) { 4444 4453 /* The networking team has asked us to ignore the failure of this API if 4445 4454 * errno == ENOPROTOOPT. ··· 4448 4457 (void)os_assumes_zero(errno); 4449 4458 } 4450 4459 } 4460 + #endif 4451 4461 } 4452 4462 4453 4463 ··· 4496 4506 void 4497 4507 do_bootroot_magic(void) 4498 4508 { 4509 + #ifndef DARLING 4499 4510 const char *kextcache_tool[] = { "kextcache", "-U", "/", NULL }; 4500 4511 CFTypeRef bootrootProp; 4501 4512 io_service_t chosen; ··· 4525 4536 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == EX_OSFILE) { 4526 4537 (void)reboot(RB_AUTOBOOT); 4527 4538 } 4539 + #endif 4528 4540 } 4529 4541 4530 4542 void
+1
src/libedit/src/editline/history.h
··· 1 + readline.h