off_t is unsigned so error code should be