Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/udev/
Dudev-ctrl.c35 int sock; member
50 _cleanup_close_ int sock = -1; in udev_ctrl_new_from_fd() local
56 sock = socket(AF_UNIX, SOCK_SEQPACKET|SOCK_NONBLOCK|SOCK_CLOEXEC, 0); in udev_ctrl_new_from_fd()
57 if (sock < 0) in udev_ctrl_new_from_fd()
67 .sock = fd >= 0 ? fd : TAKE_FD(sock), in udev_ctrl_new_from_fd()
90 if (bind(uctrl->sock, &uctrl->saddr.sa, uctrl->addrlen) < 0) in udev_ctrl_enable_receiving()
93 if (listen(uctrl->sock, 0) < 0) in udev_ctrl_enable_receiving()
114 safe_close(uctrl->sock); in udev_ctrl_free()
221 _cleanup_close_ int sock = -1; in udev_ctrl_event_handler() local
227 sock = accept4(fd, NULL, NULL, SOCK_CLOEXEC|SOCK_NONBLOCK); in udev_ctrl_event_handler()
[all …]
/systemd-251/src/test/
Dtest-capability.c120 int sock; in test_drop_privileges_keep_net_raw() local
122 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_keep_net_raw()
123 assert_se(sock >= 0); in test_drop_privileges_keep_net_raw()
124 safe_close(sock); in test_drop_privileges_keep_net_raw()
131 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_keep_net_raw()
132 assert_se(sock >= 0); in test_drop_privileges_keep_net_raw()
133 safe_close(sock); in test_drop_privileges_keep_net_raw()
137 int sock; in test_drop_privileges_dontkeep_net_raw() local
139 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_dontkeep_net_raw()
140 assert_se(sock >= 0); in test_drop_privileges_dontkeep_net_raw()
[all …]
/systemd-251/src/libsystemd/sd-device/
Ddevice-monitor.c34 int sock; member
83 if (getsockname(m->sock, &snl.sa, &addrlen) < 0) in monitor_set_nl_address()
101 return fd_set_rcvbuf(m->sock, size, false); in sd_device_monitor_set_receive_buffer_size()
107 m->sock = safe_close(m->sock); in device_monitor_disconnect()
114 return m->sock; in device_monitor_get_fd()
119 _cleanup_close_ int sock = -1; in device_monitor_new_full() local
147sock = socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_KOBJECT_UEVENT); in device_monitor_new_full()
148 if (sock < 0) in device_monitor_new_full()
158 .sock = fd >= 0 ? fd : TAKE_FD(sock), in device_monitor_new_full()
180 netns = ioctl(m->sock, SIOCGSKNS); in device_monitor_new_full()
[all …]
/systemd-251/src/core/
Dservice.c1294 Socket *sock; in service_collect_fds() local
1300 sock = SOCKET(u); in service_collect_fds()
1302 cn_fds = socket_collect_fds(sock, &cfds); in service_collect_fds()
1325 r = strv_extend_n(&rfd_names, socket_fdname(sock), cn_fds); in service_collect_fds()
4402 Socket *sock, in service_set_socket_fd() argument
4442 …r = unit_add_two_dependencies(UNIT(sock), UNIT_BEFORE, UNIT_TRIGGERS, UNIT(s), false, UNIT_DEPENDE… in service_set_socket_fd()
4450 unit_ref_set(&s->accept_socket, UNIT(s), UNIT(sock)); in service_set_socket_fd()
/systemd-251/docs/
DCONTAINER_INTERFACE.md236 manager to include six file nodes: `reg`, `dir`, `fifo`, `sock`, `chr`,