Searched defs:status (Results 1 - 25 of 41) sorted by relevance

12

/systemd/src/basic/
H A Dexit-status.c23 #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 Dexit-status.h92 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 Dprocess-util.c267 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 Dlldp-port.h41 LLDPPortStatus status; member in struct:lldp_port
H A Ddhcp6-option.c189 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 Dlldp-tlv.c605 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 Dsd-dhcp6-client.c677 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 Dshow-status.c24 #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 Dscope.c420 static void scope_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument
H A Dautomount.c90 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, &param) < 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 Dbusname.c852 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 Dswap.c30 #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 Dnotify.c44 "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 Dpager.c176 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 Dutmp-wtmp.h35 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 Dutmp-wtmp.c255 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 Dtest-capability.c48 int status; local
50 assert_se(waitpid(pid, &status, 0) > 0);
51 assert_se(WIFEXITED(status) && WEXITSTATUS(status) == 0);
H A Dtest-process-util.c105 int status; local
107 waitpid(pid, &status, 0);
122 int status; local
124 waitpid(pid, &status, 0);
/systemd/src/fsck/
H A Dfsck.c156 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 Dpull-job.c81 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 Dmicrohttpd-util.c185 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 Djournal-upload.c493 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 Dlogind-core.c477 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 Dcryptsetup.c609 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 Dauto_dev-ioctl.h52 __s32 status; member in struct:args_fail
146 /* Mount/expire status returns */
163 /* Request busy status */

Completed in 56 milliseconds

12