Lines Matching refs:arg
2011 int arg = 1; in main() local
2022 while(argc > arg) { in main()
2023 if(!strcmp("--version", argv[arg])) { in main()
2034 else if(!strcmp("--pidfile", argv[arg])) { in main()
2035 arg++; in main()
2036 if(argc > arg) in main()
2037 pidname = argv[arg++]; in main()
2039 else if(!strcmp("--portfile", argv[arg])) { in main()
2040 arg++; in main()
2041 if(argc > arg) in main()
2042 portname = argv[arg++]; in main()
2044 else if(!strcmp("--logfile", argv[arg])) { in main()
2045 arg++; in main()
2046 if(argc > arg) in main()
2047 serverlogfile = argv[arg++]; in main()
2049 else if(!strcmp("--logdir", argv[arg])) { in main()
2050 arg++; in main()
2051 if(argc > arg) in main()
2052 logdir = argv[arg++]; in main()
2054 else if(!strcmp("--cmdfile", argv[arg])) { in main()
2055 arg++; in main()
2056 if(argc > arg) in main()
2057 cmdfile = argv[arg++]; in main()
2059 else if(!strcmp("--gopher", argv[arg])) { in main()
2060 arg++; in main()
2065 else if(!strcmp("--ipv4", argv[arg])) { in main()
2069 arg++; in main()
2071 else if(!strcmp("--ipv6", argv[arg])) { in main()
2077 arg++; in main()
2079 else if(!strcmp("--unix-socket", argv[arg])) { in main()
2080 arg++; in main()
2081 if(argc > arg) { in main()
2083 unix_socket = argv[arg]; in main()
2094 arg++; in main()
2097 else if(!strcmp("--port", argv[arg])) { in main()
2098 arg++; in main()
2099 if(argc > arg) { in main()
2101 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()
2102 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
2105 argv[arg]); in main()
2109 arg++; in main()
2112 else if(!strcmp("--srcdir", argv[arg])) { in main()
2113 arg++; in main()
2114 if(argc > arg) { in main()
2115 path = argv[arg]; in main()
2116 arg++; in main()
2119 else if(!strcmp("--keepalive", argv[arg])) { in main()
2120 arg++; in main()
2121 if(argc > arg) { in main()
2123 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()
2124 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
2127 "be number of seconds\n", argv[arg]); in main()
2131 arg++; in main()
2134 else if(!strcmp("--connect", argv[arg])) { in main()
2138 arg++; in main()
2139 if(argc > arg) { in main()
2140 connecthost = argv[arg]; in main()
2141 arg++; in main()