Lines Matching refs:res
44 static void logExecError(const char* argv[], int res, int status) { in logExecError() argument
52 ALOGE("exec() res=%d, status=%d for %s", res, status, args.c_str()); in logExecError()
56 int res; in execIptablesCommand() local
59 res = android_fork_execvp(argc, (char **)argv, &status, false, in execIptablesCommand()
61 if (res || !WIFEXITED(status) || WEXITSTATUS(status)) { in execIptablesCommand()
63 logExecError(argv, res, status); in execIptablesCommand()
65 if (res) in execIptablesCommand()
66 return res; in execIptablesCommand()
94 int res = 0; in execIptables() local
97 res |= execIptablesCommand(argsList.size(), argv, silent); in execIptables()
101 res |= execIptablesCommand(argsList.size(), argv, silent); in execIptables()
103 return res; in execIptables()
109 int res = execIptables(target, false, args); in execIptables() local
111 return res; in execIptables()
117 int res = execIptables(target, true, args); in execIptablesSilently() local
119 return res; in execIptablesSilently()
137 int res = android_fork_execvp_ext( in execIptablesRestoreCommand() local
140 if (res || status) { in execIptablesRestoreCommand()
141 ALOGE("%s failed with res=%d, status=%d", argv[0], res, status); in execIptablesRestoreCommand()
149 int res = 0; in execIptablesRestore() local
151 res |= execIptablesRestoreCommand(IPTABLES_RESTORE_PATH, commands); in execIptablesRestore()
154 res |= execIptablesRestoreCommand(IP6TABLES_RESTORE_PATH, commands); in execIptablesRestore()
156 return res; in execIptablesRestore()
210 addrinfo *res; in parsePrefix() local
214 int ret = getaddrinfo(addressString.c_str(), NULL, &hints, &res); in parsePrefix()
215 if (ret || !res) { in parsePrefix()
222 switch (res[0].ai_family) { in parsePrefix()
227 sockaddr_in *sin = (sockaddr_in *) res[0].ai_addr; in parsePrefix()
236 sockaddr_in6 *sin6 = (sockaddr_in6 *) res[0].ai_addr; in parsePrefix()
242 freeaddrinfo(res); in parsePrefix()
248 freeaddrinfo(res); in parsePrefix()
252 *family = res[0].ai_family; in parsePrefix()
254 freeaddrinfo(res); in parsePrefix()