Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 Charles Sandmann (sandmann@clio.rice.edu)
  2.    setitimer implmentation - used for profiling and alarm
  3.    BUGS: ONLY ONE AT A TIME, first pass code
  4.    This software may be freely distributed, no warranty. */
  5.  
  6. #include <libc/stubs.h>
  7. #include <sys/time.h>
  8. #include <errno.h>
  9. #include <signal.h>
  10. #include <assert.h>
  11.  
  12. static struct itimerval real, prof;
  13.  
  14. /* not right, should compute from current tic count.  Do later */
  15. int getitimer(int which, struct itimerval *value)
  16. {
  17.   errno = EINVAL;
  18.   return -1;
  19. }
  20.  
  21. int setitimer(int which, struct itimerval *value, struct itimerval *ovalue)
  22. {
  23.  return -EPERM;
  24. }
  25.