[PATCH v2] shell: Fix warning visible with latest Newlib

2016-04-08 Thread Sebastian Huber
Works also with previous Newlib versions. --- cpukit/libmisc/shell/main_date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c index 9b970a6..6070ff0 100644 --- a/cpukit/libmisc/shell/main_date.c +++ b/cpukit/libmisc/shell/m

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Chris Johns
On 8/04/2016 4:49 PM, Sebastian Huber wrote: This avoids the calculation of this value at run-time, similar to rtems_configuration_get_nanoseconds_per_tick(). Delete TOD_TICKS_PER_SECOND and replace it with rtems_configuration_get_ticks_per_second(). --- a/cpukit/sapi/include/confdefs.h +++ b/cp

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Sebastian Huber
On 08/04/16 09:06, Chris Johns wrote: On 8/04/2016 4:49 PM, Sebastian Huber wrote: This avoids the calculation of this value at run-time, similar to rtems_configuration_get_nanoseconds_per_tick(). Delete TOD_TICKS_PER_SECOND and replace it with rtems_configuration_get_ticks_per_second(). ---

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Chris Johns
On 8/04/2016 5:35 PM, Sebastian Huber wrote: On 08/04/16 09:06, Chris Johns wrote: I assume the microsecond, nanosecond and tick per sec values all need to agree. Does anything check this is the case and raise a fatal error if they do not? Currently nobody checks this. Should we check this vi

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Sebastian Huber
On 08/04/16 10:07, Chris Johns wrote: On 8/04/2016 5:35 PM, Sebastian Huber wrote: On 08/04/16 09:06, Chris Johns wrote: I assume the microsecond, nanosecond and tick per sec values all need to agree. Does anything check this is the case and raise a fatal error if they do not? Currently no

Re: Move POSIX network headers like etc. to Newlib?

2016-04-08 Thread Sebastian Huber
On 08/04/16 04:22, Chris Johns wrote: On 8/04/2016 12:37 AM, Joel Sherrill wrote: Chris and I have discussed at least some of the network services being considered packages beyond the stack. Stuff like httpd, ftpd, and telnetd should be able to work with either stack. Having one instance of t

[examples-v2 1/2] Compile filesystem testcase

2016-04-08 Thread Peng Fan
Support compiling filesystem testcases. If not, filesystem testcases will not be compiled. Signed-off-by: Peng Fan --- Makefile| 2 +- filesystem/Makefile | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 filesystem/Makefile diff --git a/Makefile b/Makef

[examples-v2 2/2] fat_ramdisk: define POSIX keys number

2016-04-08 Thread Peng Fan
define POSIX KEYS and PAIRS to 16, otherwise met: " pthread_setspecific(shell_current_env_key) " Signed-off-by: Peng Fan --- filesystem/fat_ramdisk/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/filesystem/fat_ramdisk/init.c b/filesystem/fat_ramdisk/init.c index 2fff705..62721f1 1

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Chris Johns
On 8/04/2016 6:30 PM, Sebastian Huber wrote: The _Assert() is only active in case you use RTEMS_DEBUG. Then that is no good. I don't think its feasible to avoid . Its now the only way to create a configuration. Sorry, but I do not like confdefs getting these values in this way. This is

Re: Move POSIX network headers like etc. to Newlib?

2016-04-08 Thread Chris Johns
On 8/04/2016 6:34 PM, Sebastian Huber wrote: On 08/04/16 04:22, Chris Johns wrote: On 8/04/2016 12:37 AM, Joel Sherrill wrote: Chris and I have discussed at least some of the network services being considered packages beyond the stack. Stuff like httpd, ftpd, and telnetd should be able to wor

Re: Move POSIX network headers like etc. to Newlib?

2016-04-08 Thread Sebastian Huber
On 08/04/16 11:25, Chris Johns wrote: We want to update the mongoose HTTP server to support HTTPS. Does this mean we have forked mongoose? Maybe it needs to be called something else if this happens. Since mongoose is in the RTEMS sources we already forked it. Upstream mongoose was forked

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Sebastian Huber
On 08/04/16 11:22, Chris Johns wrote: I don't think its feasible to avoid . Its now the only way to create a configuration. Sorry, but I do not like confdefs getting these values in this way. This is not a great long term solution. Easy to add very hard to remove. Maybe you need make s

Re: Move POSIX network headers like etc. to Newlib?

2016-04-08 Thread Gedare Bloom
On Fri, Apr 8, 2016 at 5:32 AM, Sebastian Huber wrote: > > > On 08/04/16 11:25, Chris Johns wrote: >>> >>> We want to update the >>> mongoose HTTP server to support HTTPS. >> >> >> Does this mean we have forked mongoose? Maybe it needs to be called >> something else if this happens. > > > Since mo

Re: [examples-v2 1/2] Compile filesystem testcase

2016-04-08 Thread Gedare Bloom
you can remove --signed-off-by do you know if the filesystem testcases are compiled correctly when using the rtems_waf approach to building examples-v2? On Fri, Apr 8, 2016 at 4:33 AM, Peng Fan wrote: > Support compiling filesystem testcases. > If not, filesystem testcases will not be compiled.

Re: [examples-v2 2/2] fat_ramdisk: define POSIX keys number

2016-04-08 Thread Gedare Bloom
looks good to me On Fri, Apr 8, 2016 at 4:33 AM, Peng Fan wrote: > define POSIX KEYS and PAIRS to 16, otherwise met: > " > pthread_setspecific(shell_current_env_key) > " > > Signed-off-by: Peng Fan > --- > filesystem/fat_ramdisk/init.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a

Re: [examples-v2 1/2] Compile filesystem testcase

2016-04-08 Thread Peng Fan
Hi Gedare, I met error when `waf`: "ImportError: No module named rtems_waf.rtems" This patch will not be accpetted, if switch to use waf? If you plan to accpet this patch, I can discard signed off and send out V2. Thanks, Peng. 2016-04-08 19:55 GMT+08:00 Gedare Bloom : > you can remove --signe

Re: [PATCH 02/12] score: Add ticks per second to configuration

2016-04-08 Thread Chris Johns
On 8/04/2016 7:34 PM, Sebastian Huber wrote: On 08/04/16 11:22, Chris Johns wrote: I don't think its feasible to avoid . Its now the only way to create a configuration. Sorry, but I do not like confdefs getting these values in this way. This is not a great long term solution. Easy to add very