Re: [PATCH 0/7] Add FreeBSD changes to

2018-12-03 Thread Sebastian Huber
Sorry, wrong mailing list. This is for Newlib to fix some issues with libbsd. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key

[PATCH 7/7] sys/time.h: Remove KASSERT

2018-12-03 Thread Sebastian Huber
The KASSERT is only used by the FreeBSD kernel. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/time.h | 12 1 file changed, 12 deletions(-) diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 081e0cf65..c760adfbd 100644 --- a/newlib/libc/i

[PATCH 0/7] Add FreeBSD changes to

2018-12-03 Thread Sebastian Huber
This patch series add all user-space FreeBSD changes up to 2018-11-20 to . Sebastian Huber (1): sys/time.h: Remove KASSERT ian (2): Add inline functions to convert between sbintime_t Correct a misplaced closing paren. imp (3): Renumber copyright clause 4 When converting ns,us,ms to sbt

[PATCH 1/7] Renumber copyright clause 4

2018-12-03 Thread Sebastian Huber
From: imp Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann Pull Request: https://github.com/freebsd/fr

[PATCH 5/7] When converting ns,us,ms to sbt, return the ceil()

2018-12-03 Thread Sebastian Huber
From: imp of the result rather than the floor(). Returning the floor means that sbttoX(Xtosbt(y)) != y for almost all values of y. In practice, this results in a difference of at most 1 in the lsb of the sbintime_t. This difference is meaningless for all current users of these functions, but is i

[PATCH 6/7] Ensure that all values of ns, us and ms work

2018-12-03 Thread Sebastian Huber
From: imp for {n,u,m}stosbt Integer overflows and wrong constants limited the accuracy of these functions and created situatiosn where sbttoXs(Xstosbt(Y)) != Y. This was especailly true in the ns case where we had millions of values that were wrong. Instead, used fixed constants because there's

[PATCH 3/7] sys: further adoption of SPDX licensing ID tags.

2018-12-03 Thread Sebastian Huber
From: pfg Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags

[PATCH 2/7] Add inline functions to convert between sbintime_t

2018-12-03 Thread Sebastian Huber
From: ian and decimal time units. Use them in some existing code that is vulnerable to roundoff errors. The existing constant SBT_1NS is a honeypot, luring unsuspecting folks into writing code such as long_timeout_ns*SBT_1NS to generate the argument for a sleep call. The actual value of 1ns in

[PATCH 4/7] Correct a misplaced closing paren.

2018-12-03 Thread Sebastian Huber
From: ian Does not affect the result, but does clarify (at least for me) that the multiplication happens before the shift. --- newlib/libc/include/sys/time.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h

Re: [rtems-test] powerpc/psim: RTEMS_POSIX_API: Passed:567 Failed:5 Timeout:2 Invalid:0 Wrong:0

2018-12-03 Thread Chris Johns
On 04/12/2018 15:26, Joel Sherrill wrote: > And now I just got this: Ouch. > > + /home/joel/rtems-work/rtems-tools//tester/rtems-test > --rtems-tools=/home/joel/rtems-work/tools/5 --rtems-bsp=erc32 --log=run.log > --mail --mail-from=j...@rtems.org > --mail-to=bu...@rtems.

Re: [rtems-test] powerpc/psim: RTEMS_POSIX_API: Passed:567 Failed:5 Timeout:2 Invalid:0 Wrong:0

2018-12-03 Thread Joel Sherrill
And now I just got this: + /home/joel/rtems-work/rtems-tools//tester/rtems-test --rtems-tools=/home/joel/rtems-work/tools/5 --rtems-bsp=erc32 --log=run.log --mail --mail-from=j...@rtems.org --mail-to=bu...@rtems.org . Traceback (most recent call last): File "/home/joel/rtems-work/rtems-tools/tes

Re: [rtems-test] powerpc/psim: RTEMS_POSIX_API: Passed:567 Failed:5 Timeout:2 Invalid:0 Wrong:0

2018-12-03 Thread Chris Johns
On 04/12/2018 14:49, Joel Sherrill wrote: > On Mon, Dec 3, 2018, 9:34 PM Chris Johns wrote: > On 03/12/2018 17:27, Sebastian Huber wrote: > > On 03/12/2018 05:53, Joel Sherrill wrote: > >> Timeouts: > >>   unlimited.exe > > > > It is strange that t

Re: [rtems-test] powerpc/psim: RTEMS_POSIX_API: Passed:567 Failed:5 Timeout:2 Invalid:0 Wrong:0

2018-12-03 Thread Joel Sherrill
On Mon, Dec 3, 2018, 9:34 PM Chris Johns On 03/12/2018 17:27, Sebastian Huber wrote: > > On 03/12/2018 05:53, Joel Sherrill wrote: > >> Timeouts: > >> unlimited.exe > > > > It is strange that this times out. If I run it by hand, then it runs > without a > > failure: > > > > time psim -i ./powerp

Re: Unstable RTEMS 6 tool chain?

