Searched refs:addrlen (Results 1 - 6 of 6) sorted by relevance
/systemd/src/basic/ |
H A D | selinux-util.h | 49 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
|
H A D | selinux-util.c | 417 int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen) { argument 430 assert(addrlen >= sizeof(sa_family_t)); 440 if (addrlen < offsetof(struct sockaddr_un, sun_path) + 1) 448 path = strndupa(un->sun_path, addrlen - offsetof(struct sockaddr_un, sun_path)); 480 r = bind(fd, addr, addrlen) < 0 ? -errno : 0; 489 if (bind(fd, addr, addrlen) < 0)
|
/systemd/src/libsystemd/sd-netlink/ |
H A D | netlink-socket.c | 106 socklen_t addrlen; local 113 addrlen = sizeof(nl->sockaddr); 115 r = bind(nl->fd, &nl->sockaddr.sa, addrlen); 120 r = getsockname(nl->fd, &nl->sockaddr.sa, &addrlen);
|
H A D | sd-netlink.c | 70 socklen_t addrlen; local 79 addrlen = sizeof(rtnl->sockaddr); 81 r = getsockname(fd, &rtnl->sockaddr.sa, &addrlen);
|
/systemd/src/udev/ |
H A D | udev-ctrl.c | 63 socklen_t addrlen; member in struct:udev_ctrl 108 uctrl->addrlen = offsetof(struct sockaddr_un, sun_path) + strlen(uctrl->saddr.un.sun_path); 120 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen); 123 err = bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen); 253 if (connect(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen) < 0) {
|
/systemd/src/libudev/ |
H A D | libudev-monitor.c | 62 socklen_t addrlen; member in struct:udev_monitor 155 socklen_t addrlen; local 163 addrlen = sizeof(struct sockaddr_nl); 164 r = getsockname(udev_monitor->sock, &snl.sa, &addrlen);
|
Completed in 1104 milliseconds