Date: Thu, 15 Apr 2004 13:28:57 +0100 From: Colin Percival <colin.percival@wadham.ox.ac.uk> To: freebsd-current@freebsd.org Subject: Behaviour of fflush() on a file opened for reading Message-ID: <6.0.1.1.1.20040415132124.03c7c248@imap.sfu.ca>
next in thread | raw e-mail | index | archive | help
PR kern/65402 complains about fflush() failing if called on a file opened read-only. Our libc returns an error; many do not. According to the ISO C standard, behaviour here is undefined. Should we change our behaviour to meet the expectations of broken programs? In order to avoid creating lots of noise on the list, please reply to me directly. Colin Percival
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.1.20040415132124.03c7c248>