Home
last modified time | relevance | path

Searched refs:libc (Results 1 – 4 of 4) sorted by relevance

/kernel/tests/net/test/
Dnamespace.py72 libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True) variable
76 libc.mount.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p,
78 libc.sethostname.argtypes = (ctypes.c_char_p, ctypes.c_size_t)
79 libc.umount2.argtypes = (ctypes.c_char_p, ctypes.c_int)
80 libc.unshare.argtypes = (ctypes.c_int,)
84 ret = libc.mount(src.encode(), tgt.encode(), fs.encode() if fs else None,
93 libc.umount2(b'/proc', MNT_DETACH) # Ignore failure: might not be mounted
98 libc.umount2(b'/sys/fs/cgroup', MNT_DETACH) # Ign. fail: might not be mounted
99 libc.umount2(b'/sys/fs/bpf', MNT_DETACH) # Ignore fail: might not be mounted
100 libc.umount2(b'/sys', MNT_DETACH) # Ignore fail: might not be mounted
[all …]
Dcsocket.py76 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) variable
206 ret = libc.bind(s.fileno(), VoidPointer(to), len(to))
213 ret = libc.connect(s.fileno(), VoidPointer(to), len(to))
273 ret = libc.sendmsg(s.fileno(), msghdr, 0)
325 ret = libc.recvmsg(s.fileno(), VoidPointer(msghdr), flags)
343 ret = libc.recvfrom(s.fileno(), buf, len(buf), flags,
372 ret = libc.setsockopt(s.fileno(), level, optname, optval, optlen)
Dbpf.py215 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) variable
224 ret = libc.syscall(__NR_bpf, op, csocket.VoidPointer(attr), len(attr))
292 ret = libc.setsockopt(sock_fd, socket.SOL_SOCKET, SO_ATTACH_BPF,
Dbpf_test.py85 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) variable