Searched refs:libc (Results 1 – 4 of 4) sorted by relevance
/kernel/tests/net/test/ |
D | namespace.py | 68 libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True) variable 72 libc.mount.argtypes = (ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p, 74 libc.sethostname.argtype = (ctypes.c_char_p, ctypes.c_size_t) 75 libc.umount2.argtypes = (ctypes.c_char_p, ctypes.c_int) 76 libc.unshare.argtypes = (ctypes.c_int,) 80 ret = libc.mount(src, tgt, fs, flags, None) 88 libc.umount2('/proc', MNT_DETACH) # Ignore failure: might not be mounted 93 libc.umount2('/sys', MNT_DETACH) # Ignore failure: might not be mounted 102 ret = libc.sethostname(s, len(s)) 109 ret = libc.unshare(flags)
|
D | csocket.py | 76 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)
|
D | bpf.py | 193 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) variable 206 ret = libc.syscall(__NR_bpf, op, csocket.VoidPointer(attr), len(attr)) 274 ret = libc.setsockopt(sock_fd, socket.SOL_SOCKET, SO_ATTACH_BPF,
|
D | bpf_test.py | 85 libc = ctypes.CDLL(ctypes.util.find_library("c"), use_errno=True) variable
|