Home
last modified time | relevance | path

Searched refs:mh (Results 1 – 17 of 17) sorted by relevance

/systemd-251/src/libsystemd/sd-bus/
Dbus-socket.c139 struct msghdr mh = { in bus_socket_write_auth() local
144 k = sendmsg(b->output_fd, &mh, MSG_DONTWAIT|MSG_NOSIGNAL); in bus_socket_write_auth()
515 struct msghdr mh; in bus_socket_read_auth() local
552 mh = (struct msghdr) { in bus_socket_read_auth()
559 k = recvmsg_safe(b->input_fd, &mh, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); in bus_socket_read_auth()
575 cmsg_close_all(&mh); /* paranoia, we shouldn't have gotten any fds on EOF */ in bus_socket_read_auth()
584 CMSG_FOREACH(cmsg, &mh) in bus_socket_read_auth()
1052 struct msghdr mh = { in bus_socket_write_message() local
1060 mh.msg_controllen = CMSG_SPACE(sizeof(int) * m->n_fds); in bus_socket_write_message()
1061 mh.msg_control = alloca0(mh.msg_controllen); in bus_socket_write_message()
[all …]
/systemd-251/src/resolve/
Dresolved-manager.c755 struct msghdr mh = { in manager_recv() local
781 l = recvmsg_safe(fd, &mh, 0); in manager_recv()
790 assert(!(mh.msg_flags & MSG_TRUNC)); in manager_recv()
808 CMSG_FOREACH(cmsg, &mh) { in manager_recv()
888 static int sendmsg_loop(int fd, struct msghdr *mh, int flags) { in sendmsg_loop() argument
892 assert(mh); in sendmsg_loop()
895 if (sendmsg(fd, mh, flags) >= 0) in sendmsg_loop()
964 struct msghdr mh = { in manager_ipv4_send() local
989 mh.msg_control = &control; in manager_ipv4_send()
990 mh.msg_controllen = sizeof(control); in manager_ipv4_send()
[all …]
Dresolved-dns-stream.c95 struct msghdr mh = {}; in dns_stream_identify() local
139 mh.msg_control = &control; in dns_stream_identify()
140 mh.msg_controllen = sl; in dns_stream_identify()
142 CMSG_FOREACH(cmsg, &mh) { in dns_stream_identify()
/systemd-251/src/basic/
Dsocket-util.h175 #define CMSG_FOREACH(cmsg, mh) \ argument
176 for ((cmsg) = CMSG_FIRSTHDR(mh); (cmsg); (cmsg) = CMSG_NXTHDR((mh), (cmsg)))
178 struct cmsghdr* cmsg_find(struct msghdr *mh, int level, int type, socklen_t length);
181 #define CMSG_FIND_DATA(mh, level, type, ctype) \ argument
184 _found = cmsg_find(mh, level, type, CMSG_LEN(sizeof(ctype))); \
Dsocket-util.c964 struct msghdr mh = { in send_one_fd_iov_sa() local
984 mh.msg_control = &control; in send_one_fd_iov_sa()
985 mh.msg_controllen = sizeof(control); in send_one_fd_iov_sa()
987 cmsg = CMSG_FIRSTHDR(&mh); in send_one_fd_iov_sa()
993 k = sendmsg(transport_fd, &mh, MSG_NOSIGNAL | flags); in send_one_fd_iov_sa()
1018 struct msghdr mh = { in receive_one_fd_iov() local
1038 k = recvmsg_safe(transport_fd, &mh, MSG_CMSG_CLOEXEC | flags); in receive_one_fd_iov()
1042 found = cmsg_find(&mh, SOL_SOCKET, SCM_RIGHTS, CMSG_LEN(sizeof(int))); in receive_one_fd_iov()
1044 cmsg_close_all(&mh); in receive_one_fd_iov()
1162 struct cmsghdr* cmsg_find(struct msghdr *mh, int level, int type, socklen_t length) { in cmsg_find() argument
[all …]
Dfd-util.c470 void cmsg_close_all(struct msghdr *mh) { in cmsg_close_all() argument
473 assert(mh); in cmsg_close_all()
475 CMSG_FOREACH(cmsg, mh) in cmsg_close_all()
Dfd-util.h67 void cmsg_close_all(struct msghdr *mh);
/systemd-251/src/libsystemd/sd-resolve/
Dsd-resolve.c238 struct msghdr mh; in send_addrinfo_reply() local
272 mh = (struct msghdr) { in send_addrinfo_reply()
277 if (sendmsg(out_fd, &mh, MSG_NOSIGNAL) < 0) in send_addrinfo_reply()
294 struct msghdr mh; in send_nameinfo_reply() local
319 mh = (struct msghdr) { in send_nameinfo_reply()
324 if (sendmsg(out_fd, &mh, MSG_NOSIGNAL) < 0) in send_nameinfo_reply()
935 struct msghdr mh = {}; in resolve_getaddrinfo_with_destroy_callback() local
971 iov[mh.msg_iovlen++] = IOVEC_MAKE(&req, sizeof(AddrInfoRequest)); in resolve_getaddrinfo_with_destroy_callback()
973 iov[mh.msg_iovlen++] = IOVEC_MAKE((void*) node, req.node_len); in resolve_getaddrinfo_with_destroy_callback()
975 iov[mh.msg_iovlen++] = IOVEC_MAKE((void*) service, req.service_len); in resolve_getaddrinfo_with_destroy_callback()
[all …]
/systemd-251/src/coredump/
Dcoredump.c974 struct msghdr mh = { in process_socket() local
995 mh.msg_iov = &iovec; in process_socket()
997 n = recvmsg_safe(fd, &mh, MSG_CMSG_CLOEXEC); in process_socket()
1011 found = cmsg_find(&mh, SOL_SOCKET, SCM_RIGHTS, CMSG_LEN(sizeof(int))); in process_socket()
1013 cmsg_close_all(&mh); in process_socket()
1023 cmsg_close_all(&mh); in process_socket()
1077 struct msghdr mh = { in send_iovec() local
1084 if (sendmsg(fd, &mh, MSG_NOSIGNAL) >= 0) in send_iovec()
1087 if (errno == EMSGSIZE && mh.msg_iov[0].iov_len > 0) { in send_iovec()
1093 if (mh.msg_iov != copy) { in send_iovec()
[all …]
/systemd-251/src/libsystemd/sd-journal/
Djournal-send.c239 struct msghdr mh = { in sd_journal_sendv() local
310 mh.msg_iov = w; in sd_journal_sendv()
311 mh.msg_iovlen = j; in sd_journal_sendv()
313 k = sendmsg(fd, &mh, MSG_NOSIGNAL); in sd_journal_sendv()
354 r = send_one_fd_sa(fd, buffer_fd, mh.msg_name, mh.msg_namelen, 0); in sd_journal_sendv()
/systemd-251/src/journal/
Djournald-audit.c484 struct msghdr mh = { in enable_audit() local
493 n = sendmsg(fd, &mh, MSG_NOSIGNAL); in enable_audit()
/systemd-251/src/home/
Dhomed-manager.c1045 struct msghdr mh; in read_datagram() local
1065 mh = (struct msghdr) { in read_datagram()
1072 m = recvmsg_safe(fd, &mh, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); in read_datagram()
1078 cmsg_close_all(&mh); in read_datagram()
1082 CMSG_FOREACH(cmsg, &mh) { in read_datagram()
1094 cmsg_close_all(&mh); in read_datagram()
/systemd-251/docs/
Dstyle.css296 .highlight .mh {
491 ….highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .hi…
/systemd-251/src/machine/
Dmachine-dbus.c302 struct msghdr mh = { in bus_machine_method_get_addresses() local
310 n = recvmsg(pair[0], &mh, 0); in bus_machine_method_get_addresses()
/systemd-251/shell-completion/zsh/
D_systemctl.in403 oldcache=( "$1"(mh+1) )
/systemd-251/hwdb.d/
D20-OUI.hwdb22971 ID_OUI_FROM_DATABASE=mh acoustics LLC
Dma-large.txt134714 00-1D-3A (hex) mh acoustics LLC
134715 001D3A (base 16) mh acoustics LLC