[PATCH v3 11/14] selftests/nolibc: use correct return type for read() and write()