source: rtems/cpukit/posix/src/getitimer.c @ d05ab35

4.104.11
Last change on this file since d05ab35 was d05ab35, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 20, 2008 at 9:52:19 PM

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: 656 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
21int getitimer(
22  int               which,
23  struct itimerval *value
24)
25{
26  switch ( which ) {
27    case ITIMER_REAL:  break;
28    case ITIMER_VIRTUAL: break;
29    case ITIMER_PROF: break;
30  }
31  rtems_set_errno_and_return_minus_one( ENOSYS );
32  /* return -1; */
33}
34
Note: See TracBrowser for help on using the repository browser.