this repo has no description
1
fork

Configure Feed

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

launchd-842.92.1

+40 -52
src/launchd/SystemStarter/StartupItemContext
src/launchd/liblaunch/config.h

This is a binary file and will not be displayed.

-1
src/launchd/liblaunch/core.h
··· 1 - ../src/core.h
-1
src/launchd/liblaunch/helper.defs
··· 1 - ../src/helper.defs
-1
src/launchd/liblaunch/include/bootstrap.h
··· 1 - ../bootstrap.h
-1
src/launchd/liblaunch/include/bootstrap_priv.h
··· 1 - ../bootstrap_priv.h
-1
src/launchd/liblaunch/include/launch.h
··· 1 - ../launch.h
-1
src/launchd/liblaunch/include/launch_internal.h
··· 1 - ../launch_internal.h
-1
src/launchd/liblaunch/include/launch_priv.h
··· 1 - ../launch_priv.h
-1
src/launchd/liblaunch/include/vproc.h
··· 1 - ../vproc.h
-1
src/launchd/liblaunch/include/vproc_internal.h
··· 1 - ../vproc_internal.h
-1
src/launchd/liblaunch/include/vproc_priv.h
··· 1 - ../vproc_priv.h
-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
-1
src/launchd/liblaunch/kill2.h
··· 1 - ../src/kill2.h
-1
src/launchd/liblaunch/ktrace.h
··· 1 - ../src/ktrace.h
+1 -5
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 64 60 65 61 #define likely(x) __builtin_expect((bool)(x), true) 66 62 #define unlikely(x) __builtin_expect((bool)(x), false)
-1
src/launchd/liblaunch/log.h
··· 1 - ../src/log.h
-5
src/launchd/liblaunch/reboot2.h
··· 34 34 __attribute__((visibility("default"))) 35 35 void *reboot2(uint64_t flags); 36 36 37 - /* This function is implemented in libxpc */ 38 - /* It's header is here because it isn't clear where else it goes */ 39 - __attribute__((visibility("default"))) 40 - void *reboot3(uint64_t flags); 41 - 42 37 __END_DECLS 43 38 44 39 #endif /* __REBOOT2_H__ */
-1
src/launchd/liblaunch/runtime.h
··· 1 - ../src/runtime.h
+32
src/launchd/src/config.h
··· 1 + #ifndef __CONFIG_H__ 2 + #define __CONFIG_H__ 3 + 4 + #include <TargetConditionals.h> 5 + 6 + #if __has_include(<quarantine.h>) 7 + #define HAVE_QUARANTINE 1 8 + #else 9 + #define HAVE_QUARANTINE 0 10 + #endif 11 + 12 + #if __has_include(<responsibility.h>) 13 + #define HAVE_RESPONSIBILITY 1 14 + #else 15 + #define HAVE_RESPONSIBILITY 0 16 + #endif 17 + 18 + #if __has_include(<sandbox.h>) 19 + #define HAVE_SANDBOX 1 20 + #else 21 + #define HAVE_SANDBOX 0 22 + #endif 23 + 24 + #define HAVE_LIBAUDITD !TARGET_OS_EMBEDDED 25 + 26 + #if !TARGET_OS_EMBEDDED && __has_include(<systemstats/systemstats.h>) 27 + #define HAVE_SYSTEMSTATS 1 28 + #else 29 + #define HAVE_SYSTEMSTATS 0 30 + #endif 31 + 32 + #endif /* __CONFIG_H__ */
+5 -5
src/launchd/src/core.c
··· 54 54 #include <sys/socket.h> 55 55 #include <sys/syscall.h> 56 56 #include <sys/kern_memorystatus.h> 57 - #include <sys/spawn_internal.h> 58 - #include <sys/proc_info.h> 59 57 #include <net/if.h> 60 58 #include <netinet/in.h> 61 59 #include <netinet/in_var.h> ··· 78 76 #include <string.h> 79 77 #include <ctype.h> 80 78 #include <glob.h> 79 + #include <System/sys/spawn.h> 80 + #include <System/sys/spawn_internal.h> 81 81 #include <spawn.h> 82 82 #include <spawn_private.h> 83 83 #include <time.h> ··· 8093 8093 return BOOTSTRAP_NO_MEMORY; 8094 8094 } 8095 8095 8096 - if (!job_assumes(j, j->per_user != 0)) { 8096 + if (!job_assumes(j, j->per_user)) { 8097 8097 return BOOTSTRAP_NOT_PRIVILEGED; 8098 8098 } 8099 8099 ··· 8396 8396 /* No-op. */ 8397 8397 break; 8398 8398 case VPROC_GSK_WEIRD_BOOTSTRAP: 8399 - if (job_assumes(j, j->weird_bootstrap != 0)) { 8399 + if (job_assumes(j, j->weird_bootstrap)) { 8400 8400 job_log(j, LOG_DEBUG, "Unsetting weird bootstrap."); 8401 8401 8402 8402 mach_msg_size_t mxmsgsz = (typeof(mxmsgsz)) sizeof(union __RequestUnion__job_mig_job_subsystem); ··· 8555 8555 size_t cnt = 0; 8556 8556 struct machservice *msi = NULL; 8557 8557 SLIST_FOREACH(msi, &j->machservices, sle) { 8558 - if (msi->upfront && job_assumes(j, msi->recv != 0)) { 8558 + if (msi->upfront && job_assumes(j, msi->recv)) { 8559 8559 cnt++; 8560 8560 } 8561 8561 }
+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/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 && !DARLING 468 + #if !TARGET_OS_EMBEDDED 469 469 auditinfo_addr_t auinfo = { 470 470 .ai_termid = { 471 471 .at_type = AU_IPv4
-1
src/launchd/src/mach_exc.defs
··· 1 - ../../external/lkm/osfmk/mach/mach_exc.defs
-1
src/launchd/src/notify.defs
··· 1 - ../../external/lkm/osfmk/mach/notify.defs
-1
src/launchd/src/readline
··· 1 - ../../libedit/src/readline/
-2
src/launchd/src/runtime.c
··· 165 165 }; 166 166 167 167 union xpc_domain_max_sz { 168 - #ifndef DARLING 169 168 union __RequestUnion__xpc_domain_xpc_domain_subsystem req; 170 169 union __ReplyUnion__xpc_domain_xpc_domain_subsystem rep; 171 - #endif 172 170 }; 173 171 174 172 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 36 35 #include <IOKit/IOKitLib.h> 37 - #endif 38 36 #include <NSSystemDirectories.h> 39 37 #include <mach/mach.h> 40 38 #include <mach-o/getsect.h> ··· 2151 2149 _exit(EXIT_FAILURE); 2152 2150 } 2153 2151 2154 - #ifndef DARLING 2155 2152 mach_timespec_t wt = { 5, 0 }; 2156 2153 IOKitWaitQuiet(kIOMasterPortDefault, &wt); /* This will hopefully return after all the kexts have shut up. */ 2157 - #endif 2158 2154 2159 2155 setenv("TERM", "vt100", 1); 2160 2156 if (runcom_fsck) { ··· 2219 2215 * of log messages from being slammed onto the console prompt. It mostly 2220 2216 * works. 2221 2217 */ 2222 - #ifndef DARLING 2223 2218 mach_timespec_t wt = { 5, 0 }; 2224 2219 IOKitWaitQuiet(kIOMasterPortDefault, &wt); 2225 - #endif 2226 2220 2227 2221 setenv("TERM", "vt100", 1); 2228 2222 fprintf(stdout, "Entering boot-time debugging mode...\n"); ··· 2481 2475 2482 2476 (void)posix_assumes_zero(load_and_unload_cmd(load_launchd_items_cnt, load_launchd_items)); 2483 2477 2484 - #ifndef DARLING 2485 2478 /* See <rdar://problem/5066316>. */ 2486 2479 if (!_launchctl_apple_internal) { 2487 2480 mach_timespec_t w = { 5, 0 }; 2488 2481 IOKitWaitQuiet(kIOMasterPortDefault, &w); 2489 2482 } 2490 - #endif 2491 2483 2492 2484 do_BootCache_magic(BOOTCACHE_TAG); 2493 2485 ··· 4448 4440 } 4449 4441 } 4450 4442 4451 - #ifndef DARLING 4452 4443 if (prog != NULL) { 4453 4444 /* The networking team has asked us to ignore the failure of this API if 4454 4445 * errno == ENOPROTOOPT. ··· 4457 4448 (void)os_assumes_zero(errno); 4458 4449 } 4459 4450 } 4460 - #endif 4461 4451 } 4462 4452 4463 4453 ··· 4506 4496 void 4507 4497 do_bootroot_magic(void) 4508 4498 { 4509 - #ifndef DARLING 4510 4499 const char *kextcache_tool[] = { "kextcache", "-U", "/", NULL }; 4511 4500 CFTypeRef bootrootProp; 4512 4501 io_service_t chosen; ··· 4536 4525 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == EX_OSFILE) { 4537 4526 (void)reboot(RB_AUTOBOOT); 4538 4527 } 4539 - #endif 4540 4528 } 4541 4529 4542 4530 void