Lines Matching defs:read
213 ssize_t read = source.Read(buffer->buffer, buffer->size);
214 if (read < 0) {
215 ret = (status_t)read;
216 fprintf(stderr, "Failed to read data: %s\n", strerror(ret));
222 fBytesRead += read;
227 buffer->deleteFile = read == 0;
228 if (read > 0)
229 buffer->validBytes = (size_t)read;
243 if (read == 0)
431 ssize_t read = srcLink.ReadLink(linkPath, B_PATH_NAME_LENGTH - 1);
432 if (read < 0)
433 return (status_t)read;
463 ssize_t read = sourceNode.ReadAttr(attrName, info.type,
466 // we have read 0 bytes!
467 while (read >= 0) {
468 targetNode.WriteAttr(attrName, info.type, offset, buffer, read);
469 offset += read;
470 read = sourceNode.ReadAttr(attrName, info.type,
472 if (read == 0)