This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5998] fwrite returns -1 and errno EINTR instead of a short write when sigaction without SA_RESTART is used


------- Additional Comments From zlynx at acm dot org  2008-03-30 20:24 -------
Fine.  It's your project, do it how you like it.  

What is the rationale for the way it works currently, though?  It is both
different from the man-page and from how POSIX "write" functions and seems to
have no useful feature.  Backward compatibility?

Shall I attempt to patch the documentation?  The current fwrite man page (both
Fedora 9 and Gentoo) states: "fread()  and  fwrite() return the number of items
successfully read or written (i.e., not the number of characters).  If an error
occurs, or the  end-of-file is reached, the return value is a short item count
(or zero)"

If you maintain that -1 and EINTR is fwrite's appropriate response to a signal,
then the above documentation is wrong.

(And the insult?  I can't progam?  I followed this through 20 obscure layers of
libstdc++ and glibc source and I *fixed* the problem in the program.  This bug?
 This is me trying to *help* you.)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5998

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]