#include #include int chsize(int handle, long size) { return ftruncate(handle, size); }