Lines Matching +full:capture +full:- +full:exit
77 * Generate a string for a Win32-specific error (i.e. an error generated when
97 errbuf[errlen - 1] = '\0'; in win32_strerror()
98 errbuf[errlen - 2] = '\0'; in win32_strerror()
99 errlen -= 2; in win32_strerror()
143 if (sigaction(SIGUSR1, &action, NULL) == -1) in capture_thread_func()
150 status = pcap_dispatch(pd, -1, countme, in capture_thread_func()
203 while ((op = getopt(argc, argv, "i:n")) != -1) { in main()
221 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
224 error("no interfaces available for capture"); in main()
225 device = strdup(devlist->name); in main()
272 error("Can't create capture thread: %s", in main()
278 error("Can't create capture thread: %s", strerror(status)); in main()
285 * Force a wakeup in the capture thread. in main()
300 warning("Can't interrupt capture thread: %s", in main()
306 * Now wait for the capture thread to terminate. in main()
322 exit(status == -1 ? 1 : 0); in main()
336 (void)fprintf(stderr, "Usage: %s [ -n ] [ -i interface ] [ expression ]\n", in usage()
338 exit(1); in usage()
353 if (fmt[-1] != '\n') in error()
356 exit(1); in error()
372 if (fmt[-1] != '\n') in warning()
404 dst[-1] = ' '; in copy_argv()
406 dst[-1] = '\0'; in copy_argv()