4.104.115
Last change
on this file since d05ab351 was
d05ab351,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/20/08 at 21:52:19
|
2008-11-20 Joel Sherrill <joel.sherrill@…>
- posix/Makefile.am, posix/include/rtems/posix/psignal.h: Add stubs for
gettimer() and setitimer().
- posix/src/getitimer.c, posix/src/setitimer.c: New files.
|
-
Property mode set to
100644
|
File size:
702 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2008. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <time.h> |
---|
17 | #include <sys/time.h> |
---|
18 | #include <errno.h> |
---|
19 | #include <rtems/seterr.h> |
---|
20 | |
---|
21 | int setitimer( |
---|
22 | int which, |
---|
23 | const struct itimerval *value, |
---|
24 | struct itimerval *ovalue |
---|
25 | ) |
---|
26 | { |
---|
27 | switch ( which ) { |
---|
28 | case ITIMER_REAL: break; |
---|
29 | case ITIMER_VIRTUAL: break; |
---|
30 | case ITIMER_PROF: break; |
---|
31 | } |
---|
32 | rtems_set_errno_and_return_minus_one( ENOSYS ); |
---|
33 | /* return -1; */ |
---|
34 | } |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.