labath added a comment.

> To be honest, I can't think of a real use case where aliasing Write() to 
> WriteAll() would make a caller-visible difference.

If you mean, "in the lldb code base", then you might be right, but generally 
speaking, the difference is in the handling of interrupts and blocking 
operations. After a select, a single `write` call is guaranteed not to block 
(and to write something), but that's is not the case if you're going to be 
calling it in a loop. I don't know if we have any code like that for writes, 
but we do rely on this pattern for reads (although we might also make the FD 
non-blocking -- I don't remember).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132395/new/

https://reviews.llvm.org/D132395

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to