2018-12-03 Thread Chris Johns
On 03/12/2018 17:45, Sebastian Huber wrote: > what about adding an unstable RTEMS 6 tool chain to the RSB which is > automatically updated weekly? I would like to test the Newlib, Binutils, GCC > and > GDB head regularly. I could set up a cron job to check out the Git master each > Sunday (RTEMS,

Re: [rtems-test] powerpc/psim: RTEMS_POSIX_API: Passed:567 Failed:5 Timeout:2 Invalid:0 Wrong:0

2018-12-03 Thread Chris Johns
On 03/12/2018 17:27, Sebastian Huber wrote: > On 03/12/2018 05:53, Joel Sherrill wrote: >> Timeouts: >>   unlimited.exe > > It is strange that this times out. If I run it by hand, then it runs without a > failure: > > time psim -i ./powerpc-rtems5/c/psim/testsuites/samples/unlimited.exe > [...] >

Flight Software Workshop This Week (live feed link)

2018-12-03 Thread Joel Sherrill
Hi The Flight Software Workshop is this week in San Antonio. The workshop is being streamed online. The agenda and links to see the presentation are at: http://flightsoftware.jhuapl.edu/ This is an awesome workshop with a focus on space software applications. Attendees are from around the world.

Re: psxhdrs: add POSIX API Signature Compliance Tests for regex.h File (GCI 2018)

2018-12-03 Thread Joel Sherrill
I pushed this with minor changes. Thanks. On Mon, Dec 3, 2018 at 11:06 AM Himanshu Sekhar Nayak < himanshuwindows...@gmail.com> wrote: > Hi guys, > > Here is the patch for regex.h file. > > Thanks > Himanshu > ___ > devel mailing list > devel@rtems.org

Re: [PATCH] eng/vc-users: Convert wiki page to Rest

2018-12-03 Thread Joel Sherrill
Pushed! The conversion looks really nice! Thanks. --joel On Mon, Dec 3, 2018 at 11:12 AM Marçal Comajoan Cara < mcomajoanc...@gmail.com> wrote: > Converted https://devel.rtems.org/wiki/Developer/Git/Users > to Rest, and TBDs and wiki TODOs into comments. Also changed http > links to https (the

[PATCH] eng/vc-users: Convert wiki page to Rest

2018-12-03 Thread Marçal Comajoan Cara
Converted https://devel.rtems.org/wiki/Developer/Git/Users to Rest, and TBDs and wiki TODOs into comments. Also changed http links to https (the ones that are possible), corrected typos, updated learning resources links and added formattings. This work was part of GCI 2018. --- eng/vc-users.rst |

psxhdrs: add POSIX API Signature Compliance Tests for regex.h File (GCI 2018)

2018-12-03 Thread Himanshu Sekhar Nayak
Hi guys, Here is the patch for regex.h file. Thanks Himanshu From af347943821a04f23f004f75b54506b794a7a3d1 Mon Sep 17 00:00:00 2001 From: Himanshu40 Date: Mon, 3 Dec 2018 22:34:04 +0530 Subject: [PATCH] psxhdrs: add POSIX API Signature Compliance Tests for regex.h File (GCI 2018) --- testsuit

error in regex.h

2018-12-03 Thread Himanshu Sekhar Nayak
okay I have created an ticket here https://devel.rtems.org/ticket/3631#ticket ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

error in regex.h

2018-12-03 Thread Himanshu Sekhar Nayak
okay I will implement it. Thanks Joel for help Thanks Himanshu ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: error in regex.h

2018-12-03 Thread Joel Sherrill
OK. But don't edit the installed regex.h Just add an include to your test. The .h file needs to be fixed if it is broken. That's a separtae issue. I still think is the least you need to include though. I emailed you privately a small test case. --joel On Mon, Dec 3, 2018 at 9:42 AM Himanshu Sek

error in regex.h

2018-12-03 Thread Himanshu Sekhar Nayak
Hi Joel, Seems like I fixed it. I searched over internet and found a possible fix by adding "#include " to regex.h file and compiled it and it doesn't show any error now. But I saw many comments on not using it because off_t is not very standard and replacing off_t with a new typedef that is based

Re: error in regex.h

2018-12-03 Thread Joel Sherrill
On Mon, Dec 3, 2018 at 9:10 AM Himanshu Sekhar Nayak < himanshuwindows...@gmail.com> wrote: > Hi guys, > > I am just creating regcomp.c and I faced an error while compiling it. > Here is the error https://paste.ofcode.org/jkN6L56yprGKEsyfbggf65 > regcomp.c file --> https://paste.ofcode.org/fyqYx7V

error in regex.h

2018-12-03 Thread Himanshu Sekhar Nayak
Hi guys, I am just creating regcomp.c and I faced an error while compiling it. Here is the error https://paste.ofcode.org/jkN6L56yprGKEsyfbggf65 regcomp.c file --> https://paste.ofcode.org/fyqYx7VuzRLtXvcUZpFgxj Any idea ? btw error seems to be in "off_t ". Thanks Himanshu __

[PATCH v3] Add new COPYING file

2018-12-03 Thread Sebastian Huber
Update #3053. --- v2: Add Hesham Almatary: https://devel.rtems.org/ticket/3053#comment:6 v3: Add Jiri Gaisler: https://devel.rtems.org/ticket/3053#comment:7 I am not sure about the first contribution year. COPYING | 41 + 1 file changed, 41 insertions

[PATCH] score: Avoid sbintime_t in API headers

2018-12-03 Thread Sebastian Huber
The sbintime_t is a non-POSIX type and not visible if strict standard options are selected. Move implementation details from to . Update #3598. --- cpukit/headers.am| 2 +- cpukit/include/rtems/score/threadimpl.h | 1 + cpukit/include/rtems/score/timecounter