diff options
Diffstat (limited to 'elfutils/lib/system.h')
-rw-r--r-- | elfutils/lib/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/elfutils/lib/system.h b/elfutils/lib/system.h index e29c2dbb..998bf729 100644 --- a/elfutils/lib/system.h +++ b/elfutils/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 */ |