Re: [gccsdk] fgets problem/Unixlib

2014-03-08 Thread John Tytgat
In message <20140308201749.gy6...@chiark.greenend.org.uk> Theo Markettos wrote: > On Sat, Mar 08, 2014 at 04:34:37PM +0100, John Tytgat wrote: > > Roughly a year ago I did several UnixLib fixes for returning more > > accurate errno error values and made a small unittest framework > > (r

Re: [gccsdk] fgets problem/Unixlib

2014-03-08 Thread Theo Markettos
On Sat, Mar 08, 2014 at 04:34:37PM +0100, John Tytgat wrote: > Roughly a year ago I did several UnixLib fixes for returning more > accurate errno error values and made a small unittest framework > (recipe/files/gcc/libunixlib/unittest) for testing these changes. It > would be interesting to have t

Re: [gccsdk] fgets problem/Unixlib

2014-03-08 Thread John Tytgat
In message <53185d39.9090...@sky.com> Lee Noar wrote: > On 05/03/14 21:41, Theo Markettos wrote: > > On Wed, Mar 05, 2014 at 08:06:57PM +, Lee Noar wrote: > >> I tried the test binaries, both dynamic and static, with RISC OS running > >> in rpcemu. They both worked as expected. When

Re: [gccsdk] fgets problem/Unixlib

2014-03-06 Thread Lee Noar
On 05/03/14 21:41, Theo Markettos wrote: On Wed, Mar 05, 2014 at 08:06:57PM +, Lee Noar wrote: I tried the test binaries, both dynamic and static, with RISC OS running in rpcemu. They both worked as expected. When you say that there is an infinite loop, do you get: As a warning, UnixLib's

Re: [gccsdk] fgets problem/Unixlib

2014-03-05 Thread Theo Markettos
On Wed, Mar 05, 2014 at 08:06:57PM +, Lee Noar wrote: > I tried the test binaries, both dynamic and static, with RISC OS running > in rpcemu. They both worked as expected. When you say that there is an > infinite loop, do you get: As a warning, UnixLib's behaviour is quite sensitive to the und

Re: [gccsdk] fgets problem/Unixlib

2014-03-05 Thread Lee Noar
On 04/03/14 11:05, david_m_gee wrote: On GCC 4.1.2/Unixlib, running on a Raspberry Pi, fgets() does not appear to work. It returns NULL when there is data in the file to read. It makes no difference whether the code is statically or dynamically linked, but the shared C library version works fine

[gccsdk] fgets problem/Unixlib

2014-03-04 Thread david_m_gee
On GCC 4.1.2/Unixlib, running on a Raspberry Pi, fgets() does not appear to work. It returns NULL when there is data in the file to read. It makes no difference whether the code is statically or dynamically linked, but the shared C library version works fine with exactly the same data file. See ht