/systemd/src/basic/ |
H A D | smack-util.c | 59 int mac_smack_read(const char *path, SmackAttr attr, char **label) { argument 61 assert(attr >= 0 && attr < _SMACK_ATTR_MAX); 67 return getxattr_malloc(path, smack_attr_to_string(attr), label, true); 70 int mac_smack_read_fd(int fd, SmackAttr attr, char **label) { argument 72 assert(attr >= 0 && attr < _SMACK_ATTR_MAX); 78 return fgetxattr_malloc(fd, smack_attr_to_string(attr), label); 81 int mac_smack_apply(const char *path, SmackAttr attr, const char *label) { argument 85 assert(attr > 100 mac_smack_apply_fd(int fd, SmackAttr attr, const char *label) argument 214 mac_smack_read(const char *path, SmackAttr attr, char **label) argument 218 mac_smack_read_fd(int fd, SmackAttr attr, char **label) argument 222 mac_smack_apply(const char *path, SmackAttr attr, const char *label) argument 226 mac_smack_apply_fd(int fd, SmackAttr attr, const char *label) argument [all...] |
H A D | smack-util.h | 49 int mac_smack_read(const char *path, SmackAttr attr, char **label); 50 int mac_smack_read_fd(int fd, SmackAttr attr, char **label); 51 int mac_smack_apply(const char *path, SmackAttr attr, const char *label); 52 int mac_smack_apply_fd(int fd, SmackAttr attr, const char *label);
|
/systemd/src/libudev/ |
H A D | libudev-util.c | 50 char *attr; local 65 attr = strchr(sysname, ']'); 66 if (attr == NULL) 68 attr[0] = '\0'; 69 attr = &attr[1]; 70 if (attr[0] == '/') 71 attr = &attr[1]; 72 if (attr[ [all...] |
/systemd/src/libsystemd/sd-device/ |
H A D | device-util.h | 34 #define FOREACH_DEVICE_SYSATTR(device, attr) \ 35 for (attr = sd_device_get_sysattr_first(device); \ 36 attr; \ 37 attr = sd_device_get_sysattr_next(device))
|
/systemd/src/udev/ |
H A D | udev-builtin-net_id.c | 140 const char *attr; local 144 attr = udev_device_get_sysattr_value(names->pcidev, "acpi_index"); 146 if (!attr) 147 attr = udev_device_get_sysattr_value(names->pcidev, "index"); 148 if (!attr) 151 idx = strtoul(attr, NULL, 0); 163 attr = udev_device_get_sysattr_value(dev, "dev_port"); 164 if (attr) 165 dev_port = strtol(attr, NULL, 10); 205 const char *attr; local [all...] |
H A D | udev-rules.c | 134 TK_M_ENV, /* val, attr */ 139 TK_M_ATTR, /* val, attr */ 140 TK_M_SYSCTL, /* val, attr */ 146 TK_M_ATTRS, /* val, attr */ 174 TK_A_SECLABEL, /* val, attr */ 175 TK_A_ENV, /* val, attr */ 178 TK_A_ATTR, /* val, attr */ 179 TK_A_SYSCTL, /* val, attr */ 331 const char *attr = &rules->buf[token->key.attr_off]; local 386 token_str(type), operation_str(op), attr, valu 689 attr_subst_subdir(char *attr, size_t len) argument 818 char *attr; local 838 const char *attr = NULL; local 1016 const char *attr; local 2492 char attr[UTIL_PATH_SIZE]; local [all...] |
H A D | udev-builtin-input_id.c | 78 * @param attr sysfs attribute name (e. g. "capabilities/key") 82 struct udev_device *pdev, const char* attr, 91 v = udev_device_get_sysattr_value(pdev, attr); 96 log_debug("%s raw kernel attribute: %s", attr, text); 105 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val); 113 log_debug("ignoring %s block %lX which is larger than maximum size", attr, val); 119 log_debug("%s decoded bit map:", attr); 81 get_cap_mask(struct udev_device *dev, struct udev_device *pdev, const char* attr, unsigned long *bitmask, size_t bitmask_size, bool test) argument
|
H A D | udev-event.c | 104 { .name = "attr", .fmt = 's', .type = SUBST_ATTR }, 134 char *attr = NULL; local 182 /* extract possible $format{attr} */ 198 attr = attrbuf; 200 attr = NULL; 254 if (attr != NULL) 255 i = strtoul(attr, &rest, 10); 294 if (attr == NULL) { 295 log_error("missing file parameter for attr"); 300 if (util_resolve_subsys_kernel(event->udev, attr, vbu [all...] |
/systemd/src/bus-proxyd/ |
H A D | bus-proxyd.c | 117 pthread_attr_t attr; local 120 r = pthread_attr_init(&attr); 124 r = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); 159 r = pthread_create(&tid, &attr, run_client, c); 168 pthread_attr_destroy(&attr);
|
/systemd/src/hostname/ |
H A D | hostnamectl.c | 127 static int show_one_name(sd_bus *bus, const char* attr) { argument 138 attr, 218 const char *attr; local 225 attr = arg_pretty ? "PrettyHostname" : 228 return show_one_name(bus, attr);
|
/systemd/src/shared/ |
H A D | efivars.c | 58 uint32_t attr; member in struct:boot_option 265 uint32_t attr; member in struct:var 292 buf->attr = EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS|EFI_VARIABLE_RUNTIME_ACCESS; 437 *active = !!(header->attr & LOAD_OPTION_ACTIVE); 498 option->attr = LOAD_OPTION_ACTIVE;
|
/systemd/src/libsystemd/sd-daemon/ |
H A D | sd-daemon.c | 369 struct mq_attr attr; local 374 if (mq_getattr(fd, &attr) < 0) {
|
/systemd/src/network/ |
H A D | networkd-network.c | 332 const char *attr; local 335 attr = udev_device_get_sysattr_value(device, "name_assign_type"); 336 if (attr) 337 (void) safe_atou8(attr, &name_assign_type);
|
/systemd/src/core/ |
H A D | socket.c | 1103 struct mq_attr _attr, *attr = NULL; local 1114 attr = &_attr; 1122 fd = mq_open(path, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_CREAT, mq_mode, attr);
|