/systemd/src/basic/ |
H A D | exit-status.c | 23 #include "exit-status.h" 27 const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) { argument 32 switch ((int) status) { 43 switch ((int) status) { 159 switch ((int) status) { 185 bool is_clean_exit(int code, int status, ExitStatusSet *success_status) { argument 188 return status == 0 || 190 set_contains(success_status->status, INT_TO_PTR(status))); 196 status 206 is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status) argument 231 exit_status_set_test(ExitStatusSet *x, int code, int status) argument [all...] |
H A D | exit-status.h | 92 Set *status; member in struct:ExitStatusSet 96 const char* exit_status_to_string(ExitStatus status, ExitStatusLevel level) _const_; 98 bool is_clean_exit(int code, int status, ExitStatusSet *success_status); 99 bool is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status); 103 bool exit_status_set_test(ExitStatusSet *x, int code, int status);
|
H A D | process-util.c | 267 p = procfs_file_alloca(pid, "status"); 321 p = procfs_file_alloca(pid, "status"); 463 int wait_for_terminate(pid_t pid, siginfo_t *status) { argument 468 if (!status) 469 status = &dummy; 472 zero(*status); 474 if (waitid(P_PID, pid, status, WEXITED) < 0) { 502 siginfo_t status; local 507 r = wait_for_terminate(pid, &status); 511 if (status [all...] |
/systemd/src/libsystemd-network/ |
H A D | lldp-port.h | 41 LLDPPortStatus status; member in struct:lldp_port
|
H A D | dhcp6-option.c | 189 uint16_t opt, status; local 278 if (optlen < sizeof(status)) 281 status = (*buf)[0] << 8 | (*buf)[1]; 282 if (status) { 283 log_dhcp6_client(client, "IA status %d", 284 status);
|
H A D | lldp-tlv.c | 605 int sd_lldp_packet_read_link_aggregation(sd_lldp_packet *tlv, uint8_t *status, uint32_t *id) { argument 614 r = tlv_packet_read_u8(tlv, status);
|
H A D | sd-dhcp6-client.c | 677 uint16_t optcode, status; local 734 status = optval[0] << 8 | optval[1]; 735 if (status) { 738 dhcp6_message_status_to_string(status));
|
/systemd/src/core/ |
H A D | show-status.c | 24 #include "show-status.h" 48 int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) { argument 58 /* This is independent of logging, as status messages are 77 sl = status ? sizeof(status_indent)-1 : 0; 94 if (status) { 95 if (!isempty(status)) { 97 IOVEC_SET_STRING(iovec[n++], status); 113 int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) { argument 120 r = status_vprintf(status, ellipse, ephemeral, format, ap);
|
H A D | scope.c | 420 static void scope_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument
|
H A D | automount.c | 90 static int automount_send_ready(Automount *a, Set *tokens, int status); 402 static int autofs_send_ready(int dev_autofs_fd, int ioctl_fd, uint32_t token, int status) { argument 411 if (status) { 413 param.fail.status = status; 417 if (ioctl(dev_autofs_fd, status ? AUTOFS_DEV_IOCTL_FAIL : AUTOFS_DEV_IOCTL_READY, ¶m) < 0) 423 static int automount_send_ready(Automount *a, Set *tokens, int status) { argument 429 assert(status <= 0); 438 if (status) 439 log_unit_debug_errno(UNIT(a), status, "Sendin [all...] |
H A D | busname.c | 852 static void busname_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument 864 if (is_clean_exit(code, status, NULL)) 876 "Control process exited, code=%s status=%i", sigchld_code_to_string(code), status); 899 /* Notify clients about changed exit status */
|
H A D | swap.c | 30 #include "exit-status.h" 961 static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument 973 if (is_clean_exit(code, status, NULL)) 988 exec_status_exit(&s->control_command->exec_status, &s->exec_context, pid, code, status); 995 "Swap process exited, code=%s status=%i", sigchld_code_to_string(code), status); 1021 /* Notify clients about changed exit status */
|
/systemd/src/notify/ |
H A D | notify.c | 44 "Notify the init system about service status updates.\n\n" 49 " --status=TEXT Set status text\n" 69 { "status", required_argument, NULL, ARG_STATUS }, 135 _cleanup_free_ char *status = NULL, *cpid = NULL, *n = NULL; local 155 status = strappend("STATUS=", arg_status); 156 if (!status) { 161 our_env[i++] = status; 197 log_error("No status data could be sent: $NOTIFY_SOCKET was not set");
|
/systemd/src/shared/ |
H A D | pager.c | 176 siginfo_t status; local 217 r = wait_for_terminate(pid, &status); 221 log_debug("Exit code %i status %i", status.si_code, status.si_status); 222 return status.si_status;
|
H A D | utmp-wtmp.h | 35 int utmp_put_dead_process(const char *id, pid_t pid, int code, int status); 59 static inline int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) { argument
|
H A D | utmp-wtmp.c | 255 int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) { argument 277 store.ut_exit.e_exit = status;
|
/systemd/src/test/ |
H A D | test-capability.c | 48 int status; local 50 assert_se(waitpid(pid, &status, 0) > 0); 51 assert_se(WIFEXITED(status) && WEXITSTATUS(status) == 0);
|
H A D | test-process-util.c | 105 int status; local 107 waitpid(pid, &status, 0); 122 int status; local 124 waitpid(pid, &status, 0);
|
/systemd/src/fsck/ |
H A D | fsck.c | 156 arg_show_progress = access("/run/systemd/show-status", F_OK) >= 0; 280 siginfo_t status; local 451 r = wait_for_terminate(pid, &status); 457 if (status.si_code != CLD_EXITED || (status.si_status & ~1)) { 459 if (status.si_code == CLD_KILLED || status.si_code == CLD_DUMPED) 460 log_error("fsck terminated by signal %s.", signal_to_string(status.si_status)); 461 else if (status.si_code == CLD_EXITED) 462 log_error("fsck failed with error code %i.", status [all...] |
/systemd/src/import/ |
H A D | pull-job.c | 81 long status; local 96 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status); 101 } else if (status == 304) { 106 } else if (status >= 300) { 107 log_error("HTTP request to %s failed with code %li.", j->url, status); 110 } else if (status < 200) { 111 log_error("HTTP request to %s finished with unexpected code %li.", j->url, status);
|
/systemd/src/journal-remote/ |
H A D | microhttpd-util.c | 185 unsigned status; local 190 r = gnutls_certificate_verify_peers2(session, &status); 195 r = gnutls_certificate_verification_status_print(status, type, &out, 0); 199 log_debug("Certificate status: %s", out.data); 202 return status == 0 ? 0 : -EPERM;
|
H A D | journal-upload.c | 493 long status; local 508 code = curl_easy_getinfo(u->easy, CURLINFO_RESPONSE_CODE, &status); 515 if (status >= 300) { 517 u->url, status, strna(u->answer)); 519 } else if (status < 200) { 521 u->url, status, strna(u->answer)); 525 status, strna(u->answer));
|
/systemd/src/login/ |
H A D | logind-core.c | 477 const char *status, *enabled, *dash, *nn, *i; local 530 status = udev_device_get_sysattr_value(d, "status"); 531 if (!streq_ptr(status, "disconnected"))
|
/systemd/src/cryptsetup/ |
H A D | cryptsetup.c | 609 crypt_status_info status; local 650 status = crypt_status(cd, argv[2]); 651 if (status == CRYPT_ACTIVE || status == CRYPT_BUSY) {
|
/systemd/src/shared/linux/ |
H A D | auto_dev-ioctl.h | 52 __s32 status; member in struct:args_fail 146 /* Mount/expire status returns */ 163 /* Request busy status */
|