/systemd/src/basic/ |
H A D | replace-var.c | 76 size_t skip, d, nl; local 93 nl = l - skip + strlen(n); 94 a = realloc(r, nl + 1); 98 l = nl;
|
H A D | socket-util.h | 40 struct sockaddr_nl nl; member in union:sockaddr_union
|
H A D | string-util.c | 568 size_t d, nl; local 576 nl = l - old_len + new_len; 577 a = realloc(r, nl + 1); 581 l = nl;
|
H A D | strv.c | 838 char **nl; local 851 nl = realloc(*l, sizeof(char*) * (k + n + 1)); 852 if (!nl) 855 *l = nl; 858 nl[i] = strdup(value); 859 if (!nl[i]) 863 nl[i] = NULL; 868 free(nl[j]); 870 nl[k] = NULL;
|
H A D | log.c | 815 static const char nl = '\n'; local 842 iovec[*n].iov_base = (char*) &nl;
|
/systemd/src/journal/ |
H A D | journal-send.c | 230 char *c, *nl; local 243 nl = memchr(iov[i].iov_base, '\n', iov[i].iov_len); 244 if (nl) { 245 if (_unlikely_(nl < c))
|
H A D | journald-audit.c | 434 const struct nlmsghdr *nl = buffer; local 446 sa->nl.nl_family != AF_NETLINK || 447 sa->nl.nl_pid != 0) { 457 if (!NLMSG_OK(nl, buffer_size)) { 463 if (IN_SET(nl->nlmsg_type, NLMSG_NOOP, NLMSG_ERROR)) 467 if (nl->nlmsg_type < AUDIT_FIRST_USER_MSG) 470 process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsghdr))); 490 .nl [all...] |
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-internal.h | 61 struct sockaddr_nl nl; member in union:sd_netlink::__anon156 126 int socket_bind(sd_netlink *nl); 127 int socket_broadcast_group_ref(sd_netlink *nl, unsigned group); 128 int socket_broadcast_group_unref(sd_netlink *nl, unsigned group); 129 int socket_write_message(sd_netlink *nl, sd_netlink_message *m); 130 int socket_read_message(sd_netlink *nl);
|
H A D | netlink-socket.c | 46 static int broadcast_groups_get(sd_netlink *nl) { argument 52 assert(nl); 53 assert(nl->fd >= 0); 55 r = getsockopt(nl->fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, NULL, &len); 58 nl->broadcast_group_dont_leave = true; 73 r = getsockopt(nl->fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, groups, &len); 80 r = hashmap_ensure_allocated(&nl->broadcast_group_refs, NULL); 96 r = hashmap_put(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(1)); 105 int socket_bind(sd_netlink *nl) { argument 109 r = setsockopt(nl 131 broadcast_group_get_ref(sd_netlink *nl, unsigned group) argument 137 broadcast_group_set_ref(sd_netlink *nl, unsigned group, unsigned n_ref) argument 149 broadcast_group_join(sd_netlink *nl, unsigned group) argument 163 socket_broadcast_group_ref(sd_netlink *nl, unsigned group) argument 192 broadcast_group_leave(sd_netlink *nl, unsigned group) argument 209 socket_broadcast_group_unref(sd_netlink *nl, unsigned group) argument 237 socket_write_message(sd_netlink *nl, sd_netlink_message *m) argument 240 struct sockaddr_nl nl; member in union:__anon157 [all...] |
H A D | sd-netlink.c | 46 rtnl->sockaddr.nl.nl_family = AF_NETLINK; 85 if (rtnl->sockaddr.nl.nl_family != AF_NETLINK) 216 int sd_netlink_send(sd_netlink *nl, argument 221 assert_return(nl, -EINVAL); 222 assert_return(!rtnl_pid_changed(nl), -ECHILD); 226 rtnl_seal_message(nl, message); 228 r = socket_write_message(nl, message); 489 int sd_netlink_wait(sd_netlink *nl, uint64_t timeout_usec) { argument 490 assert_return(nl, -EINVAL); 491 assert_return(!rtnl_pid_changed(nl), 517 sd_netlink_call_async(sd_netlink *nl, sd_netlink_message *m, sd_netlink_message_handler_t callback, void *userdata, uint64_t usec, uint32_t *serial) argument 579 sd_netlink_call_async_cancel(sd_netlink *nl, uint32_t serial) argument [all...] |
/systemd/src/core/ |
H A D | dbus-execute.c | 1529 struct rlimit nl; local 1532 nl = *c->rlimit[ri]; 1535 nl.rlim_cur = x; 1537 nl.rlim_max = x; 1540 nl = (struct rlimit) { 1545 r = rlimit_format(&nl, &f); 1550 *c->rlimit[ri] = nl; 1552 c->rlimit[ri] = newdup(struct rlimit, &nl, 1);
|
H A D | main.c | 1108 struct rlimit nl; local 1131 nl.rlim_cur = nl.rlim_max = 64*1024; 1132 r = setrlimit_closest(RLIMIT_NOFILE, &nl);
|
H A D | service.c | 1112 char **nl; local 1121 nl = realloc(rfd_names, (rn_fds + s->n_fd_store + 1) * sizeof(char*)); 1122 if (!nl) 1125 rfd_names = nl;
|
/systemd/src/shared/ |
H A D | logs-show.c | 82 size_t fl, nl; local 96 nl = length - fl; 97 buf = new(char, nl+1); 101 memcpy(buf, (const char*) data + fl, nl); local 102 buf[nl] = 0; 108 *target_size = nl;
|