Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Now here's an absolutely amazing idea for a shell feature Message-ID: <3143@auspex.auspex.com> Date: 7 Apr 90 20:44:58 GMT References: <6881:Mar.31.22:37:56.GMT.90@stealth.acf.nyu.edu> <1990Apr4.005444.16017@eng.umd.edu> Organization: Auspex Systems, Santa Clara Lines: 10 >Don't copy the file! Keep track of the length and truncate (BSD has >a syscall, AT&T has a ioctl/fctnl, More properly, System V Release 3.1 and later have an F_FREESP "fcntl" (no "ioctl") that is undocumented. Earlier S5 releases do not have this. It may be documented in S5R4, although it's not in the Third Edition of the SVID. There may be an BSD-compatible "ftruncate()" wrapper provided as well.