ftruncate() now expands files. the macro that 'mail' uses to truncate
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Mar 1994 09:35:14 +0000 (01:35 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Mar 1994 09:35:14 +0000 (01:35 -0800)
commit766dd43601bfdaa7b2a7c1e3fda7347f8be9aeb8
treecd0d8f30ed5a29399d633edab9e3241ed9d88b20
parentaec9a505f9e5f79a2d989a602be97d8cac0081c1
ftruncate() now expands files.  the macro that 'mail' uses to truncate
files has to fflush() them first, lest data in the buffer be appended (after
the truncate).  The resulting behaviour is that nulls get written to the mbox
file before the mail does.
From: "Chris G. Demetriou" <cgd@sun-lamp.cs.berkeley.edu>

SCCS-vsn: usr.bin/mail/def.h 8.2
usr/src/usr.bin/mail/def.h