Bug in libc-4.5.8 ,fputs

Bug in libc-4.5.8 ,fputs

Post by Peter Brouw » Thu, 24 Feb 1994 17:09:09



Hello,

I tried to get my mail system to work but lmail failed ( error in writing to
temp).
It turned out to be a bug in fputs. It always returns 1 instead of the number
of characters writen. lmail checks on this.

Is this bug solved in libc-4.5.19?
Do I run into other problems when a upgrade to libc-4.5.19?

--
Regards, Peter Brouwer                 /\_/\

-----------------------------------oOO--(_)--OOo----------------------------
# Digital Equipment Enterprise,        / WorkGroup Systems, Office Product Set
# DIGITAL : HLDEO1::BROUWER_P,829-4218 \ Dep Office Product Sets, P.O.Box 245,
# PHONE:[+31][0]55 43 ext 4218,fax 9133  7300AE Apeldoorn, The Netherlands.

 
 
 

Bug in libc-4.5.8 ,fputs

Post by Peter Brouw » Fri, 25 Feb 1994 17:04:45




>: Hello,
>: I tried to get my mail system to work but lmail failed ( error in writing to
>: temp).
>: It turned out to be a bug in fputs. It always returns 1 instead of the number
>: of characters writen. lmail checks on this.
>lmail is wrong. Check the ANSI C.

I find this hard to believe. I have checked XOPEN. There is a difference
between puts and fputs. For puts a non zero non negative number is specified.
For fputs it says, returns the value it has written if succesfull.

I do not have the ANSI-C spec at hand but XOPEN says:
Any conflicts between this issue of the Guide and either IEE Std 1003.1-1988 or
Draft ANSI X3.159, Programming Language C are unintentional.

--
Regards, Peter Brouwer                 /\_/\

-----------------------------------oOO--(_)--OOo----------------------------
# Digital Equipment Enterprise,        / WorkGroup Systems, Office Product Set
# DIGITAL : HLDEO1::BROUWER_P,829-4218 \ Dep Office Product Sets, P.O.Box 245,
# PHONE:[+31][0]55 43 ext 4218,fax 9133  7300AE Apeldoorn, The Netherlands.

 
 
 

Bug in libc-4.5.8 ,fputs

Post by Jeff Jennin » Sat, 26 Feb 1994 02:52:06




: >: Hello,

: >: I tried to get my mail system to work but lmail failed ( error in writing to
: >: temp).
: >: It turned out to be a bug in fputs. It always returns 1 instead of the number
: >: of characters writen. lmail checks on this.

: >lmail is wrong. Check the ANSI C.

: I find this hard to believe. I have checked XOPEN. There is a difference
: between puts and fputs. For puts a non zero non negative number is specified.
: For fputs it says, returns the value it has written if succesfull.

: I do not have the ANSI-C spec at hand but XOPEN says:
: Any conflicts between this issue of the Guide and either IEE Std 1003.1-1988 or
: Draft ANSI X3.159, Programming Language C are unintentional.

quoting from the ANSI X3.159-1989, section 4.9.7.4, page 143, line 12:

The fputs function returns EOF if a write error occurs; otherwise it returns
a nonnegative value.

Looks like XOPEN has an unintentional conflict with the ANSI-C spec. ;-)

- jeff
--
Jeff Jennings                  __o   | Imagination is more important

LSVL 4 (303)673-7855        (_)/ (_) |                   - Albert Einstein
GCS -d+ -p+ c++ l++ u+(++) e++ m+ s/+ n+(---) h---(*) f+(-) !g w+ t++ r- y+(*)

 
 
 

Bug in libc-4.5.8 ,fputs

Post by Peter Brouw » Sat, 26 Feb 1994 17:20:51




>: I do not have the ANSI-C spec at hand but XOPEN says:
>: Any conflicts between this issue of the Guide and either IEE Std 1003.1-1988 or
>: Draft ANSI X3.159, Programming Language C are unintentional.
>quoting from the ANSI X3.159-1989, section 4.9.7.4, page 143, line 12:
>The fputs function returns EOF if a write error occurs; otherwise it returns
>a nonnegative value.
>Looks like XOPEN has an unintentional conflict with the ANSI-C spec. ;-)

Will we ever see the spec get into synchronisation?

--
Regards, Peter Brouwer                 /\_/\

-----------------------------------oOO--(_)--OOo----------------------------
# Digital Equipment Enterprise,        / WorkGroup Systems, Office Product Set
# DIGITAL : HLDEO1::BROUWER_P,829-4218 \ Dep Office Product Sets, P.O.Box 245,
# PHONE:[+31][0]55 43 ext 4218,fax 9133  7300AE Apeldoorn, The Netherlands.

 
 
 

1. problem with libc-4.5.8

Hi all,

I got this problem since I updated libraries to be
libc.so-4.5.8 and libm.so-4.5.8.
Every thing works fine, except that when I do "sync",
"sync", "reboot". My linux box hangs, and I have to hard
reset it. Same thing when I exit X Windows.

Does some body guest what is going on there?
Any clue will be appreciated.
Thanks

2. SUMMARY: mail spool used to store files

3. Problems compiling C-News with GCC 2.5.7/libc-4.5.8

4. "Respawning" at boot??

5. libc-4.5.8 or pl14 broke screen-3.5.2

6. fasttrak66

7. InterViews 3.1 and libc-4.5.8 anyone?

8. How to make PageUp and Pagedown keys work>

9. ftp: works with libc-4.5.8 and kernel 0.99pl14g

10. libc-4.5.8: strace from cron not working

11. ftp broken with libc-4.5.8

12. Printf bug in libc-4.6.27 -- libc-4.7.5

13. Compiling w/ gcc2.5.7, libc4.5.8, "_mcount" libg bug?