chsize - change size of satellite file
points to a path name of a file.
changes the size of that file according to
, the argument that specifies the number of 512 byte blocks to
allocate the file.
If the file is currently smaller than
reallocates space to the file, adding the required number of blocks.
If a file is currently larger than
but its contents require no more than
blocks, it is truncated to
is smaller than the number of blocks required by the contents of the
file, file is only truncated to the minimum size that will accommodate
the contents of the file.
will fail and no file size will change if one or more of the following
The path name specifies a directory or file that does not
The path name points to a directory, not a file. [EISDIR]
The file system is out of space. [ENOSPC]
The path name points to a file on the host. [EACCES]
On successful completion, a value of 0 is returned. Otherwise, a
value of -1 is returned and
is set to indicate the error.