Lines Matching refs:argv
954 int main(int argc, char *argv[]) in main() argument
972 if(!strcmp("--version", argv[arg])) { in main()
982 else if(!strcmp("--pidfile", argv[arg])) { in main()
985 pidname = argv[arg++]; in main()
987 else if(!strcmp("--portfile", argv[arg])) { in main()
990 portname = argv[arg++]; in main()
992 else if(!strcmp("--config", argv[arg])) { in main()
995 configfile = argv[arg++]; in main()
997 else if(!strcmp("--backend", argv[arg])) { in main()
1000 backendaddr = argv[arg++]; in main()
1002 else if(!strcmp("--backendport", argv[arg])) { in main()
1005 backendport = (unsigned short)atoi(argv[arg++]); in main()
1007 else if(!strcmp("--logfile", argv[arg])) { in main()
1010 serverlogfile = argv[arg++]; in main()
1012 else if(!strcmp("--reqfile", argv[arg])) { in main()
1015 reqlogfile = argv[arg++]; in main()
1017 else if(!strcmp("--ipv6", argv[arg])) { in main()
1024 else if(!strcmp("--ipv4", argv[arg])) { in main()
1031 else if(!strcmp("--unix-socket", argv[arg])) { in main()
1036 unix_socket = argv[arg]; in main()
1049 else if(!strcmp("--port", argv[arg])) { in main()
1053 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()