Searched defs:add (Results 1 - 18 of 18) sorted by relevance

/systemd/src/core/
H A Dlocale-setup.c33 char **add; local
83 add = NULL;
96 if (strv_consume(&add, s) < 0) {
102 if (!strv_isempty(add)) {
105 e = strv_env_merge(2, *environment, add);
118 strv_free(add);
H A Ddevice.c286 return log_unit_error_errno(u, r, "Failed to add wants dependency: %m");
452 static void device_update_found_one(Device *d, bool add, DeviceFound found, bool now) { argument
457 n = add ? (d->found | found) : (d->found & ~found);
484 static int device_update_found_by_sysfs(Manager *m, const char *sysfs, bool add, DeviceFound found, bool now) { argument
495 device_update_found_one(d, add, found, now);
500 static int device_update_found_by_name(Manager *m, const char *path, bool add, DeviceFound found, bool now) { argument
519 device_update_found_one(DEVICE(u), add, found, now);
630 log_error_errno(r, "Failed to add udev tag match: %m");
783 int device_found_node(Manager *m, const char *node, bool add, DeviceFound found, bool now) { argument
800 if (add) {
[all...]
H A Dtimer.c334 usec_t add; local
344 add = random_u64() % t->random_usec;
346 if (*v + add < *v) /* overflow */
349 *v += add;
351 log_unit_info(UNIT(t), "Adding %s random time.", format_timespan(s, sizeof(s), add, 0));
/systemd/src/login/
H A Dlogind-acl.h32 bool add, uid_t new_uid);
38 bool add, uid_t new_uid);
44 bool add, uid_t new_uid) {
52 bool add, uid_t new_uid) {
41 devnode_acl(const char *path, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument
48 devnode_acl_all(struct udev *udev, const char *seat, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument
H A Dlogind-acl.c69 bool add, uid_t new_uid) {
106 if (add && new_uid > 0) {
181 bool add, uid_t new_uid) {
207 * could add the seat name as second match tag, but this would
282 del ? " del" : "", add ? " add" : "");
284 k = devnode_acl(n, flush, del, old_uid, add, new_uid);
66 devnode_acl(const char *path, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument
177 devnode_acl_all(struct udev *udev, const char *seat, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid) argument
/systemd/src/shared/
H A Dfirewall-util.h30 bool add,
40 bool add,
56 bool add,
68 bool add,
55 fw_add_masquerade( bool add, int af, int protocol, const union in_addr_union *source, unsigned source_prefixlen, const char *out_interface, const union in_addr_union *destination, unsigned destination_prefixlen) argument
67 fw_add_local_dnat( bool add, int af, int protocol, const char *in_interface, const union in_addr_union *source, unsigned source_prefixlen, const union in_addr_union *destination, unsigned destination_prefixlen, uint16_t local_port, const union in_addr_union *remote, uint16_t remote_port, const union in_addr_union *previous_remote) argument
H A Dfirewall-util.c82 bool add,
112 /* Put together the entry we want to add or remove */
133 if (add) {
157 bool add,
180 assert(add || !previous_remote);
275 if (add) {
81 fw_add_masquerade( bool add, int af, int protocol, const union in_addr_union *source, unsigned source_prefixlen, const char *out_interface, const union in_addr_union *destination, unsigned destination_prefixlen) argument
156 fw_add_local_dnat( bool add, int af, int protocol, const char *in_interface, const union in_addr_union *source, unsigned source_prefixlen, const union in_addr_union *destination, unsigned destination_prefixlen, uint16_t local_port, const union in_addr_union *remote, uint16_t remote_port, const union in_addr_union *previous_remote) argument
/systemd/src/nspawn/
H A Dnspawn-expose-ports.c138 bool add; local
153 add = r > 0 &&
157 if (!add)
239 return log_error_errno(r, "Failed to add to even loop: %m");
/systemd/src/basic/
H A Din-addr-util.c172 struct in6_addr add = {}, result; local
179 /* First calculate what we have to add */
180 add.s6_addr[(prefixlen-1) / 8] = 1 << (7 - (prefixlen-1) % 8);
185 result.s6_addr[j] = u->in6.s6_addr[j] + add.s6_addr[j] + overflow;
H A Dcalendarspec.c432 unsigned add; local
435 r = parse_fractional_part_u(&e, 6, &add);
439 if (add + value < value)
441 value += add;
H A Dtime-util.c640 unsigned add; local
643 r = parse_fractional_part_u(&k, 6, &add);
650 x_usec = add;
/systemd/src/libudev/
H A Dlibudev-device-private.c27 int udev_device_tag_index(struct udev_device *udev_device, struct udev_device *udev_device_old, bool add) { argument
36 r = device_tag_index(udev_device->device, device_old, add);
H A Dlibudev-list.c165 /* add new name */
187 unsigned int add; local
189 add = list->entries_max;
190 if (add < 1)
191 add = 64;
192 entries = realloc(list->entries, (list->entries_max + add) * sizeof(struct udev_list_entry *));
200 list->entries_max += add;
/systemd/src/udev/
H A Dudev-node.c129 static const char *link_find_prioritized(struct udev_device *dev, bool add, const char *stackdir, char *buf, size_t bufsize) { argument
135 if (add) {
182 static void link_update(struct udev_device *dev, const char *slink, bool add) { argument
193 if (!add && unlink(filename) == 0)
196 target = link_find_prioritized(dev, add, dirname, buf, sizeof(buf));
206 if (add) {
349 /* always add /dev/{block,char}/$major:$minor */
356 /* create/update symlinks, add symlinks to name index */
H A Dudev-rules.c238 [OP_ADD] = "add",
457 unsigned int add; local
460 add = rules->token_max;
461 if (add < 8)
462 add = 8;
464 tokens = realloc(rules->tokens, (rules->token_max + add ) * sizeof(struct token));
468 rules->token_max += add;
500 unsigned int add; local
503 add = rules->uids_max;
504 if (add <
547 unsigned int add; local
[all...]
/systemd/src/libsystemd/sd-device/
H A Ddevice-private.c437 return log_debug_errno(r, "sd-device: could not add devlink '%s': %m", devlink);
451 return log_debug_errno(r, "sd-device: could not add tag '%s': %m", tag);
456 return log_debug_errno(r, "sd-device: could not add property '%s=%s': %m", key, value);
463 [DEVICE_ACTION_ADD] = "add",
914 static int device_tag(sd_device *device, const char *tag, bool add) { argument
928 if (add) {
941 int device_tag_index(sd_device *device, sd_device *device_old, bool add) { argument
945 if (add && device_old) {
957 k = device_tag(device, tag, add);
/systemd/src/resolve/
H A Dresolved-dns-cache.c143 static void dns_cache_make_space(DnsCache *c, unsigned add) { argument
146 if (add <= 0)
151 * add more RRs to the cache than CACHE_MAX at once. In that
161 if (prioq_size(c->by_expiry) + add < CACHE_MAX)
426 /* Otherwise, add the new RR */
660 /* Second, add in positive entries for all contained RRs */
686 /* Third, add in negative entries if the key has no RR */
H A Dresolved-dns-packet.c287 static int dns_packet_extend(DnsPacket *p, size_t add, void **ret, size_t *start) { argument
290 if (p->size + add > p->allocated) {
293 a = PAGE_ALIGN((p->size + add) * 2);
297 if (p->size + add > a)
326 p->size += add;
1669 i = malloc0(offsetof(DnsTxtItem, data) + 1); /* for safety reasons we add an extra NUL byte */

Completed in 71 milliseconds