sysfunc.c 472 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 K. Lange
  5. *
  6. * sysfunc
  7. *
  8. * Executes an "extended system function" which
  9. * is basically just a super-syscall.
  10. */
  11. #include <syscall.h>
  12. #include <stdlib.h>
  13. int main(int argc, char ** argv) {
  14. if (argc < 2) return 1;
  15. return syscall_system_function(atoi(argv[1]), &argv[2]);
  16. }