source: rtems/c/src/exec/posix/src/sysconf.c @ aaf6063

4.104.114.84.95
Last change on this file since aaf6063 was f42b726, checked in by Joel Sherrill <joel.sherrill@…>, on 01/24/01 at 14:17:28

2001-01-24 Ralf Corsepius <corsepiu@…>

  • configure.in: Add src/config.h
  • src/Makefile.am: Add INCLUDES += -I. to pickup config.h
  • src/.cvsignore: Add config.h and stamp-h
  • src/*.c: Add config.h support.
  • Property mode set to 100644
File size: 538 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#if HAVE_CONFIG_H
6#include "config.h"
7#endif
8
9#include <time.h>
10#include <unistd.h>
11
12#include <rtems/system.h>
13#include <rtems/score/tod.h>
14
15/*PAGE
16 *
17 *  4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95
18 */
19
20long sysconf(
21  int name
22)
23{
24
25  switch (name) {
26    case _SC_CLK_TCK:
27      return _TOD_Ticks_per_second;
28
29    case _SC_OPEN_MAX: {
30        extern unsigned32 rtems_libio_number_iops;
31        return rtems_libio_number_iops;
32      }
33
34    default:
35      break;
36  }
37
38  return POSIX_NOT_IMPLEMENTED();
39}
Note: See TracBrowser for help on using the repository browser.