Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 772) sorted by relevance

12345678910>>...31

/systemd-251/src/libsystemd/sd-bus/
Dbus-creds.c33 void bus_creds_done(sd_bus_creds *c) { in bus_creds_done() argument
34 assert(c); in bus_creds_done()
39 free(c->session); in bus_creds_done()
40 free(c->unit); in bus_creds_done()
41 free(c->user_unit); in bus_creds_done()
42 free(c->slice); in bus_creds_done()
43 free(c->user_slice); in bus_creds_done()
44 free(c->unescaped_description); in bus_creds_done()
45 free(c->supplementary_gids); in bus_creds_done()
46 free(c->tty); in bus_creds_done()
[all …]
/systemd-251/src/test/
Dtest-cpu-set-util.c10 CPUSet c = {}; in TEST() local
15 assert_se(parse_cpu_set_full("0", &c, true, NULL, "fake", 1, "CPUAffinity") >= 0); in TEST()
16 assert_se(c.set); in TEST()
17 assert_se(c.allocated >= DIV_ROUND_UP(sizeof(__cpu_mask), 8)); in TEST()
18 assert_se(CPU_ISSET_S(0, c.allocated, c.set)); in TEST()
19 assert_se(CPU_COUNT_S(c.allocated, c.set) == 1); in TEST()
21 assert_se(str = cpu_set_to_string(&c)); in TEST()
24 assert_se(str = cpu_set_to_range_string(&c)); in TEST()
28 cpu_set_reset(&c); in TEST()
31 assert_se(parse_cpu_set_full("1 2 4", &c, true, NULL, "fake", 1, "CPUAffinity") >= 0); in TEST()
[all …]
Dmeson.build5 'test-hashmap-ordered.c',
6 input : [awkscript, 'test-hashmap-plain.c'],
7 output : 'test-hashmap-ordered.c',
14 path = run_command(sh, '-c', 'echo "$PATH"', check: true).stdout().strip()
24 'test-libsystemd-sym.c',
26 output : 'test-libsystemd-sym.c',
32 'test-libudev-sym.c',
34 output : 'test-libudev-sym.c',
39 test_dlopen_c = files('test-dlopen.c')
44 [files('test-device-nodes.c')],
[all …]
Dtest-calendarspec.c11 CalendarSpec *c; in _test_one() local
16 r = calendar_spec_from_string(input, &c); in _test_one()
21 assert_se(calendar_spec_to_string(c, &p) >= 0); in _test_one()
29 r = calendar_spec_next_usec(c, u, &u); in _test_one()
31 calendar_spec_free(c); in _test_one()
33 assert_se(calendar_spec_from_string(p, &c) >= 0); in _test_one()
34 assert_se(calendar_spec_to_string(c, &q) >= 0); in _test_one()
35 calendar_spec_free(c); in _test_one()
42 CalendarSpec *c; in _test_next() local
57 assert_se(calendar_spec_from_string(input, &c) >= 0); in _test_next()
[all …]
/systemd-251/src/journal/
Djournald-context.c105 _cleanup_free_ ClientContext *c = NULL; in client_context_new() local
116 c = new(ClientContext, 1); in client_context_new()
117 if (!c) in client_context_new()
120 *c = (ClientContext) { in client_context_new()
135 r = hashmap_ensure_put(&s->client_contexts, NULL, PID_TO_PTR(pid), c); in client_context_new()
139 *ret = TAKE_PTR(c); in client_context_new()
143 static void client_context_reset(Server *s, ClientContext *c) { in client_context_reset() argument
145 assert(c); in client_context_reset()
147 c->timestamp = USEC_INFINITY; in client_context_reset()
149 c->uid = UID_INVALID; in client_context_reset()
[all …]
Dmeson.build4 'journald-audit.c',
6 'journald-console.c',
8 'journald-context.c',
10 'journald-kmsg.c',
12 'journald-native.c',
14 'journald-rate-limit.c',
16 'journald-server.c',
18 'journald-stream.c',
20 'journald-syslog.c',
22 'journald-wall.c',
[all …]
/systemd-251/src/shared/
Dcalendarspec.c37 static CalendarComponent* chain_free(CalendarComponent *c) { in chain_free() argument
38 while (c) { in chain_free()
39 CalendarComponent *n = c->next; in chain_free()
40 free(c); in chain_free()
41 c = n; in chain_free()
48 CalendarSpec* calendar_spec_free(CalendarSpec *c) { in calendar_spec_free() argument
50 if (!c) in calendar_spec_free()
53 chain_free(c->year); in calendar_spec_free()
54 chain_free(c->month); in calendar_spec_free()
55 chain_free(c->day); in calendar_spec_free()
[all …]
Dcondition.c60 Condition *c; in condition_new() local
66 c = new(Condition, 1); in condition_new()
67 if (!c) in condition_new()
70 *c = (Condition) { in condition_new()
77 c->parameter = strdup(parameter); in condition_new()
78 if (!c->parameter) in condition_new()
79 return mfree(c); in condition_new()
82 return c; in condition_new()
85 Condition* condition_free(Condition *c) { in condition_free() argument
86 assert(c); in condition_free()
[all …]
Dmeson.build5 'acpi-fpdt.c',
7 'apparmor-util.c',
9 'ask-password-api.c',
11 'barrier.c',
13 'base-filesystem.c',
15 'binfmt-util.c',
17 'bitmap.c',
20 'blockdev-util.c',
22 'bond-util.c',
24 'boot-timestamps.c',
[all …]
/systemd-251/src/import/
Dimport-compress.c7 void import_compress_free(ImportCompress *c) { in import_compress_free() argument
8 assert(c); in import_compress_free()
10 if (c->type == IMPORT_COMPRESS_XZ) in import_compress_free()
11 lzma_end(&c->xz); in import_compress_free()
12 else if (c->type == IMPORT_COMPRESS_GZIP) { in import_compress_free()
13 if (c->encoding) in import_compress_free()
14 deflateEnd(&c->gzip); in import_compress_free()
16 inflateEnd(&c->gzip); in import_compress_free()
18 } else if (c->type == IMPORT_COMPRESS_BZIP2) { in import_compress_free()
19 if (c->encoding) in import_compress_free()
[all …]
/systemd-251/src/network/
Dmeson.build4 'netdev/bareudp.c',
6 'netdev/batadv.c',
8 'netdev/bond.c',
10 'netdev/bridge.c',
12 'netdev/dummy.c',
14 'netdev/fou-tunnel.c',
16 'netdev/geneve.c',
18 'netdev/ifb.c',
20 'netdev/ipoib.c',
22 'netdev/ipvlan.c',
[all …]
/systemd-251/src/locale/
Dtest-keymap-util.c46 Context c = {}; in TEST() local
49 c.x11_layout = (char*) "foobar"; in TEST()
50 assert_se(find_legacy_keymap(&c, &ans) == 0); in TEST()
53 c.x11_layout = (char*) "pl"; in TEST()
54 assert_se(find_legacy_keymap(&c, &ans) == 1); in TEST()
57 c.x11_layout = (char*) "pl,ru"; in TEST()
58 assert_se(find_legacy_keymap(&c, &ans2) == 1); in TEST()
63 _cleanup_(context_clear) Context c = {}; in TEST()
66 assert_se(free_and_strdup(&c.x11_layout, "foo") >= 0); in TEST()
67 assert_se(free_and_strdup(&c.x11_variant, "bar") >= 0); in TEST()
[all …]
Dkeymap-util.c56 static void context_free_x11(Context *c) { in context_free_x11() argument
57 c->x11_layout = mfree(c->x11_layout); in context_free_x11()
58 c->x11_options = mfree(c->x11_options); in context_free_x11()
59 c->x11_model = mfree(c->x11_model); in context_free_x11()
60 c->x11_variant = mfree(c->x11_variant); in context_free_x11()
63 static void context_free_vconsole(Context *c) { in context_free_vconsole() argument
64 c->vc_keymap = mfree(c->vc_keymap); in context_free_vconsole()
65 c->vc_keymap_toggle = mfree(c->vc_keymap_toggle); in context_free_vconsole()
68 static void context_free_locale(Context *c) { in context_free_locale() argument
70 c->locale[p] = mfree(c->locale[p]); in context_free_locale()
[all …]
/systemd-251/src/socket-proxy/
Dsocket-proxyd.c60 static void connection_free(Connection *c) { in connection_free() argument
61 assert(c); in connection_free()
63 if (c->context) in connection_free()
64 set_remove(c->context->connections, c); in connection_free()
66 sd_event_source_unref(c->server_event_source); in connection_free()
67 sd_event_source_unref(c->client_event_source); in connection_free()
69 safe_close(c->server_fd); in connection_free()
70 safe_close(c->client_fd); in connection_free()
72 safe_close_pair(c->server_to_client_buffer); in connection_free()
73 safe_close_pair(c->client_to_server_buffer); in connection_free()
[all …]
/systemd-251/src/libsystemd/sd-journal/
Dlookup3.c124 #define mix(a,b,c) \ argument
126 a -= c; a ^= rot(c, 4); c += b; \
127 b -= a; b ^= rot(a, 6); a += c; \
128 c -= b; c ^= rot(b, 8); b += a; \
129 a -= c; a ^= rot(c,16); c += b; \
130 b -= a; b ^= rot(a,19); a += c; \
131 c -= b; c ^= rot(b, 4); b += a; \
159 #define final(a,b,c) \ argument
161 c ^= b; c -= rot(b,14); \
162 a ^= c; a -= rot(c,11); \
[all …]
/systemd-251/src/udev/cdrom_id/
Dcdrom_id.c111 static void context_clear(Context *c) { in context_clear() argument
112 if (!c) in context_clear()
115 safe_close(c->fd); in context_clear()
116 free(c->drive_features); in context_clear()
119 static bool drive_has_feature(const Context *c, Feature f) { in drive_has_feature() argument
120 assert(c); in drive_has_feature()
122 for (size_t i = 0; i < c->n_drive_feature; i++) in drive_has_feature()
123 if (c->drive_features[i] == f) in drive_has_feature()
129 static int set_drive_feature(Context *c, Feature f) { in set_drive_feature() argument
130 assert(c); in set_drive_feature()
[all …]
/systemd-251/src/core/
Dmeson.build4 apparmor-setup.c
6 audit-fd.c
8 automount.c
10 bpf-devices.c
12 bpf-firewall.c
14 bpf-foreign.c
16 bpf-lsm.c
18 bpf-socket-bind.c
20 cgroup.c
22 core-varlink.c
[all …]
Ddbus-execute.c76 ExecContext *c = userdata; in property_get_environment_files() local
81 assert(c); in property_get_environment_files()
87 STRV_FOREACH(j, c->environment_files) { in property_get_environment_files()
107 ExecContext *c = userdata; in property_get_oom_score_adjust() local
112 assert(c); in property_get_oom_score_adjust()
114 if (c->oom_score_adjust_set) in property_get_oom_score_adjust()
115 n = c->oom_score_adjust; in property_get_oom_score_adjust()
135 ExecContext *c = userdata; in property_get_coredump_filter() local
141 assert(c); in property_get_coredump_filter()
143 if (c->coredump_filter_set) in property_get_coredump_filter()
[all …]
/systemd-251/hwdb.d/
D20-sdio-vendor-model.hwdb5 sdio:c*v0020*
8 sdio:c*v0020d2280*
11 sdio:c*v0089*
14 sdio:c*v0092*
17 sdio:c*v0092d0001*
20 sdio:c*v0092d0004*
23 sdio:c*v0092d0005*
26 sdio:c*v0092d5544*
29 sdio:c*v0097*
32 sdio:c*v0097d4076*
[all …]
/systemd-251/src/libsystemd/
Dmeson.build4 'sd-journal/audit-type.c',
6 'sd-journal/catalog.c',
9 'sd-journal/journal-file.c',
12 'sd-journal/journal-send.c',
14 'sd-journal/journal-vacuum.c',
16 'sd-journal/journal-verify.c',
18 'sd-journal/lookup3.c',
20 'sd-journal/mmap-cache.c',
22 'sd-journal/sd-journal.c',
27 'sd-journal/fsprg.c',
[all …]
/systemd-251/src/udev/
Dmeson.build4 'udevadm.c',
6 'udevadm-control.c',
7 'udevadm-hwdb.c',
8 'udevadm-info.c',
9 'udevadm-lock.c',
10 'udevadm-monitor.c',
11 'udevadm-settle.c',
12 'udevadm-test.c',
13 'udevadm-test-builtin.c',
14 'udevadm-trigger.c',
[all …]
/systemd-251/src/libsystemd-network/
Dmeson.build4 'arp-util.c',
7 'dhcp-identifier.c',
11 'dhcp-network.c',
12 'dhcp-option.c',
13 'dhcp-packet.c',
18 'dhcp6-network.c',
19 'dhcp6-option.c',
21 'dhcp6-protocol.c',
23 'icmp6-util.c',
25 'lldp-neighbor.c',
[all …]
/systemd-251/src/hostname/
Dhostnamed.c79 static void context_reset(Context *c, uint64_t mask) { in context_reset() argument
80 assert(c); in context_reset()
86 c->data[p] = mfree(c->data[p]); in context_reset()
90 static void context_destroy(Context *c) { in context_destroy() argument
91 assert(c); in context_destroy()
93 context_reset(c, UINT64_MAX); in context_destroy()
94 bus_verify_polkit_async_registry_free(c->polkit_registry); in context_destroy()
97 static void context_read_etc_hostname(Context *c) { in context_read_etc_hostname() argument
101 assert(c); in context_read_etc_hostname()
104 stat_inode_unmodified(&c->etc_hostname_stat, &current_stat)) in context_read_etc_hostname()
[all …]
/systemd-251/src/basic/
Dmeson.build4 'MurmurHash2.c',
6 'af-list.c',
8 'alloc-util.c',
10 'architecture.c',
12 'arphrd-util.c',
14 'async.c',
16 'audit-util.c',
18 'build.c',
20 'bus-label.c',
22 'cap-list.c',
[all …]
/systemd-251/src/network/tc/
Dcake.c16 CommonApplicationsKeptEnhanced *c; in cake_init() local
20 c = CAKE(qdisc); in cake_init()
22 c->autorate = -1; in cake_init()
23 c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID; in cake_init()
24 c->raw = -1; in cake_init()
25 c->flow_isolation_mode = _CAKE_FLOW_ISOLATION_MODE_INVALID; in cake_init()
26 c->nat = -1; in cake_init()
27 c->preset = _CAKE_PRESET_INVALID; in cake_init()
28 c->wash = -1; in cake_init()
29 c->split_gso = -1; in cake_init()
[all …]

12345678910>>...31