int main (int argc, char * argv[]) { printf ("picoVIC – https://github.com/SvenMichaelKlose/shadowvic/\n"); exec_arguments (argc, argv); close_picovic (); return 0; }
int main(int argc, char **argv) { err_setarg0(argv[0]); sigchld_status(); if (argc == 1) { /* Run the built in pipe-line */ exec_pipeline(ncmds, cmds); } else { /* Run command line specified by user */ exec_arguments(argc, argv); } corpse_collector(); return(0); }
int main(int argc, char **argv) { int opt; char *argv0 = argv[0]; setvbuf(stderr, 0, _IOLBF, BUFSIZ); err_setarg0(argv[0]); sigchld_status(); while ((opt = getopt(argc, argv, "v")) != -1) { switch (opt) { case 'v': vflag = 1; break; default: err_usage("[-v] [cmd1 | cmd2 ...]"); break; } } argv += optind - 1; argc -= optind - 1; argv[0] = argv0; fd_info(0); if (argc == 1) { /* Run the built in pipe-line */ exec_pipeline(ncmds, cmds); } else { /* Run command line specified by user */ exec_arguments(argc, argv); } corpse_collector(); return(0); }