stop.c 353 B

1234567891011121314151617181920212223
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #include <stdlib.h>
  7. #include "system.h"
  8. void
  9. sys_stop(how)
  10. int how;
  11. {
  12. switch(how) {
  13. case S_END:
  14. exit(0);
  15. case S_EXIT:
  16. exit(1);
  17. case S_ABORT:
  18. default:
  19. abort();
  20. }
  21. }