/systemd-251/src/boot/efi/ |
D | shim.c | 75 EFI_STATUS status; in security2_policy_authentication() local 81 status = es2fa(this, device_path, file_buffer, file_size, boot_policy); in security2_policy_authentication() 84 if (!EFI_ERROR(status)) in security2_policy_authentication() 85 return status; in security2_policy_authentication() 90 return status; in security2_policy_authentication() 104 EFI_STATUS status; in security_policy_authentication() local 121 status = BS->LocateDevicePath(&FileSystemProtocol, &dp, &h); in security_policy_authentication() 122 if (EFI_ERROR(status)) in security_policy_authentication() 123 return status; in security_policy_authentication() 133 status = file_read(root, dev_path_str, 0, 0, &file_buffer, &file_size); in security_policy_authentication() [all …]
|
D | measure.c | 83 EFI_STATUS status; in tcg1_interface_check() local 87 status = LibLocateProtocol((EFI_GUID*) EFI_TCG_GUID, (void **) &tcg); in tcg1_interface_check() 88 if (EFI_ERROR(status)) in tcg1_interface_check() 91 status = tcg->StatusCheck( in tcg1_interface_check() 97 if (EFI_ERROR(status)) in tcg1_interface_check() 113 EFI_STATUS status; in tcg2_interface_check() local 116 status = LibLocateProtocol((EFI_GUID*) EFI_TCG2_GUID, (void **) &tcg); in tcg2_interface_check() 117 if (EFI_ERROR(status)) in tcg2_interface_check() 120 status = tcg->GetCapability(tcg, &capability); in tcg2_interface_check() 121 if (EFI_ERROR(status)) in tcg2_interface_check()
|
/systemd-251/src/test/ |
D | test-nss-hosts.c | 103 enum nss_status status; in test_gethostbyname4_r() local 115 status = f(name, &pat, buffer, sizeof buffer, &errno1, &errno2, &ttl); in test_gethostbyname4_r() 116 if (status == NSS_STATUS_SUCCESS) { in test_gethostbyname4_r() 119 nss_status_to_string(status, pretty_status, sizeof pretty_status), "\n", in test_gethostbyname4_r() 128 nss_status_to_string(status, pretty_status, sizeof pretty_status), "\n", in test_gethostbyname4_r() 135 if (STR_IN_SET(module, "resolve", "mymachines") && status == NSS_STATUS_UNAVAIL) in test_gethostbyname4_r() 140 assert_se(status == NSS_STATUS_SUCCESS); in test_gethostbyname4_r() 144 assert_se(status == NSS_STATUS_SUCCESS); in test_gethostbyname4_r() 163 enum nss_status status; in test_gethostbyname3_r() local 177 status = f(name, af, &host, buffer, sizeof buffer, &errno1, &errno2, &ttl, &canon); in test_gethostbyname3_r() [all …]
|
D | test-nss-users.c | 52 enum nss_status status; in test_getpwnam_r() local 64 status = f(name, &pwd, buffer, sizeof buffer, &errno1); in test_getpwnam_r() 67 nss_status_to_string(status, pretty_status, sizeof pretty_status), "\n", in test_getpwnam_r() 69 if (status == NSS_STATUS_SUCCESS) in test_getpwnam_r() 78 enum nss_status status; in test_getgrnam_r() local 90 status = f(name, &gr, buffer, sizeof buffer, &errno1); in test_getgrnam_r() 93 nss_status_to_string(status, pretty_status, sizeof pretty_status), "\n", in test_getgrnam_r() 95 if (status == NSS_STATUS_SUCCESS) in test_getgrnam_r() 104 enum nss_status status; in test_getpwuid_r() local 116 status = f(uid, &pwd, buffer, sizeof buffer, &errno1); in test_getpwuid_r() [all …]
|
D | test-barrier.c | 79 int pidr, status; \ 80 pidr = waitpid(_pid, &status, 0); \ 82 assert_se(WIFEXITED(status)); \ 83 assert_se(WEXITSTATUS(status) == 42); \ 88 int pidr, status; \ 89 pidr = waitpid(_pid, &status, 0); \ 91 assert_se(WIFSIGNALED(status)); \ 92 assert_se(WTERMSIG(status) == SIGALRM); \
|
D | nss-test-util.c | 10 const char* nss_status_to_string(enum nss_status status, char *buf, size_t buf_len) { in nss_status_to_string() argument 11 switch (status) { in nss_status_to_string() 23 (void) snprintf(buf, buf_len, "%i", status); in nss_status_to_string()
|
/systemd-251/test/units/ |
D | testsuite-25.sh | 12 machinectl image-status testimage 30 machinectl image-status testimage3 32 machinectl image-status testimage 39 machinectl image-status testimage && { echo 'unexpected success'; exit 1; } 49 machinectl image-status testimage4 51 machinectl image-status testimage3 && { echo 'unexpected success'; exit 1; } 62 machinectl image-status testimage4 && { echo 'unexpected success'; exit 1; } 76 machinectl image-status scratch 89 machinectl image-status scratch2 95 machinectl image-status scratchi && { echo 'unexpected success'; exit 1; } [all …]
|
D | testsuite-55.sh | 66 systemctl status testsuite-55-testchill.service 72 if ! systemctl status testsuite-55-testbloat.service; then 79 if systemctl status testsuite-55-testbloat.service; then exit 42; fi 80 if ! systemctl status testsuite-55-testchill.service; then exit 24; fi 103 systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service 109 if ! systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then 116 if systemctl --machine "testuser@.host" --user status testsuite-55-testbloat.service; then exit 42;… 117 if ! systemctl --machine "testuser@.host" --user status testsuite-55-testchill.service; then exit 2… 134 if ! systemctl status testsuite-55-testmunch.service; then 141 if ! systemctl status testsuite-55-testbloat.service; then exit 25; fi [all …]
|
D | testsuite-39.sh | 22 systemctl status "$SERVICE_NAME" 25 systemctl status "$SERVICE_NAME" 40 systemctl status "$SERVICE_NAME" 43 systemctl status "$SERVICE_NAME" 55 systemctl status "$SERVICE_NAME" 57 systemctl status "$SERVICE_NAME"
|
D | testsuite-17.02.sh | 48 if ! systemctl status sys-devices-virtual-net-hoge.device; then exit 1; fi 49 if ! systemctl status sys-subsystem-net-devices-hoge.device; then exit 1; fi 54 if systemctl status sys-devices-virtual-net-hoge.device; then exit 1; fi 55 if systemctl status sys-subsystem-net-devices-hoge.device; then exit 1; fi 56 if ! systemctl status sys-devices-virtual-net-foobar.device; then exit 1; fi 57 if ! systemctl status sys-subsystem-net-devices-foobar.device; then exit 1; fi
|
D | testsuite-29.sh | 78 status="$(portablectl is-attached --extension app0 minimal_0)" 79 [[ "${status}" == "running-runtime" ]] 84 status="$(portablectl is-attached --extension app0 minimal_1)" 85 [[ "${status}" == "running-runtime" ]] 92 status="$(portablectl is-attached --extension app1 minimal_0)" 93 [[ "${status}" == "running-runtime" ]] 100 status="$(portablectl is-attached --extension app1_2 minimal_1)" 101 [[ "${status}" == "running-runtime" ]] 106 status="$(portablectl is-attached --extension app1 minimal_1)" 107 [[ "${status}" == "running-runtime" ]]
|
/systemd-251/src/analyze/ |
D | analyze-exit-status.c | 34 int status; in verb_exit_status() local 36 status = exit_status_from_string(argv[i]); in verb_exit_status() 37 if (status < 0) in verb_exit_status() 38 … return log_error_errno(status, "Invalid exit status \"%s\".", argv[i]); in verb_exit_status() 40 assert(status >= 0 && (size_t) status < ELEMENTSOF(exit_status_mappings)); in verb_exit_status() 42 TABLE_STRING, exit_status_mappings[status].name ?: "-", in verb_exit_status() 43 TABLE_INT, status, in verb_exit_status() 44 TABLE_STRING, exit_status_class(status) ?: "-"); in verb_exit_status()
|
/systemd-251/src/shared/ |
D | exit-status.c | 140 bool is_clean_exit(int code, int status, ExitClean clean, const ExitStatusSet *success_status) { in is_clean_exit() argument 142 return status == 0 || in is_clean_exit() 144 bitmap_isset(&success_status->status, status)); in is_clean_exit() 150 … (clean == EXIT_CLEAN_DAEMON && IN_SET(status, SIGHUP, SIGINT, SIGTERM, SIGPIPE)) || in is_clean_exit() 152 bitmap_isset(&success_status->signal, status)); in is_clean_exit() 160 bitmap_clear(&x->status); in exit_status_set_free() 168 return bitmap_isclear(&x->status) && bitmap_isclear(&x->signal); in exit_status_set_is_empty() 171 bool exit_status_set_test(const ExitStatusSet *x, int code, int status) { in exit_status_set_test() argument 172 if (code == CLD_EXITED && bitmap_isset(&x->status, status)) in exit_status_set_test() 175 if (IN_SET(code, CLD_KILLED, CLD_DUMPED) && bitmap_isset(&x->signal, status)) in exit_status_set_test()
|
D | exit-status.h | 88 Bitmap status; member 108 bool is_clean_exit(int code, int status, ExitClean clean, const ExitStatusSet *success_status); 112 bool exit_status_set_test(const ExitStatusSet *x, int code, int status);
|
/systemd-251/src/nss-systemd/ |
D | nss-systemd.c | 293 enum nss_status status; in _nss_systemd_getpwnam_r() local 325 status = userdb_getpwnam(name, pwd, buffer, buflen, &e); in _nss_systemd_getpwnam_r() 326 if (IN_SET(status, NSS_STATUS_UNAVAIL, NSS_STATUS_TRYAGAIN)) { in _nss_systemd_getpwnam_r() 329 return status; in _nss_systemd_getpwnam_r() 332 return status; in _nss_systemd_getpwnam_r() 341 enum nss_status status; in _nss_systemd_getpwuid_r() local 369 status = userdb_getpwuid(uid, pwd, buffer, buflen, &e); in _nss_systemd_getpwuid_r() 370 if (IN_SET(status, NSS_STATUS_UNAVAIL, NSS_STATUS_TRYAGAIN)) { in _nss_systemd_getpwuid_r() 373 return status; in _nss_systemd_getpwuid_r() 376 return status; in _nss_systemd_getpwuid_r() [all …]
|
/systemd-251/src/core/ |
D | crash-handler.c | 88 siginfo_t status; in crash() local 101 r = wait_for_terminate(pid, &status); in crash() 104 else if (status.si_code != CLD_DUMPED) { in crash() 105 const char *s = status.si_code == CLD_EXITED in crash() 106 ? exit_status_to_string(status.si_status, EXIT_STATUS_LIBC) in crash() 107 : signal_to_string(status.si_status); in crash() 112 sigchld_code_to_string(status.si_code), in crash() 113 status.si_status, strna(s)); in crash()
|
D | show-status.c | 40 int status_vprintf(const char *status, ShowStatusFlags flags, const char *format, va_list ap) { in status_vprintf() argument 74 sl = status ? sizeof(status_indent)-1 : 0; in status_vprintf() 88 if (status) { in status_vprintf() 89 if (!isempty(status)) { in status_vprintf() 91 iovec[n++] = IOVEC_MAKE_STRING(status); in status_vprintf() 110 int status_printf(const char *status, ShowStatusFlags flags, const char *format, ...) { in status_printf() argument 117 r = status_vprintf(status, flags, format, ap); in status_printf()
|
/systemd-251/src/import/ |
D | pull-job.c | 149 long status; in pull_job_curl_on_finished() local 151 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status); in pull_job_curl_on_finished() 157 if (status == 304) { in pull_job_curl_on_finished() 162 } else if (status >= 300) { in pull_job_curl_on_finished() 164 if (status == 404 && j->on_not_found) { in pull_job_curl_on_finished() 179 … code = curl_easy_getinfo(j->curl, CURLINFO_RESPONSE_CODE, &status); in pull_job_curl_on_finished() 185 if (status == 0) in pull_job_curl_on_finished() 191 …status == 404 ? SYNTHETIC_ERRNO(ENOMEDIUM) : SYNTHETIC_ERRNO(EIO), /* Make the most common error r… in pull_job_curl_on_finished() 192 "HTTP request to %s failed with code %li.", j->url, status); in pull_job_curl_on_finished() 194 } else if (status < 200) { in pull_job_curl_on_finished() [all …]
|
/systemd-251/src/cryptenroll/ |
D | cryptenroll-wipe.c | 21 crypt_keyslot_info status; in find_all_slots() local 28 status = crypt_keyslot_status(cd, slot); in find_all_slots() 29 if (!IN_SET(status, CRYPT_SLOT_ACTIVE, CRYPT_SLOT_ACTIVE_LAST)) in find_all_slots() 57 crypt_keyslot_info status; in find_empty_passphrase_slots() local 64 status = crypt_keyslot_status(cd, slot); in find_empty_passphrase_slots() 65 if (!IN_SET(status, CRYPT_SLOT_ACTIVE, CRYPT_SLOT_ACTIVE_LAST)) in find_empty_passphrase_slots() 168 crypt_keyslot_info status; in find_slots_by_mask() local 178 status = crypt_keyslot_status(cd, slot); in find_slots_by_mask() 179 … if (!IN_SET(status, CRYPT_SLOT_ACTIVE, CRYPT_SLOT_ACTIVE_LAST)) /* Not actually assigned? */ in find_slots_by_mask() 280 crypt_keyslot_info status; in slots_remain() local [all …]
|
/systemd-251/src/tty-ask-password-agent/ |
D | tty-ask-password-agent.c | 600 siginfo_t status = {}; in terminate_agents() local 602 r = waitid(P_ALL, 0, &status, WEXITED|WNOHANG); in terminate_agents() 606 if (r == 0 && status.si_pid > 0) { in terminate_agents() 607 set_remove(pids, PID_TO_PTR(status.si_pid)); in terminate_agents() 632 siginfo_t status = {}; in ask_on_consoles() local 660 zero(status); in ask_on_consoles() 662 if (waitid(P_ALL, 0, &status, WEXITED) < 0) { in ask_on_consoles() 669 set_remove(pids, PID_TO_PTR(status.si_pid)); in ask_on_consoles() 673 if (!is_clean_exit(status.si_code, status.si_status, EXIT_CLEAN_DAEMON, NULL)) in ask_on_consoles() 674 log_error("Password agent failed with: %d", status.si_status); in ask_on_consoles()
|
/systemd-251/shell-completion/zsh/ |
D | _loginctl | 33 for fun in session-status show-session activate lock-session unlock-session terminate-session kill-… 57 for fun in user-status show-user enable-linger disable-linger terminate-user kill-user ; do 103 for fun in seat-status show-seat terminate-seat ; do 124 "session-status:Show session status" 134 "user-status:Show user status" 141 "seat-status:Show seat status"
|
D | _networkctl | 9 'status:Show information about the specified links' 10 'lldp:Show Link Layer Discovery Protocol status' 27 (list|status|up|down|lldp|delete|renew|forcerenew|reconfigure) 50 {-a,--all}'[Show all links with status]' \
|
/systemd-251/src/basic/ |
D | process-util.c | 702 int wait_for_terminate(pid_t pid, siginfo_t *status) { in wait_for_terminate() argument 707 if (!status) in wait_for_terminate() 708 status = &dummy; in wait_for_terminate() 711 zero(*status); in wait_for_terminate() 713 if (waitid(P_PID, pid, status, WEXITED) < 0) { in wait_for_terminate() 741 siginfo_t status; in wait_for_terminate_and_check() local 756 r = wait_for_terminate(pid, &status); in wait_for_terminate_and_check() 760 if (status.si_code == CLD_EXITED) { in wait_for_terminate_and_check() 761 if (status.si_status != EXIT_SUCCESS) in wait_for_terminate_and_check() 763 "%s failed with exit status %i.", strna(name), status.si_status); in wait_for_terminate_and_check() [all …]
|
/systemd-251/test/fuzz/fuzz-bootspec/ |
D | crash-autoentry | 6 …8 selinux=0 resume=/dev/mapper/fedora_krowka-swap systemd.show-status systemd.unit-status-format=n… 10 …8 selinux=0 resume=/dev/mapper/fedora_krowka-swap systemd.show-status systemd.unit-status-format=n…
|
D | sample1 | 6 …8 selinux=0 resume=/dev/mapper/fedora_krowka-swap systemd.show-status systemd.unit-status-format=n… 10 …8 selinux=0 resume=/dev/mapper/fedora_krowka-swap systemd.show-status systemd.unit-status-format=n…
|