Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2014-02-16 03:09:01 +0400
committerbrian m. carlson <sandals@crustytoothpaste.net>2014-02-16 20:56:37 +0400
commit0197d4107a2996dc2ed4e98698e281c2d5fa44e1 (patch)
tree5be111f1c313d8a83ca6297354fb27c4cc768c6c /tests
parentdbd2ca356b8a16d028e45c5263e9c460be13d338 (diff)
Check for EWOULDBLOCK as well as EAGAIN on write.
On some systems, notably HP PA-RISC systems running Linux or HP-UX, EWOULDBLOCK and EAGAIN are not the same value. POSIX (and these OSes) allow EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED that considers both. The macro is necessary because MSYS does not provide EWOULDBLOCK and compilation fails if an attempt is made to use it unconditionally. On most systems, where the two values are the same, the compiler will simply optimize this check out and it will have no effect.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions