Home
last modified time | relevance | path

Searched refs:e (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/systemd-251/src/import/
Dexport-tar.c53 TarExport *tar_export_unref(TarExport *e) { in tar_export_unref() argument
54 if (!e) in tar_export_unref()
57 sd_event_source_unref(e->output_event_source); in tar_export_unref()
59 if (e->tar_pid > 1) in tar_export_unref()
60 sigkill_wait(e->tar_pid); in tar_export_unref()
62 if (e->temp_path) { in tar_export_unref()
63 (void) btrfs_subvol_remove(e->temp_path, BTRFS_REMOVE_QUOTA); in tar_export_unref()
64 free(e->temp_path); in tar_export_unref()
67 import_compress_free(&e->compress); in tar_export_unref()
69 sd_event_unref(e->event); in tar_export_unref()
[all …]
Dexport-raw.c61 RawExport *raw_export_unref(RawExport *e) { in raw_export_unref() argument
62 if (!e) in raw_export_unref()
65 sd_event_source_unref(e->output_event_source); in raw_export_unref()
67 import_compress_free(&e->compress); in raw_export_unref()
69 sd_event_unref(e->event); in raw_export_unref()
71 safe_close(e->input_fd); in raw_export_unref()
73 free(e->buffer); in raw_export_unref()
74 free(e->path); in raw_export_unref()
75 return mfree(e); in raw_export_unref()
84 _cleanup_(raw_export_unrefp) RawExport *e = NULL; in raw_export_new()
[all …]
/systemd-251/src/libsystemd/sd-bus/
Dbus-error.c195 bool bus_error_is_dirty(sd_bus_error *e) { in bus_error_is_dirty() argument
196 if (!e) in bus_error_is_dirty()
199 return e->name || e->message || e->_need_free != 0; in bus_error_is_dirty()
202 _public_ void sd_bus_error_free(sd_bus_error *e) { in sd_bus_error_free() argument
203 if (!e) in sd_bus_error_free()
206 if (e->_need_free > 0) { in sd_bus_error_free()
207 free((void*) e->name); in sd_bus_error_free()
208 free((void*) e->message); in sd_bus_error_free()
211 *e = SD_BUS_ERROR_NULL; in sd_bus_error_free()
214 _public_ int sd_bus_error_set(sd_bus_error *e, const char *name, const char *message) { in sd_bus_error_set() argument
[all …]
/systemd-251/coccinelle/
Dsynthetic-errno.cocci3 expression e;
12 - return -e;
13 + return log_debug_errno(SYNTHETIC_ERRNO(e), args);
16 expression e;
25 - return -e;
26 + return log_info_errno(SYNTHETIC_ERRNO(e), args);
29 expression e;
33 - return -e;
34 + return log_notice_errno(SYNTHETIC_ERRNO(e), args);
36 expression e;
[all …]
Dnot_in_set.cocci4 expression e;
10 - e != n0 && e != n1 && e != n2 && e != n3 && e != n4 && e != n5
11 + !IN_SET(e, n0, n1, n2, n3, n4, n5)
13 - e != n0 && e != n1 && e != n2 && e != n3 && e != n4
14 + !IN_SET(e, n0, n1, n2, n3, n4)
16 - e != n0 && e != n1 && e != n2 && e != n3
17 + !IN_SET(e, n0, n1, n2, n3)
19 - e != n0 && e != n1 && e != n2
20 + !IN_SET(e, n0, n1, n2)
22 - e != n0 && e != n1
[all …]
Din_set.cocci4 expression e;
12 - e == n0 || e == n1 || e == n2 || e == n3 || e == n4 || e == n5
13 + IN_SET(e, n0, n1, n2, n3, n4, n5)
15 - e == n0 || e == n1 || e == n2 || e == n3 || e == n4
16 + IN_SET(e, n0, n1, n2, n3, n4)
18 - e == n0 || e == n1 || e == n2 || e == n3
19 + IN_SET(e, n0, n1, n2, n3)
21 - e == n0 || e == n1 || e == n2
22 + IN_SET(e, n0, n1, n2)
24 - e == n0 || e == n1
[all …]
Derrno.cocci5 expression e;
7 - r = -e;
9 log_LEVEL_errno(e, ...);
13 expression e;
16 log_LEVEL_errno(e, ...);
17 - r = -e;
21 expression e;
25 log_LEVEL_errno(e, ...);
36 expression e;
39 log_LEVEL_errno(e, ...);
[all …]
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c162 static void event_gc_inode_data(sd_event *e, struct inode_data *d);
164 static sd_event *event_resolve(sd_event *e) { in event_resolve() argument
165 return e == SD_EVENT_DEFAULT ? default_event : e; in event_resolve()
320 static sd_event *event_free(sd_event *e) { in event_free() argument
323 assert(e); in event_free()
325 while ((s = e->sources)) { in event_free()
331 assert(e->n_sources == 0); in event_free()
333 if (e->default_event_ptr) in event_free()
334 *(e->default_event_ptr) = NULL; in event_free()
336 safe_close(e->epoll_fd); in event_free()
[all …]
Dtest-event.c199 sd_event *e = NULL; in test_basic_one() local
215 assert_se(sd_event_default(&e) >= 0); in test_basic_one()
216 assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0); in test_basic_one()
218 assert_se(sd_event_set_watchdog(e, true) >= 0); in test_basic_one()
222 assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0); in test_basic_one()
224 assert_se(sd_event_run(e, UINT64_MAX) >= 1); in test_basic_one()
231 assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0); in test_basic_one()
234 assert_se(sd_event_run(e, UINT64_MAX) >= 1); in test_basic_one()
237 assert_se(sd_event_run(e, UINT64_MAX) >= 1); in test_basic_one()
240 assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0); in test_basic_one()
[all …]
/systemd-251/src/shared/
Dimport-util.c44 const char *e, *p, *h; in import_url_last_component() local
53 e = h + strcspn(h, "?#"); /* Cut off "Query" and "Fragment" */ in import_url_last_component()
55 while (e > h && e[-1] == '/') /* Eat trailing slashes */ in import_url_last_component()
56 e--; in import_url_last_component()
58 p = e; in import_url_last_component()
62 if (e <= p) /* Empty component? */ in import_url_last_component()
68 s = strndup(p, e - p); in import_url_last_component()
84 const char *e, *h; in import_url_change_suffix() local
103 e = h + strcspn(h, "?#"); /* Cut off "Query" and "Fragment" */ in import_url_change_suffix()
105 while (e > h && e[-1] == '/') /* Eat trailing slashes */ in import_url_change_suffix()
[all …]
Dxml.c42 const char *c, *e, *b; in xml_tokenize() local
69 e = strchrnul(c, '<'); in xml_tokenize()
70 if (e > c) { in xml_tokenize()
72 ret = strndup(c, e - c); in xml_tokenize()
76 inc_lines(line, c, e - c); in xml_tokenize()
79 *p = e; in xml_tokenize()
85 assert(*e == '<'); in xml_tokenize()
90 e = strstr(b + 3, "-->"); in xml_tokenize()
91 if (!e) in xml_tokenize()
94 inc_lines(line, b, e + 3 - b); in xml_tokenize()
[all …]
Dgpt.h11 #define GPT_ROOT_ALPHA SD_ID128_MAKE(65,23,f8,ae,3e,b1,4e,2a,a0,5a,18,b6,95,ae,65,6f)
13 #define GPT_ROOT_ARM SD_ID128_MAKE(69,da,d7,10,2c,e4,4e,3c,b1,6c,21,a1,d4,9a,be,d3)
15 #define GPT_ROOT_IA64 SD_ID128_MAKE(99,3d,8d,3d,f8,0e,42,25,85,5a,9d,af,8e,d7,ea,97)
17 #define GPT_ROOT_MIPS_LE SD_ID128_MAKE(37,c5,8c,8a,d9,13,41,56,a2,5f,48,b1,b6,4e,07,f0)
20 #define GPT_ROOT_PPC64 SD_ID128_MAKE(91,2a,de,1d,a8,39,49,13,89,64,a1,0e,ee,08,fb,d2)
21 #define GPT_ROOT_PPC64_LE SD_ID128_MAKE(c3,1c,45,e6,3f,39,41,2e,80,fb,48,09,c4,98,05,99)
22 #define GPT_ROOT_RISCV32 SD_ID128_MAKE(60,d5,a7,fe,8e,7d,43,5c,b7,14,3d,d8,16,21,44,e1)
24 #define GPT_ROOT_S390 SD_ID128_MAKE(08,a7,ac,ea,62,4c,4a,20,91,e8,6e,0f,a6,7d,23,f9)
25 #define GPT_ROOT_S390X SD_ID128_MAKE(5e,ea,d9,a9,fe,09,4a,1e,a1,d7,52,0d,00,53,13,06)
33 #define GPT_USR_IA64 SD_ID128_MAKE(43,01,d2,a6,4e,3b,4b,2a,bb,94,9e,0b,2c,42,25,ea)
[all …]
Dbootspec.c1083 const BootEntry *e, in show_boot_entry() argument
1093 assert(e); in show_boot_entry()
1096 boot_entry_type_to_string(e->type)); in show_boot_entry()
1099 ansi_highlight(), boot_entry_title(e), ansi_normal()); in show_boot_entry()
1110 if (e->type == BOOT_ENTRY_LOADER) in show_boot_entry()
1113 else if (!e->reported_by_loader && e->type != BOOT_ENTRY_LOADER_AUTO) in show_boot_entry()
1120 if (e->id) in show_boot_entry()
1121 printf(" id: %s\n", e->id); in show_boot_entry()
1122 if (e->path) { in show_boot_entry()
1127 if (e->type == BOOT_ENTRY_CONF) in show_boot_entry()
[all …]
/systemd-251/src/basic/
Denv-util.c28 static bool env_name_is_valid_n(const char *e, size_t n) { in env_name_is_valid_n() argument
29 if (!e) in env_name_is_valid_n()
35 if (e[0] >= '0' && e[0] <= '9') in env_name_is_valid_n()
46 for (const char *p = e; p < e + n; p++) in env_name_is_valid_n()
53 bool env_name_is_valid(const char *e) { in env_name_is_valid() argument
54 return env_name_is_valid_n(e, strlen_ptr(e)); in env_name_is_valid()
57 bool env_value_is_valid(const char *e) { in env_value_is_valid() argument
58 if (!e) in env_value_is_valid()
61 if (!utf8_is_valid(e)) in env_value_is_valid()
71 if (strlen(e) > sc_arg_max() - 3) in env_value_is_valid()
[all …]
Dinotify-util.h13 #define _FOREACH_INOTIFY_EVENT(e, buffer, sz, log_level, start, end) \ argument
17 *e = start; \
18 (size_t) ((uint8_t*) end - (uint8_t*) e) >= sizeof(struct inotify_event) && \
19 ((size_t) ((uint8_t*) end - (uint8_t*) e) >= sizeof(struct inotify_event) + e->len || \
21 e = (struct inotify_event*) ((uint8_t*) e + sizeof(struct inotify_event) + e->len))
23 #define _FOREACH_INOTIFY_EVENT_FULL(e, buffer, sz, log_level) \ argument
24 _FOREACH_INOTIFY_EVENT(e, buffer, sz, log_level, UNIQ_T(start, UNIQ), UNIQ_T(end, UNIQ))
26 #define FOREACH_INOTIFY_EVENT(e, buffer, sz) \ argument
27 _FOREACH_INOTIFY_EVENT_FULL(e, buffer, sz, LOG_DEBUG)
29 #define FOREACH_INOTIFY_EVENT_WARN(e, buffer, sz) \ argument
[all …]
Dlog.c233 const char *e; in stderr_is_journal() local
237 e = getenv("JOURNAL_STREAM"); in stderr_is_journal()
238 if (!e) in stderr_is_journal()
241 if (extract_first_word(&e, &w, ":", EXTRACT_DONT_COALESCE_SEPARATORS) <= 0) in stderr_is_journal()
243 if (!e) in stderr_is_journal()
248 if (safe_atou64(e, &ino) < 0) in stderr_is_journal()
666 char *e; in log_dispatch_internal() local
674 if ((e = strpbrk(buffer, NEWLINE))) in log_dispatch_internal()
675 *(e++) = 0; in log_dispatch_internal()
713 buffer = e; in log_dispatch_internal()
[all …]
Dhashmap.c118 struct ordered_hashmap_entry e[_IDX_SWAP_END - _IDX_SWAP_BEGIN]; member
392 return &swap->e[idx - _IDX_SWAP_BEGIN]; in bucket_at_swap()
506 static void* entry_value(HashmapBase *h, struct hashmap_base_entry *e) { in entry_value() argument
511 return ((struct plain_hashmap_entry*)e)->value; in entry_value()
514 return (void*) e->key; in entry_value()
577 struct ordered_hashmap_entry *e; in hashmap_iterate_in_insertion_order() local
591 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
594 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
601 if (e->p.b.key != i->next_key) { in hashmap_iterate_in_insertion_order()
603 e = ordered_bucket_at(h, idx); in hashmap_iterate_in_insertion_order()
[all …]
/systemd-251/src/systemd/
Dsd-messages.h35 …ne SD_MESSAGE_JOURNAL_DROPPED SD_ID128_MAKE(a5,96,d6,fe,7b,fa,49,94,82,8e,72,30,9e,95,d6,1e)
36 …D_MESSAGE_JOURNAL_DROPPED_STR SD_ID128_MAKE_STR(a5,96,d6,fe,7b,fa,49,94,82,8e,72,30,9e,95,d6,1e)
42 #define SD_MESSAGE_COREDUMP SD_ID128_MAKE(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,a2,5…
43 #define SD_MESSAGE_COREDUMP_STR SD_ID128_MAKE_STR(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,…
44 #define SD_MESSAGE_TRUNCATED_CORE SD_ID128_MAKE(5a,ad,d8,e9,54,dc,4b,1a,8c,95,4d,63,fd,9e,1…
45 …D_MESSAGE_TRUNCATED_CORE_STR SD_ID128_MAKE_STR(5a,ad,d8,e9,54,dc,4b,1a,8c,95,4d,63,fd,9e,11,37)
46 #define SD_MESSAGE_BACKTRACE SD_ID128_MAKE(1f,4e,0a,44,a8,86,49,93,9a,ae,a3,4f,c6,da,8…
47 #define SD_MESSAGE_BACKTRACE_STR SD_ID128_MAKE_STR(1f,4e,0a,44,a8,86,49,93,9a,ae,a3,4f,c6,…
55 #define SD_MESSAGE_SEAT_STOP SD_ID128_MAKE(e7,85,2b,fe,46,78,4e,d0,ac,cd,e0,4b,c8,64,c…
56 #define SD_MESSAGE_SEAT_STOP_STR SD_ID128_MAKE_STR(e7,85,2b,fe,46,78,4e,d0,ac,cd,e0,4b,c8,…
[all …]
Dsd-event.h83 int sd_event_default(sd_event **e);
85 int sd_event_new(sd_event **e);
86 sd_event* sd_event_ref(sd_event *e);
87 sd_event* sd_event_unref(sd_event *e);
89 int sd_event_add_io(sd_event *e, sd_event_source **s, int fd, uint32_t events, sd_event_io_handler_…
90 int sd_event_add_time(sd_event *e, sd_event_source **s, clockid_t clock, uint64_t usec, uint64_t ac…
91 int sd_event_add_time_relative(sd_event *e, sd_event_source **s, clockid_t clock, uint64_t usec, ui…
92 int sd_event_add_signal(sd_event *e, sd_event_source **s, int sig, sd_event_signal_handler_t callba…
93 int sd_event_add_child(sd_event *e, sd_event_source **s, pid_t pid, int options, sd_event_child_han…
94 int sd_event_add_child_pidfd(sd_event *e, sd_event_source **s, int pidfd, int options, sd_event_chi…
[all …]
/systemd-251/test/units/
Dtestsuite-22.02.sh8 rm -fr /tmp/{C,d,D,e}
9 mkdir /tmp/{C,d,D,e}
56 mkdir -p /tmp/e/2/{d1,d2}
57 chmod 777 /tmp/e/2
58 chmod 777 /tmp/e/2/d*
61 e /tmp/e/1 0755 daemon daemon - -
62 e /tmp/e/2/* 0755 daemon daemon - -
65 test ! -d /tmp/e/1
67 test -d /tmp/e/2
70 test -d /tmp/e/2/d1
[all …]
/systemd-251/src/journal/
Djournald-audit.c29 const char *e; in map_simple_field() local
42 for (e = *p; !IN_SET(*e, 0, ' '); e++) { in map_simple_field()
46 c[l++] = *e; in map_simple_field()
53 *p = e; in map_simple_field()
67 const char *s, *e; in map_string_field_internal() local
80 e = strchr(s, '"'); in map_string_field_internal()
81 if (!e) in map_string_field_internal()
84 l = strlen(field) + (e - s); in map_string_field_internal()
89 *((char*) mempcpy(stpcpy(c, field), s, e - s)) = 0; in map_string_field_internal()
91 e += 1; in map_string_field_internal()
[all …]
Djournald-kmsg.c107 char *e, *f, *k; in dev_kmsg_record() local
119 e = memchr(p, ',', l); in dev_kmsg_record()
120 if (!e) in dev_kmsg_record()
122 *e = 0; in dev_kmsg_record()
131 l -= (e - p) + 1; in dev_kmsg_record()
132 p = e + 1; in dev_kmsg_record()
133 e = memchr(p, ',', l); in dev_kmsg_record()
134 if (!e) in dev_kmsg_record()
136 *e = 0; in dev_kmsg_record()
162 l -= (e - p) + 1; in dev_kmsg_record()
[all …]
Djournald-native.c119 const char *e, *q; in server_process_entry() local
121 e = memchr(p, '\n', *remaining); in server_process_entry()
123 if (!e) { in server_process_entry()
129 if (e == p) { in server_process_entry()
137 *remaining -= (e - p) + 1; in server_process_entry()
138 p = e + 1; in server_process_entry()
157 q = memchr(p, '=', e - p); in server_process_entry()
162 l = e - p; in server_process_entry()
186 *remaining -= (e - p) + 1; in server_process_entry()
187 p = e + 1; in server_process_entry()
[all …]
/systemd-251/src/libudev/
Dtest-libudev.c350 struct udev_list_entry *e; in test_list() local
362 e = udev_list_get_entry(list); in test_list()
363 assert_se(e); in test_list()
364 assert_se(streq_ptr(udev_list_entry_get_name(e), "aaa")); in test_list()
365 assert_se(streq_ptr(udev_list_entry_get_value(e), "hoge")); in test_list()
366 e = udev_list_entry_get_next(e); in test_list()
367 assert_se(e); in test_list()
368 assert_se(streq_ptr(udev_list_entry_get_name(e), "aaa")); in test_list()
369 assert_se(streq_ptr(udev_list_entry_get_value(e), "hogehoge")); in test_list()
370 e = udev_list_entry_get_next(e); in test_list()
[all …]
/systemd-251/src/libsystemd-network/
Dtest-lldp-rx.c37 static int start_lldp_rx(sd_lldp_rx **lldp_rx, sd_event *e, sd_lldp_rx_callback_t cb, void *cb_data… in start_lldp_rx() argument
52 r = sd_lldp_rx_attach_event(*lldp_rx, e, 0); in start_lldp_rx()
80 static void test_receive_basic_packet(sd_event *e) { in test_receive_basic_packet() argument
108 assert_se(start_lldp_rx(&lldp_rx, e, lldp_rx_handler, NULL) == 0); in test_receive_basic_packet()
111 sd_event_run(e, 0); in test_receive_basic_packet()
143 static void test_receive_incomplete_packet(sd_event *e) { in test_receive_incomplete_packet() argument
160 assert_se(start_lldp_rx(&lldp_rx, e, lldp_rx_handler, NULL) == 0); in test_receive_incomplete_packet()
163 sd_event_run(e, 0); in test_receive_incomplete_packet()
170 static void test_receive_oui_packet(sd_event *e) { in test_receive_oui_packet() argument
201 assert_se(start_lldp_rx(&lldp_rx, e, lldp_rx_handler, NULL) == 0); in test_receive_oui_packet()
[all …]

12345678910>>...19