/systemd-251/src/test/ ! |
D | test-log.c | 31 "MESSAGE=Waldo PID="PID_FMT" (no errno)", getpid_cached(), in test_log_struct() 36 LOG_MESSAGE("Waldo PID="PID_FMT" (no errno)", getpid_cached()), in test_log_struct() 40 LOG_MESSAGE("Waldo PID="PID_FMT": %m (normal)", getpid_cached()), in test_log_struct() 44 LOG_MESSAGE("Waldo PID="PID_FMT": %m (synthetic)", getpid_cached()), in test_log_struct() 48 LOG_MESSAGE("Foobar PID="PID_FMT, getpid_cached()), in test_log_struct()
|
D | test-signal-util.c | 128 assert_se(kill(getpid_cached(), SIGINT) >= 0); in TEST() 130 assert_se(kill(getpid_cached(), SIGUSR1) >= 0); in TEST() 131 assert_se(kill(getpid_cached(), SIGUSR2) >= 0); in TEST() 132 assert_se(kill(getpid_cached(), SIGTERM) >= 0); in TEST() 133 assert_se(kill(getpid_cached(), SIGPIPE) >= 0); in TEST()
|
D | test-cgroup.c | 76 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST() 82 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST() 88 assert_se(cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &path) == 0); in TEST()
|
D | test-tmpfiles.c | 31 assert_se(asprintf(&cmd, "ls -l /proc/"PID_FMT"/fd/%d", getpid_cached(), fd) > 0); in TEST() 41 assert_se(asprintf(&cmd2, "ls -l /proc/"PID_FMT"/fd/%d", getpid_cached(), fd2) > 0); in TEST()
|
D | test-process-util.c | 199 assert_se(pid_is_unwaited(getpid_cached())); in TEST() 216 assert_se(pid_is_alive(getpid_cached())); in TEST() 628 TEST(getpid_cached) { in TEST() argument 633 b = getpid_cached(); in TEST() 644 b = getpid_cached(); in TEST() 652 e = getpid_cached(); in TEST() 680 (void) getpid_cached(); in TEST()
|
D | test-env-util.c | 398 assert_se(p == getpid_cached()); in TEST() 404 assert_se(p == getpid_cached()); in TEST()
|
D | test-compress-benchmark.c | 159 arg_start = getpid_cached(); in main()
|
/systemd-251/src/basic/ ! |
D | process-util.c | 65 if (pid == 0 || pid == getpid_cached()) in get_process_state() 95 if (pid == 0 || pid == getpid_cached()) { in get_process_comm() 409 …if (IN_SET(pid, 0, 1) || pid == getpid_cached()) /* pid 1, and we ourselves certainly aren't a ker… in is_kernel_thread() 551 if (pid == 0 || pid == getpid_cached()) { in get_process_uid() 561 if (pid == 0 || pid == getpid_cached()) { in get_process_gid() 573 if (pid == 0 || pid == getpid_cached()) in get_process_cwd() 639 if (pid == 0 || pid == getpid_cached()) { in get_process_ppid() 891 if (pid == 0 || pid == getpid_cached()) { in getenv_for_pid() 959 return ppid == getpid_cached(); in pid_is_my_child() 971 if (pid == getpid_cached()) in pid_is_unwaited() [all …]
|
D | log.c | 142 if (getpid_cached() == 1) in create_log_socket() 279 if (getpid_cached() == 1 || in log_open() 432 if (errno == EIO && getpid_cached() == 1) { in write_to_console() 477 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_syslog() 539 xsprintf(header_pid, "["PID_FMT"]: ", getpid_cached()); in write_to_kmsg() 1174 if (getpid_cached() == 1) in should_parse_proc_cmdline() 1193 return getpid_cached() == p; in should_parse_proc_cmdline() 1395 unit_fmt = getpid_cached() == 1 ? "UNIT=%s" : "USER_UNIT=%s"; in log_syntax_internal() 1486 return getpid_cached() == 1 ? LOG_EMERG : LOG_ERR; in log_emergency_level()
|
D | process-util.h | 133 pid_t getpid_cached(void);
|
/systemd-251/src/journal/ ! |
D | journald.c | 60 …ebug("systemd-journald running as PID "PID_FMT" for namespace '%s'.", getpid_cached(), server.name… in main() 62 … log_debug("systemd-journald running as PID "PID_FMT" for the system.", getpid_cached()); in main() 125 …ebug("systemd-journald stopped as PID "PID_FMT" for namespace '%s'.", getpid_cached(), server.name… in main() 127 … log_debug("systemd-journald stopped as PID "PID_FMT" for the system.", getpid_cached()); in main()
|
D | fuzz-journald-native-fd.c | 32 .pid = getpid_cached(), in LLVMFuzzerTestOneInput()
|
/systemd-251/src/core/ ! |
D | main.c | 832 if (getpid_cached() == 1) in parse_argv() 1044 if (getpid_cached() != 1) in parse_argv() 1053 if (optind < argc && getpid_cached() != 1) in parse_argv() 1392 if (getpid_cached() != 1) in fixup_environment() 1425 if (getpid_cached() == 1) in redirect_telinit() 1584 if (getpid_cached() != 1) in apply_clock_update() 1601 if (getpid_cached() != 1) in cmdline_take_random_seed() 1624 if (getpid_cached() != 1) in initialize_coredump() 1646 if (getpid_cached() != 1) in initialize_core_pattern() 2490 if (getpid_cached() == 1 && in safety_checks() [all …]
|
D | crash-handler.c | 50 if (getpid_cached() != 1) in crash()
|
/systemd-251/src/portable/ ! |
D | portabled.c | 156 log_debug("systemd-portabled running as pid " PID_FMT, getpid_cached()); in run() 164 log_debug("systemd-portabled stopped as pid " PID_FMT, getpid_cached()); in run()
|
/systemd-251/src/libsystemd/sd-daemon/ ! |
D | sd-daemon.c | 58 if (getpid_cached() != pid) { in sd_listen_fds() 487 (pid != 0 && pid != getpid_cached()) || in sd_pid_notify_with_fds() 519 ucred->pid = pid != 0 ? pid : getpid_cached(); in sd_pid_notify_with_fds() 658 if (getpid_cached() != pid) { in sd_watchdog_enabled()
|
/systemd-251/src/libsystemd/sd-event/ ! |
D | test-event.c | 356 assert_se(sigqueue(getpid_cached(), SIGRTMIN+2, (union sigval) { .sival_int = 1 }) >= 0); in TEST() 357 assert_se(sigqueue(getpid_cached(), SIGRTMIN+3, (union sigval) { .sival_int = 2 }) >= 0); in TEST() 358 assert_se(sigqueue(getpid_cached(), SIGUSR2, (union sigval) { .sival_int = 3 }) >= 0); in TEST() 359 assert_se(sigqueue(getpid_cached(), SIGRTMIN+3, (union sigval) { .sival_int = 4 }) >= 0); in TEST() 360 assert_se(sigqueue(getpid_cached(), SIGUSR2, (union sigval) { .sival_int = 5 }) >= 0); in TEST()
|
/systemd-251/src/machine/ ! |
D | machined.c | 352 log_debug("systemd-machined running as pid "PID_FMT, getpid_cached()); in run() 360 log_debug("systemd-machined stopped as pid "PID_FMT, getpid_cached()); in run()
|
/systemd-251/src/shutdown/ ! |
D | shutdown.c | 348 if (getpid_cached() == 1) in main() 359 if (getpid_cached() != 1) { in main()
|
/systemd-251/src/timesync/ ! |
D | timesyncd.c | 146 log_debug("systemd-timesyncd running as pid " PID_FMT, getpid_cached()); in run()
|
/systemd-251/src/shared/ ! |
D | serialize.c | 204 path = getpid_cached() == 1 ? "/run/systemd" : "/tmp"; in open_serialization_fd()
|
D | cgroup-setup.c | 343 pid = getpid_cached(); in cg_attach() 500 my_pid = getpid_cached(); in cg_migrate()
|
D | condition.c | 399 if (getpid_cached() == 1) in condition_test_user() 456 if (getpid_cached() == 1) in condition_test_group() 1020 r = cg_pid_get_path(SYSTEMD_CGROUP_CONTROLLER, getpid_cached(), &root_scope); in condition_test_psi()
|
D | tests.c | 242 r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) getpid_cached()); in allocate_scope()
|
/systemd-251/src/activate/ ! |
D | activate.c | 165 r = strv_extendf(&envp, "LISTEN_PID=" PID_FMT, getpid_cached()); in exec_process()
|