| 504 | namespace |
| 505 | { |
| 506 | bool |
| 507 | check_for_transient_errors() |
| 508 | { |
| 509 | switch (errno) { |
| 510 | case EINTR: |
| 511 | case EAGAIN: |
| 512 | |
| 513 | #ifdef ENOMEM |
| 514 | case ENOMEM: |
| 515 | #endif |
| 516 | |
| 517 | #ifdef ENOBUF |
| 518 | case ENOBUF: |
| 519 | #endif |
| 520 | |
| 521 | #if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN) |
| 522 | case EWOULDBLOCK: |
| 523 | #endif |
| 524 | return true; |
| 525 | default: |
| 526 | return false; |
| 527 | } |
| 528 | } |
| 529 | } // namespace |