Lines Matching refs:argv
925 int main(int argc, char *argv[]) in main() argument
938 if(!strcmp("--version", argv[arg])) { in main()
948 else if(!strcmp("--pidfile", argv[arg])) { in main()
951 pidname = argv[arg++]; in main()
953 else if(!strcmp("--portfile", argv[arg])) { in main()
956 portname = argv[arg++]; in main()
958 else if(!strcmp("--config", argv[arg])) { in main()
961 configfile = argv[arg++]; in main()
963 else if(!strcmp("--logfile", argv[arg])) { in main()
966 serverlogfile = argv[arg++]; in main()
968 else if(!strcmp("--logdir", argv[arg])) { in main()
971 logdir = argv[arg++]; in main()
973 else if(!strcmp("--ipv6", argv[arg])) { in main()
980 else if(!strcmp("--ipv4", argv[arg])) { in main()
988 else if(!strcmp("--port", argv[arg])) { in main()
992 unsigned long ulnum = strtoul(argv[arg], &endptr, 10); in main()
993 if((endptr != argv[arg] + strlen(argv[arg])) || in main()
996 argv[arg]); in main()