Change len from int -> size_t for sys_{read,write}