[comp.unix.wizards] POSIX/v7 equiv for ftruncate?

webber@athos.rutgers.edu (Bob Webber) (01/09/89)

Given the current trend toward Unix on multiuser machines, running out
of file space on a partition is becoming endemic.  The question arises
of what is the optimal way of making use of the file space you already
have and returning some of it where possible.  A program INSERT was
recently posted to alt.sources that hinges on the use of ftruncate
(2-BSD) to collapse the file to the appropriate size after having
written into it.  Is there any POSIX/v7 idiom for this?

---- BOB (webber@athos.rutgers.edu ; rutgers!athos.rutgers.edu!webber)

guy@auspex.UUCP (Guy Harris) (01/10/89)

>...the use of ftruncate (2-BSD) to collapse the file to the appropriate
>size after having written into it.  Is there any POSIX/v7 idiom for this?

No.