reboot.c 415 B

1234567891011121314151617
  1. /* vim: tabstop=4 shiftwidth=4 noexpandtab
  2. * This file is part of ToaruOS and is released under the terms
  3. * of the NCSA / University of Illinois License - see LICENSE.md
  4. * Copyright (C) 2013-2014 K. Lange
  5. *
  6. * reboot - Reboot the system
  7. *
  8. */
  9. #include <stdio.h>
  10. #include <syscall.h>
  11. int main(int argc, char ** argv) {
  12. if (syscall_reboot() < 0) {
  13. printf("%s: permission denied\n", argv[0]);
  14. }
  15. return 1;
  16. }