Opened on 10/23/09 at 05:28:35
Closed on 06/16/10 at 18:12:37
#1453 closed defect (fixed)
_CLOCKS_PER_SEC_ don't work without Posix
Reported by: | Nickolay Semyonov-Kolchin | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 4.10 |
Component: | score | Version: | 4.10 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description (last modified by Joel Sherrill)
Currently, _CLOCKS_PER_SEC_ is defined as:
#define _CLOCKS_PER_SEC_ sysconf(_SC_CLK_TCK)
in Newlib (newlib/libc/include/machine/time.h)
But 'sysconf' is available, only if you enable Posix support inside RTEMS. CLOCKS_PER_SEC have little to none, relation with Posix. It is part of standard C library.
Possible solutions:
- move sysconf.c from posix to libcsupport.
- make special call inside RTEMS just for this information.
Attachments (1)
Change History (3)
Changed on 06/16/10 at 18:09:26 by Joel Sherrill
Attachment: | pr1453.diff added |
---|
comment:1 Changed on 06/16/10 at 18:12:37 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied to 4.10 and head.
comment:2 Changed on 11/23/14 at 19:14:19 by Joel Sherrill
Description: | modified (diff) |
---|---|
Version: | unknown → 4.10 |
Note: See
TracTickets for help on using
tickets.
add sysconf.c to set always built in posix since newlib uses it