truncating a file opened via open()

Steven M. Kramer smk at axiom.UUCP
Sun Jun 23 06:26:52 AEST 1985


I wrote a few routines for non-4.2 machines that mimicked the 4.2
routines.  Ftruncate was one of them.  I probably missed some wierd
conditions (like file descriptors refering to non-reg files, ..., and
errno's), but my ftruncate works OK in a pinch.  I posted the
source to net.sources.
-- 
	--steve kramer
	{allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk	(UUCP)
	linus!axiom!smk at mitre-bedford					(MIL)



More information about the Comp.unix.wizards mailing list