this repo has no description
1
fork

Configure Feed

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

Darling build of launchd-842.92.1

+26 -3
-2
src/launchd/liblaunch/CMakeLists.txt
··· 31 31 system_c 32 32 system_kernel 33 33 ) 34 - #target_link_libraries(launch PRIVATE system_c system_kernel) 35 - #make_fat(launch) 36 34 37 35 install(TARGETS launch DESTINATION libexec/darling/usr/lib/system) 38 36
+1
src/launchd/liblaunch/helper.defs
··· 1 + ../src/helper.defs
+1
src/launchd/liblaunch/job.defs
··· 1 + ../src/job.defs
+7
src/launchd/liblaunch/reboot2.h
··· 34 34 __attribute__((visibility("default"))) 35 35 void *reboot2(uint64_t flags); 36 36 37 + #ifdef DARLING 38 + /* This function is implemented in libxpc */ 39 + /* It's header is here because it isn't clear where else it goes */ 40 + __attribute__((visibility("default"))) 41 + void *reboot3(uint64_t flags); 42 + #endif // DARLING 43 + 37 44 __END_DECLS 38 45 39 46 #endif /* __REBOOT2_H__ */
+1 -1
src/launchd/src/launchd.c
··· 465 465 (void)posix_assumes_zero(chdir("/")); 466 466 (void)posix_assumes_zero(setlogin("root")); 467 467 468 - #if !TARGET_OS_EMBEDDED 468 + #if !TARGET_OS_EMBEDDED && !DARLING 469 469 auditinfo_addr_t auinfo = { 470 470 .ai_termid = { 471 471 .at_type = AU_IPv4
+1
src/launchd/src/mach_exc.defs
··· 1 + ../../../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/mach_exc.defs
+1
src/launchd/src/notify.defs
··· 1 + ../../../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/notify.defs
+2
src/launchd/src/runtime.c
··· 165 165 }; 166 166 167 167 union xpc_domain_max_sz { 168 + #ifndef DARLING 168 169 union __RequestUnion__xpc_domain_xpc_domain_subsystem req; 169 170 union __ReplyUnion__xpc_domain_xpc_domain_subsystem rep; 171 + #endif // DARLING 170 172 }; 171 173 172 174 union mach_exc_max_sz {
+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 // DARLING 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 // DARLING 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 // DARLING 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 // DARLING 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 // DARLING 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 // DARLING 4528 4540 } 4529 4541 4530 4542 void