Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dbpf.py145 ret = libc.syscall(__NR_bpf, BPF_MAP_CREATE, attr.CPointer(), len(attr))
146 csocket.MaybeRaiseSocketError(ret)
147 return ret
156 ret = libc.syscall(__NR_bpf, BPF_MAP_UPDATE_ELEM,
158 csocket.MaybeRaiseSocketError(ret)
166 ret = libc.syscall(__NR_bpf, BPF_MAP_LOOKUP_ELEM,
168 csocket.MaybeRaiseSocketError(ret)
177 ret = libc.syscall(__NR_bpf, BPF_MAP_GET_NEXT_KEY,
179 csocket.MaybeRaiseSocketError(ret)
186 ret = libc.syscall(__NR_bpf, BPF_MAP_DELETE_ELEM,
[all …]
Dcsocket.py93 def MaybeRaiseSocketError(ret): argument
94 if ret < 0:
189 ret = libc.bind(s.fileno(), to.CPointer(), len(to))
190 MaybeRaiseSocketError(ret)
191 return ret
196 ret = libc.connect(s.fileno(), to.CPointer(), len(to))
197 MaybeRaiseSocketError(ret)
198 return ret
256 ret = libc.sendmsg(s.fileno(), msghdr, 0)
257 MaybeRaiseSocketError(ret)
[all …]
Dmultinetwork_test.py65 ret = os.spawnvp(os.P_WAIT, iptables, args.split(" "))
66 if ret: