OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [posix/] [src/] [sysconf.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  sysconf.c,v 1.6 2001/09/13 21:04:21 joel Exp
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
 
20
long 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.