diff options
| author | Ulrich Drepper <[email protected]> | 2005-08-29 06:25:06 +0000 |
|---|---|---|
| committer | Ulrich Drepper <[email protected]> | 2005-08-29 06:25:06 +0000 |
| commit | 6abe27be7178a891326f29337a7aa31aa3e5482d (patch) | |
| tree | 5aab3d095cd0f5bc62d5e3f004023032a005c913 /lib/system.h | |
| parent | c2c3b1ecbe235c4e04ddcbafe6f0f27dccd86d9b (diff) | |
Fix more EINTR handling problems. Add jump prediction.
Diffstat (limited to 'lib/system.h')
| -rw-r--r-- | lib/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/system.h b/lib/system.h index e29c2dbb..998bf729 100644 --- a/lib/system.h +++ b/lib/system.h @@ -37,4 +37,12 @@ extern int crc32_file (int fd, uint32_t *resp); #define gettext_noop(Str) Str + +#define pwrite_retry(fd, buf, len, off) \ + TEMP_FAILURE_RETRY (pwrite (fd, buf, len, off)) +#define write_retry(fd, buf, n) \ + TEMP_FAILURE_RETRY (write (fd, buf, n)) +#define pread_retry(fd, buf, len, off) \ + TEMP_FAILURE_RETRY (pread (fd, buf, len, off)) + #endif /* system.h */ |
