Searched refs:id (Results 1 - 25 of 165) sorted by relevance

1234567

/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 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 Daf-list.h22 const char *af_to_name(int id);
H A Darphrd-list.h22 const char *arphrd_to_name(int id);
H A Dcap-list.h22 const char *capability_to_name(int id);
H A Derrno-list.h22 const char *errno_to_name(int id);
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 Dlogin-util.h25 bool session_id_valid(const char *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.h28 int audit_session_from_pid(pid_t pid, uint32_t *id);
/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
H A Dudevadm-util.h23 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...]
/systemd/src/network/
H A Dnetworkd-netdev-vlan.h31 uint64_t id; member in struct:VLan
H A Dnetworkd-netdev-vlan.c36 if (v->id <= VLANID_MAX) {
37 r = sd_netlink_message_append_u16(req, IFLA_VLAN_ID, v->id);
55 if (v->id > VLANID_MAX) {
56 log_warning("VLAN without valid Id (%"PRIu64") configured in %s. Ignoring", v->id, filename);
69 v->id = VLANID_MAX + 1;
/systemd/src/libsystemd-network/
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...]
/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...]
/systemd/src/journal/
H A Djournald-rate-limit.h28 int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available);
H A Djournald-rate-limit.c58 char *id; member in struct:JournalRateLimitGroup
110 free(g->id);
146 static JournalRateLimitGroup* journal_rate_limit_group_new(JournalRateLimit *r, const char *id, usec_t ts) { argument
151 assert(id);
157 g->id = strdup(id);
158 if (!g->id)
162 string_hash_func(g->id, &state);
209 int journal_rate_limit_test(JournalRateLimit *r, const char *id, int priority, uint64_t available) { argument
217 assert(id);
[all...]
/systemd/src/shared/
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 Dask-password-api.h36 int ask_password_agent(const char *message, const char *icon, const char *id, const char *keyname, usec_t until, AskPasswordFlags flag, char ***ret);
38 int ask_password_auto(const char *message, const char *icon, const char *id, const char *keyname, usec_t until, AskPasswordFlags flag, char ***ret);
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);
/systemd/src/udev/ata_id/
H A Data_id.c410 struct hd_driveid id; local
495 memcpy(&id, identify.byte, sizeof id);
498 if (ioctl(fd, HDIO_GET_IDENTITY, &id) != 0) {
504 memcpy(model, id.model, 40);
507 util_replace_whitespace((char *) id.model, model, 40);
509 util_replace_whitespace((char *) id.serial_no, serial, 20);
511 util_replace_whitespace((char *) id.fw_rev, revision, 8);
518 if ((id.config >> 8) & 0x80) {
520 switch ((id
[all...]
/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...]

Completed in 84 milliseconds

1234567