time.c 743 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #include <signal.h>
  6. #include <sys/time.h>
  7. #include <time_user.h>
  8. #include "process.h"
  9. #include "user.h"
  10. void user_time_init_tt(void)
  11. {
  12. if(signal(SIGVTALRM, (__sighandler_t) alarm_handler) == SIG_ERR)
  13. panic("Couldn't set SIGVTALRM handler");
  14. set_interval(ITIMER_VIRTUAL);
  15. }
  16. /*
  17. * Overrides for Emacs so that we follow Linus's tabbing style.
  18. * Emacs will notice this stuff at the end of the file and automatically
  19. * adjust the settings for this buffer only. This must remain at the end
  20. * of the file.
  21. * ---------------------------------------------------------------------------
  22. * Local variables:
  23. * c-file-style: "linux"
  24. * End:
  25. */