diff options
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 */ |
