vmo_set_size - resize a VMO object
#include <magenta/syscalls.h> mx_status_t mx_vmo_set_size(mx_handle_t handle, uint64_t size);
vmo_set_size() sets the new size of a VMO object.
vmo_set_size() returns MX_OK on success. In the event of failure, a negative error value is returned.
MX_ERR_BAD_HANDLE handle is not a valid handle.
MX_ERR_WRONG_TYPE handle is not a VMO handle.
MX_ERR_ACCESS_DENIED handle does not have the MX_RIGHT_WRITE right.
MX_ERR_OUT_OF_RANGE Requested size is too large.
MX_ERR_NO_MEMORY Failure due to lack of system memory.