Lines Matching refs:argv
208 static int execCommand( int argc, char** argv) { in execCommand() argument
209 if (argc <= 0 || argv == nullptr || argv[0] == nullptr) { in execCommand()
216 arguments.insert(arguments.begin(), argv, argv + argc); in execCommand()
220 if (execvp(argv[0], arguments.data()) == -1) { in execCommand()
224 "Could not execute command '%s", argv[0]); in execCommand()
233 if (strchr(argv[i], ' ')) { in execCommand()
234 sncatf(buffer, sizeof(buffer), " \"%s\"", argv[i]); in execCommand()
236 sncatf(buffer, sizeof(buffer), " %s", argv[i]); in execCommand()
251 int main(int argc, char* argv[]) { in main() argument
260 if (::strcmp(argv[i], "-u") == 0) { in main()
265 user = argv[++i]; in main()
266 } else if (::strcmp(argv[i], "-g") == 0) { in main()
271 group = argv[++i]; in main()
284 printUsage(argv[0]); in main()
289 if (!setNetworkNamespace(argv[nsArg])) { in main()
308 return execCommand(argc - execArg, &argv[execArg]); in main()