Searched defs:id (Results 1 - 25 of 100) sorted by relevance

1234

/systemd/src/basic/
H A Dlogin-util.c25 bool session_id_valid(const char *id) { argument
27 if (isempty(id))
30 return id[strspn(id, LETTERS DIGITS)] == '\0';
H A Daf-list.c31 const char *af_to_name(int id) { argument
33 if (id <= 0)
36 if (id >= (int) ELEMENTSOF(af_names))
39 return af_names[id];
51 return sc->id;
H A Darphrd-list.c31 const char *arphrd_to_name(int id) { argument
33 if (id <= 0)
36 if (id >= (int) ELEMENTSOF(arphrd_names))
39 return arphrd_names[id];
51 return sc->id;
H A Derrno-list.c31 const char *errno_to_name(int id) { argument
33 if (id < 0)
34 id = -id;
36 if (id >= (int) ELEMENTSOF(errno_names))
39 return errno_names[id];
51 assert(sc->id > 0);
52 return sc->id;
H A Dcap-list.c34 const char *capability_to_name(int id) { argument
36 if (id < 0)
39 if (id >= (int) ELEMENTSOF(capability_names))
42 return capability_names[id];
61 return sc->id;
H A Daudit-util.c34 int audit_session_from_pid(pid_t pid, uint32_t *id) { argument
40 assert(id);
60 *id = u;
/systemd/src/network/
H A Dnetworkd-netdev-vlan.h31 uint64_t id; member in struct:VLan
H A Dnetworkd-netdev-vxlan.h32 uint64_t id; member in struct:VxLan
/systemd/src/udev/
H A Dudevadm-util.c22 const char *id,
26 assert(id);
28 if (prefix && !startswith(id, prefix))
29 id = strjoina(prefix, id);
31 if (startswith(id, "/dev/")) {
35 if (stat(id, &statbuf) < 0)
46 } else if (startswith(id, "/sys/"))
47 return udev_device_new_from_syspath(udev, id);
21 find_device(struct udev *udev, const char *id, const char *prefix) argument
/systemd/src/login/
H A Dlogind-seat.h29 char *id; member in struct:Seat
48 Seat *seat_new(Manager *m, const char *id);
H A Dlogind-inhibit.h51 char *id; member in struct:Inhibitor
70 Inhibitor* inhibitor_new(Manager *m, const char *id);
/systemd/src/test/
H A Dtest-id128.c35 sd_id128_t id, id2; local
39 assert_se(sd_id128_randomize(&id) == 0);
40 printf("random: %s\n", sd_id128_to_string(id, t));
43 assert_se(sd_id128_equal(id, id2));
46 assert_se(sd_id128_get_machine(&id) == 0);
47 printf("machine: %s\n", sd_id128_to_string(id, t));
49 assert_se(sd_id128_get_boot(&id) == 0);
50 printf("boot: %s\n", sd_id128_to_string(id, t));
60 assert_se(sd_id128_from_string(UUID_WALDI, &id) >= 0);
61 assert_se(sd_id128_equal(id, ID128_WALD
[all...]
H A Dtest-condition.c121 sd_id128_t id; local
126 r = sd_id128_get_machine(&id);
128 assert_se(sd_id128_to_string(id, sid));
H A Dtest-namespace.c29 static void test_tmpdir(const char *id, const char *A, const char *B) { argument
34 assert_se(setup_tmp_dirs(id, &a, &b) == 0);
/systemd/src/libsystemd-network/
H A Ddhcp-identifier.h45 uint8_t id[8]; member in struct:duid::__anon166::__anon168
H A Ddhcp6-internal.h46 be32_t id; member in struct:DHCP6IA::__anon178
H A Ddhcp-identifier.c51 /* a bit of snake-oil perhaps, but no need to expose the machine-id
52 directly; duid->en.id might not be aligned, so we need to copy */
54 memcpy(duid->en.id, &hash, sizeof(duid->en.id));
64 uint64_t id; local
87 id = siphash24(name, strlen(name), HASH_KEY.bytes);
90 id = siphash24(mac, mac_len, HASH_KEY.bytes);
92 id = htole64(id);
95 unaligned_write_be32(_id, (id
[all...]
H A Dtest-dhcp-server.c107 uint8_t id[7]; member in struct:__anon196::__anon200
185 test.option_client_id.id[0] = 0x01;
186 test.option_client_id.id[1] = 'A';
187 test.option_client_id.id[2] = 'B';
188 test.option_client_id.id[3] = 'C';
189 test.option_client_id.id[4] = 'D';
190 test.option_client_id.id[5] = 'E';
191 test.option_client_id.id[6] = 'F';
198 static uint64_t client_id_hash_helper(DHCPClientId *id, uint8_t key[HASH_KEY_SIZE]) { argument
202 client_id_hash_func(id,
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-server.c44 sd_id128_t id; local
48 assert_se(sd_id128_randomize(&id) >= 0);
52 assert_se(sd_bus_set_server(bus, 1, id) >= 0);
H A Dtest-bus-chat.c64 sd_id128_t id; local
76 r = sd_bus_get_bus_id(bus, &id);
88 log_info("Peer ID is " SD_ID128_FORMAT_STR ".", SD_ID128_FORMAT_VAL(id));
/systemd/src/libsystemd/sd-id128/
H A Dsd-id128.c33 _public_ char *sd_id128_to_string(sd_id128_t id, char s[SD_ID128_STRING_MAX]) { argument
39 s[n*2] = hexchar(id.bytes[n] >> 4);
40 s[n*2+1] = hexchar(id.bytes[n] & 0xF);
96 static sd_id128_t make_v4_uuid(sd_id128_t id) { argument
101 id.bytes[6] = (id.bytes[6] & 0x0F) | 0x40;
104 id.bytes[8] = (id.bytes[8] & 0x3F) | 0x80;
106 return id;
125 fd = open("/etc/machine-id", O_RDONL
[all...]
/systemd/src/shared/
H A Dspecifier.c129 sd_id128_t id; local
133 r = sd_id128_get_machine(&id);
141 *ret = sd_id128_to_string(id, n);
146 sd_id128_t id; local
150 r = sd_id128_get_boot(&id);
158 *ret = sd_id128_to_string(id, n);
H A Dutmp-wtmp.h35 int utmp_put_dead_process(const char *id, pid_t pid, int code, int status);
36 int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user);
59 static inline int utmp_put_dead_process(const char *id, pid_t pid, int code, int status) { argument
62 static inline int utmp_put_init_process(const char *id, pid_t pid, pid_t sid, const char *line, int ut_type, const char *user) { argument
H A Dbus-util.h131 const char *id; member in struct:UnitInfo
/systemd/src/core/
H A Dmachine-id-setup.c37 #include "machine-id-setup.h"
76 static int read_machine_id(int fd, char id[34]) { argument
81 assert(id);
98 memcpy(id, id_to_validate, 32);
99 id[32] = '\n';
100 id[33] = 0;
104 static int write_machine_id(int fd, char id[34]) { argument
106 assert(id);
111 return loop_write(fd, id, 33, false);
114 static int generate_machine_id(char id[3 argument
203 char id[34]; /* 32 + \\n + \\0 */ local
301 char id[34]; /* 32 + \\n + \\0 */ local
[all...]

Completed in 56 milliseconds

1234