int main(int argc, char *argv[]) { int err; if (strcmp(program_invocation_short_name, "kmod") == 0) err = handle_kmod_commands(argc, argv); else err = handle_kmod_compat_commands(argc, argv); return err; }
int main(int argc, char *argv[]) { const char *binname = basename(argv[0]); int err; if (strcmp(binname, "kmod") == 0) err = handle_kmod_commands(argc, argv); else err = handle_kmod_compat_commands(argc, argv); return err; }