source: rtems/cpukit/posix/src/sysconf.c @ c55df85

4.104.114.84.95
Last change on this file since c55df85 was c8d6691, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/01 at 21:04:21

2001-09-13 Joel Sherrill <joel@…>

  • src/sysconf.c: Fix typo syntax error accidentally committed.
  • Property mode set to 100644
File size: 627 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#if defined(__sparc__)
35    case 515: /* Solaris _SC_STACK_PROT */
36     return 0;
37#endif
38
39    default:
40      break;
41  }
42
43  return POSIX_NOT_IMPLEMENTED();
44}
Note: See TracBrowser for help on using the repository browser.