" -p, --pid operate on existing given pid\n"
" -c, --cpu-list display and specify cpus in list format\n"
));
- print_usage_help_options(25);
+ printf(USAGE_HELP_OPTIONS(25));
fputs(USAGE_SEPARATOR, out);
fprintf(out, _(
" e.g. 0-31:2 is equivalent to mask 0x55555555\n"),
program_invocation_short_name);
- fprintf(out, USAGE_MAN_TAIL("taskset(1)"));
+ printf(USAGE_MAN_TAIL("taskset(1)"));
exit(EXIT_SUCCESS);
}
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
memset(&ts, 0, sizeof(ts));
case 'c':
ts.use_list = 1;
break;
+
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
- break;
default:
errtryhelp(EXIT_FAILURE);
}
if (!pid) {
argv += optind + 1;
execvp(argv[0], argv);
- err(EXIT_FAILURE, _("failed to execute %s"), argv[0]);
+ errexec(argv[0]);
}
return EXIT_SUCCESS;