Handle EWOULDBLOCK as EAGAIN. And add a comment explaining why
authorDan Gohman <gohman@apple.com>
Thu, 6 May 2010 01:27:36 +0000 (01:27 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 6 May 2010 01:27:36 +0000 (01:27 +0000)
commit5fe89d0126ec215ac2a09884bfbd4dd7bf8e7d2f
tree8e5340dc0231a4202ac1f5dafa7ee76130436e22
parent5758d4ce4603bd2c0b97c87e6e516bf2afd78a85
Handle EWOULDBLOCK as EAGAIN. And add a comment explaining why
EAGAIN and EWOULDBLOCK are used here.

Also, handle the case where a write call is interrupted after
some data has already been written.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103153 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/raw_ostream.cpp