4.104.114.95
Last change
on this file since f73fc29 was
f73fc29,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/18/08 at 19:18:52
|
2008-08-18 Joel Sherrill <joel.sherrill@…>
- itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
itron/src/task.c, libcsupport/src/newlibc_exit.c,
libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c,
posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h,
rtems/src/tasks.c, score/include/rtems/score/stack.h,
score/inline/rtems/score/stack.inl,
score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix
various nested-externs warnings.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2007. |
---|
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 <unistd.h> |
---|
18 | #include <errno.h> |
---|
19 | |
---|
20 | #include <rtems/system.h> |
---|
21 | #include <rtems/seterr.h> |
---|
22 | #include <rtems/score/tod.h> |
---|
23 | #include <rtems/libio_.h> |
---|
24 | |
---|
25 | #include <sys/param.h> |
---|
26 | |
---|
27 | /*PAGE |
---|
28 | * |
---|
29 | * 4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95 |
---|
30 | */ |
---|
31 | |
---|
32 | long sysconf( |
---|
33 | int name |
---|
34 | ) |
---|
35 | { |
---|
36 | |
---|
37 | switch (name) { |
---|
38 | case _SC_CLK_TCK: |
---|
39 | return (TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick); |
---|
40 | |
---|
41 | case _SC_OPEN_MAX: { |
---|
42 | return rtems_libio_number_iops; |
---|
43 | } |
---|
44 | |
---|
45 | case _SC_GETPW_R_SIZE_MAX: |
---|
46 | return 1024; |
---|
47 | |
---|
48 | case _SC_PAGESIZE: |
---|
49 | return PAGE_SIZE; |
---|
50 | |
---|
51 | #if defined(__sparc__) |
---|
52 | case 515: /* Solaris _SC_STACK_PROT */ |
---|
53 | return 0; |
---|
54 | #endif |
---|
55 | |
---|
56 | default: |
---|
57 | break; |
---|
58 | } |
---|
59 | |
---|
60 | rtems_set_errno_and_return_minus_one( EINVAL ); |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.