>Here is ftruncate, in full glory. Uhh, no, it isn't, it's "truncate". "ftruncate" is harder, since it takes a file descriptor, not a path name, as its first argument....