Searched defs:code (Results 1 - 25 of 33) sorted by relevance

12

/systemd/src/basic/
H A Dexit-status.c185 bool is_clean_exit(int code, int status, ExitStatusSet *success_status) { argument
187 if (code == CLD_EXITED)
194 if (code == CLD_KILLED)
206 bool is_clean_exit_lsb(int code, int status, ExitStatusSet *success_status) { argument
208 if (is_clean_exit(code, status, success_status))
212 code == CLD_EXITED &&
231 bool exit_status_set_test(ExitStatusSet *x, int code, int status) { argument
236 if (code == CLD_EXITED && set_contains(x->status, INT_TO_PTR(status)))
239 if (IN_SET(code, CLD_KILLED, CLD_DUMPED) && set_contains(x->signal, INT_TO_PTR(status)))
/systemd/src/libsystemd-network/
H A Ddhcp-option.c31 uint8_t code, size_t optlen, const void *optval) {
35 if (code != SD_DHCP_OPTION_END)
39 switch (code) {
46 options[*offset] = code;
54 options[*offset] = code;
73 uint8_t code, size_t optlen, const void *optval) {
86 r = option_append(message->options, size, offset, code, optlen, optval);
106 r = option_append(message->file, sizeof(message->file), &file_offset, code, optlen, optval);
128 r = option_append(message->sname, sizeof(message->sname), &sname_offset, code, optlen, optval);
145 uint8_t code, le local
30 option_append(uint8_t options[], size_t size, size_t *offset, uint8_t code, size_t optlen, const void *optval) argument
71 dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, uint8_t code, size_t optlen, const void *optval) argument
[all...]
H A Dtest-dhcp-server.c90 uint8_t code; member in struct:__anon196::__anon197
95 uint8_t code; member in struct:__anon196::__anon198
100 uint8_t code; member in struct:__anon196::__anon199
105 uint8_t code; member in struct:__anon196::__anon200
116 .option_type.code = SD_DHCP_OPTION_MESSAGE_TYPE,
138 test.option_type.code = 0;
142 test.option_type.code = SD_DHCP_OPTION_MESSAGE_TYPE;
164 test.option_requested_ip.code = SD_DHCP_OPTION_REQUESTED_IP_ADDRESS;
168 test.option_server_id.code = SD_DHCP_OPTION_SERVER_IDENTIFIER;
183 test.option_client_id.code
[all...]
H A Ddhcp6-option.c39 be16_t code; member in struct:DHCP6Option
55 option->code = htobe16(optcode);
64 int dhcp6_option_append(uint8_t **buf, size_t *buflen, uint16_t code, argument
70 r = option_append_hdr(buf, buflen, code, optlen);
157 *optcode = be16toh(option->code);
H A Dtest-dhcp-client.c121 static int check_options(uint8_t code, uint8_t len, const void *option, void *userdata) { argument
122 switch(code) {
H A Dtest-dhcp-option.c145 static int test_options_cb(uint8_t code, uint8_t len, const void *option, void *userdata) { argument
153 assert_se((!desc && !code && !len) || desc);
158 assert_se(code != SD_DHCP_OPTION_PAD);
159 assert_se(code != SD_DHCP_OPTION_END);
160 assert_se(code != SD_DHCP_OPTION_MESSAGE_TYPE);
161 assert_se(code != SD_DHCP_OPTION_OVERLOAD);
198 printf("DHCP code %2d(%2d) len %2d(%2d) ", code, optcode,
201 assert_se(code == optcode);
H A Dsd-dhcp-lease.c512 int dhcp_lease_parse_options(uint8_t code, uint8_t len, const void *option, void *userdata) { argument
518 switch(code) {
668 r = dhcp_lease_insert_private_option(lease, code, option, len);
675 log_debug("Ignoring option DHCP option %"PRIu8" while parsing.", code);
H A Dsd-dhcp-server.c591 static int parse_request(uint8_t code, uint8_t len, const void *option, void *userdata) { argument
596 switch(code) {
/systemd/src/shared/
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
276 store.ut_exit.e_termination = code;
/systemd/src/journal/
H A Dtest-catalog.c47 static Hashmap * test_import(const char* contents, ssize_t size, int code) { argument
63 assert_se(r == code);
/systemd/src/core/
H A Dscope.c420 static void scope_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument
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))
866 else if (code == CLD_EXITED)
868 else if (code == CLD_KILLED)
870 else if (code == CLD_DUMPED)
873 assert_not_reached("Unknown sigchld code");
876 "Control process exited, code=%s status=%i", sigchld_code_to_string(code), status);
1006 [BUSNAME_FAILURE_EXIT_CODE] = "exit-code",
H A Dswap.c961 static void swap_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument
973 if (is_clean_exit(code, status, NULL))
975 else if (code == CLD_EXITED)
977 else if (code == CLD_KILLED)
979 else if (code == CLD_DUMPED)
982 assert_not_reached("Unknown code");
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);
1441 [SWAP_FAILURE_EXIT_CODE] = "exit-code",
[all...]
H A Ddbus-manager.c1421 uint8_t code; local
1432 r = sd_bus_message_read_basic(message, 'y', &code);
1439 m->return_value = code;
H A Dexecute.h76 int code; /* as in siginfo_t::si_code */ member in struct:ExecStatus
278 void exec_status_exit(ExecStatus *s, ExecContext *context, pid_t pid, int code, int status);
H A Dmount.c1130 static void mount_sigchld_event(Unit *u, pid_t pid, int code, int status) { argument
1142 if (is_clean_exit(code, status, NULL))
1144 else if (code == CLD_EXITED)
1146 else if (code == CLD_KILLED)
1148 else if (code == CLD_DUMPED)
1151 assert_not_reached("Unknown code");
1157 exec_status_exit(&m->control_command->exec_status, &m->exec_context, pid, code, status);
1164 "Mount process exited, code=%s status=%i", sigchld_code_to_string(code), status);
1797 [MOUNT_FAILURE_EXIT_CODE] = "exit-code",
[all...]
/systemd/src/import/
H A Dpull-job.c80 CURLcode code; local
96 code = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &status);
97 if (code != CURLE_OK) {
98 log_error("Failed to retrieve response code: %s", curl_easy_strerror(code));
107 log_error("HTTP request to %s failed with code %li.", j->url, status);
111 log_error("HTTP request to %s finished with unexpected code %li.", j->url, status);
/systemd/src/journal-remote/
H A Dmicrohttpd-util.c50 enum MHD_RequestTerminationCode code,
63 log_debug("Queing response %u: %s", code, buffer);
65 r = MHD_queue_response(connection, code, response);
72 enum MHD_RequestTerminationCode code,
75 return mhd_respond_internal(connection, code,
85 enum MHD_RequestTerminationCode code,
102 return mhd_respond_internal(connection, code, m, r, MHD_RESPMEM_MUST_FREE);
264 int check_permissions(struct MHD_Connection *connection, int *code, char **hostname) { argument
272 assert(code);
274 *code
49 mhd_respond_internal(struct MHD_Connection *connection, enum MHD_RequestTerminationCode code, char *buffer, size_t size, enum MHD_ResponseMemoryMode mode) argument
71 mhd_respond(struct MHD_Connection *connection, enum MHD_RequestTerminationCode code, const char *message) argument
84 mhd_respondf(struct MHD_Connection *connection, enum MHD_RequestTerminationCode code, const char *format, ...) argument
318 check_permissions(struct MHD_Connection *connection, int *code, char **hostname) argument
[all...]
H A Djournal-upload.c71 code = curl_easy_setopt(curl, opt, value); \
72 if (code) { \
75 curl_easy_strerror(code)); \
189 CURLcode code; local
286 code = curl_easy_setopt(u->easy, CURLOPT_URL, u->url);
287 if (code) {
289 curl_easy_strerror(code));
492 CURLcode code; local
497 code = curl_easy_perform(u->easy);
498 if (code) {
[all...]
H A Djournal-gatewayd.c833 int r, code; local
852 r = check_permissions(connection, &code, NULL);
854 return code;
/systemd/src/systemd/
H A Dsd-bus.h51 int code; member in struct:__anon290
395 .code = _code, \
400 .code = - 'x', \
/systemd/src/test/
H A Dtest-cgroup-util.c32 static void check_p_d_u(const char *path, int code, const char *result) { argument
37 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, result, code);
38 assert_se(r == code);
54 static void check_p_g_u(const char *path, int code, const char *result) { argument
59 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, result, code);
60 assert_se(r == code);
78 static void check_p_g_u_u(const char *path, int code, const char *result) { argument
83 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, result, code);
84 assert_se(r == code);
104 static void check_p_g_s(const char *path, int code, cons argument
118 check_p_g_o_u(const char *path, int code, uid_t result) argument
131 check_p_g_slice(const char *path, int code, const char *result) argument
148 check_p_g_u_slice(const char *path, int code, const char *result) argument
[all...]
/systemd/src/libudev/
H A Dlibudev-monitor.c257 unsigned short code, unsigned int data)
261 ins->code = code;
267 unsigned short code, unsigned int data,
272 ins->code = code;
256 bpf_stmt(struct sock_filter *inss, unsigned int *i, unsigned short code, unsigned int data) argument
266 bpf_jmp(struct sock_filter *inss, unsigned int *i, unsigned short code, unsigned int data, unsigned short jt, unsigned short jf) argument
/systemd/src/udev/scsi_id/
H A Dscsi_serial.c80 * Values returned in the result/status, only the ones used by the code
179 int code; local
206 code = sense_buffer[0] & 0xf;
218 if ((code == 0x0) || (code == 0x1)) {
230 } else if ((code == 0x2) || (code == 0x3)) {
235 log_debug("%s: invalid sense code 0x%x",
236 dev_scsi->kernel, code);
253 log_debug("%s: non-extended sense class %d code
[all...]

Completed in 2281 milliseconds

12