HomeFreeBSD

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

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 Jul 12 2009, 1:09 PM
Parents
rG5861f9665471: Test suite for the poll(2)/select(2) on fifos, pipes and sockets,
Branches
Unknown
Tags
Unknown

Event Timeline