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 | |
| parent | c2c3b1ecbe235c4e04ddcbafe6f0f27dccd86d9b (diff) | |
Fix more EINTR handling problems. Add jump prediction.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/ChangeLog | 4 | ||||
| -rw-r--r-- | lib/system.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 5b79d096..f7760f13 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2005-08-28 Ulrich Drepper <[email protected]> + + * system.h: Define pwrite_retry, write_retry, and pread_retry. + 2005-08-06 Ulrich Drepper <[email protected]> * Makefile.am (xmalloc_CFLAGS): Define only if !GPROF. 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 */ |
