Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 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 |
||
7 | #include |
||
8 | #include |
||
9 | #include |
||
10 | #include |
||
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 | } |