Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.lang.c Subject: Re: PD ftruncate needed Message-ID: <2550093@hpisod2.HP.COM> Date: 21 Jun 89 21:37:51 GMT References: <2132@calypso.oakhill.UUCP> Organization: Hewlett Packard, Cupertino Lines: 14 > I probably would add it to an implemenation as a command to > fcntl(), using similar syntax to the locking primitives, with > similar power (being able to delete an arbitrary region, with or > without modifiing the "seek" positions of parts of the stream, > and allowing an implimentation to require "block aligned" deletes > if the end of the file is not one of the boundaries). Likely, no > one would use this version either, but it wouldn't require > another manual page... System V.4 does exactly this; unfortunately, they use "struct flock" for it, and the values of whence are still "SEEK_CUR", "SEEK_END", etc. ICK. Dave