truncating an open (locked) file

Guy Harris guy at auspex.auspex.com
Sat May 20 15:49:27 AEST 1989


>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.



More information about the Comp.unix.questions mailing list