Re: new module 'fseterr'

2007-03-12 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > + #error "Please port gnulib fseterr.c to your platform! Look at the > definitions of ferror and clearerr on your system, then report this to > bug-gnulib." Thanks! I forgot another reason to use this approach: it allows us to discover more easily wh

Re: new module 'fseterr'

2007-03-10 Thread Bruno Haible
Simon Josefsson wrote: > Consider making it possible to not use this workaround, but > rather fail with a compilation error. I wouldn't want code that > invoke abort in a library, for example. Makes sense. The Solaris 10 include files contain comments like this: * Even though the contents of th

Re: new module 'fseterr'

2007-03-08 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > if (dup2 (fd2, fd) < 0) > /* Whee... we botched the stream and now cannot restore it! */ > abort (); Hi! Consider making it possible to not use this workaround, but rather fail with a compilation error. I wouldn't want code that invo