HomeFreeBSD

Fix fwrite() to return 0 when size or nmemb are zero.
rS195637Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix fwrite() to return 0 when size or nmemb are zero.

Right now nmemb is returned when size is 0. In newer versions of the
standards, it is explicitly required that fwrite() should return 0.

Submitted by: Christoph Mallon
Approved by: re (kib)

Details

Provenance
edAuthored on
Parents
rS195636: Test suite for the poll(2)/select(2) on fifos, pipes and sockets,
Branches
Unknown
Tags
Unknown

Event Timeline