Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: truncating an open (locked) file Keywords: truncate portable Message-ID: <1660@auspex.auspex.com> Date: 20 May 89 05:49:27 GMT References: <269@sawmill.UUCP> <697@mitisft.Convergent.COM> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: comp Organization: Auspex Systems, Santa Clara Lines: 13 >No. There is not. Only hope: there is a truncate() and ftruncate() call >in POSIX, so there will be one in Sys V.4. Well, the conclusion ("there will be [f]truncate in S5R4") is, as far as I know, true, but it has nothing to do with the premise: 1) if by POSIX you mean 1003.1, neither "truncate" nor "ftruncate" appear as specified functions - period; 2) if by POSIX you mean some under-development 1003.N, they haven't been ratified (or whatever it is you do to stamp a standard Property of the Zoo) yet, so AT&T isn't *obliged* by those standards to provide it.