• Home
  • Raw
  • Download

Lines Matching refs:nix

1 use nix::sys::socket::{AddressFamily, InetAddr, UnixAddr, getsockname};
138 use nix::sys::socket::{socket, AddressFamily, SockType, SockFlag}; in test_getsockname()
139 use nix::sys::socket::{bind, SockAddr}; in test_getsockname()
153 use nix::unistd::{read, write}; in test_socketpair()
154 use nix::sys::socket::{socketpair, AddressFamily, SockType, SockFlag}; in test_socketpair()
166 use nix::Result;
167 use nix::sys::socket::*;
237 use nix::sys::uio::IoVec;
238 use nix::sys::socket::sockopt::{UdpGroSegment, UdpGsoSegment};
323 use nix::sys::uio::IoVec; in udp_sendmmsg()
389 use nix::sys::uio::IoVec; in udp_recvmmsg()
390 use nix::sys::socket::{MsgFlags, recvmmsg}; in udp_recvmmsg()
456 use nix::sys::uio::IoVec; in udp_recvmmsg_dontwait_short_read()
457 use nix::sys::socket::{MsgFlags, recvmmsg}; in udp_recvmmsg_dontwait_short_read()
522 use nix::Error; in test_recvmsg_ebadf()
523 use nix::errno::Errno; in test_recvmsg_ebadf()
524 use nix::sys::socket::{MsgFlags, recvmsg}; in test_recvmsg_ebadf()
525 use nix::sys::uio::IoVec; in test_recvmsg_ebadf()
539 use nix::sys::uio::IoVec; in test_scm_rights()
540 use nix::unistd::{pipe, read, write, close}; in test_scm_rights()
541 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_scm_rights()
595 use nix::sys::uio::IoVec; in test_af_alg_cipher()
596 use nix::unistd::read; in test_af_alg_cipher()
597 use nix::sys::socket::{socket, sendmsg, bind, accept, setsockopt, in test_af_alg_cipher()
600 use nix::sys::socket::sockopt::AlgSetKey; in test_af_alg_cipher()
664 use nix::sys::uio::IoVec; in test_af_alg_aead()
665 use nix::unistd::{read, close}; in test_af_alg_aead()
666 use nix::sys::socket::{socket, sendmsg, bind, accept, setsockopt, in test_af_alg_aead()
669 use nix::sys::socket::sockopt::{AlgSetKey, AlgSetAeadAuthSize}; in test_af_alg_aead()
760 use nix::sys::uio::IoVec; in test_sendmsg_ipv4packetinfo()
761 use nix::sys::socket::{socket, sendmsg, bind, in test_sendmsg_ipv4packetinfo()
810 use nix::Error; in test_sendmsg_ipv6packetinfo()
811 use nix::errno::Errno; in test_sendmsg_ipv6packetinfo()
812 use nix::sys::uio::IoVec; in test_sendmsg_ipv6packetinfo()
813 use nix::sys::socket::{socket, sendmsg, bind, in test_sendmsg_ipv6packetinfo()
862 use nix::sys::socket::{ControlMessage, ControlMessageOwned, MsgFlags, in test_scm_rights_single_cmsg_multiple_fds()
864 use nix::sys::uio::IoVec; in test_scm_rights_single_cmsg_multiple_fds()
909 use nix::sys::uio::IoVec; in test_sendmsg_empty_cmsgs()
910 use nix::unistd::close; in test_sendmsg_empty_cmsgs()
911 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_sendmsg_empty_cmsgs()
946 use nix::sys::uio::IoVec; in test_scm_credentials()
947 use nix::unistd::{close, getpid, getuid, getgid}; in test_scm_credentials()
948 use nix::sys::socket::{socketpair, sendmsg, recvmsg, in test_scm_credentials()
953 use nix::sys::socket::{setsockopt, sockopt::PassCred}; in test_scm_credentials()
1029 use nix::sys::uio::IoVec; in test_impl_scm_credentials_and_rights()
1030 use nix::unistd::{pipe, write, close, getpid, getuid, getgid}; in test_impl_scm_credentials_and_rights()
1031 use nix::sys::socket::{socketpair, sendmsg, recvmsg, setsockopt, in test_impl_scm_credentials_and_rights()
1034 use nix::sys::socket::sockopt::PassCred; in test_impl_scm_credentials_and_rights()
1104 use nix::sys::socket::{SockType, SockFlag}; in test_unixdomain()
1105 use nix::sys::socket::{bind, socket, connect, listen, accept, SockAddr}; in test_unixdomain()
1106 use nix::unistd::{read, write, close}; in test_unixdomain()
1140 use nix::Error; in test_syscontrol()
1141 use nix::errno::Errno; in test_syscontrol()
1142 use nix::sys::socket::{socket, SockAddr, SockType, SockFlag, SockProtocol}; in test_syscontrol()
1163 fn loopback_address(family: AddressFamily) -> Option<nix::ifaddrs::InterfaceAddress> { in loopback_address()
1166 use nix::ifaddrs::getifaddrs; in loopback_address()
1167 use nix::sys::socket::SockAddr; in loopback_address()
1168 use nix::net::if_::*; in loopback_address()
1218 use nix::sys::socket::sockopt::Ipv4PacketInfo; in test_recv_ipv4pktinfo()
1219 use nix::sys::socket::{bind, SockFlag, SockType}; in test_recv_ipv4pktinfo()
1220 use nix::sys::socket::{getsockname, setsockopt, socket}; in test_recv_ipv4pktinfo()
1221 use nix::sys::socket::{recvmsg, sendmsg, ControlMessageOwned, MsgFlags}; in test_recv_ipv4pktinfo()
1222 use nix::sys::uio::IoVec; in test_recv_ipv4pktinfo()
1223 use nix::net::if_::*; in test_recv_ipv4pktinfo()
1308 use nix::net::if_::*; in test_recvif()
1309 use nix::sys::socket::sockopt::{Ipv4RecvIf, Ipv4RecvDstAddr}; in test_recvif()
1310 use nix::sys::socket::{bind, SockFlag, SockType}; in test_recvif()
1311 use nix::sys::socket::{getsockname, setsockopt, socket, SockAddr}; in test_recvif()
1312 use nix::sys::socket::{recvmsg, sendmsg, ControlMessageOwned, MsgFlags}; in test_recvif()
1313 use nix::sys::uio::IoVec; in test_recvif()
1419 use nix::net::if_::*; in test_recv_ipv6pktinfo()
1420 use nix::sys::socket::sockopt::Ipv6RecvPacketInfo; in test_recv_ipv6pktinfo()
1421 use nix::sys::socket::{bind, SockFlag, SockType}; in test_recv_ipv6pktinfo()
1422 use nix::sys::socket::{getsockname, setsockopt, socket}; in test_recv_ipv6pktinfo()
1423 use nix::sys::socket::{recvmsg, sendmsg, ControlMessageOwned, MsgFlags}; in test_recv_ipv6pktinfo()
1424 use nix::sys::uio::IoVec; in test_recv_ipv6pktinfo()
1497 use nix::Error; in test_vsock()
1498 use nix::errno::Errno; in test_vsock()
1499 use nix::sys::socket::{AddressFamily, socket, bind, connect, listen, in test_vsock()
1501 use nix::unistd::{close}; in test_vsock()