summaryrefslogtreecommitdiffstats
path: root/lib/system.h
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2005-08-29 16:27:10 +0000
committerUlrich Drepper <[email protected]>2005-08-29 16:27:10 +0000
commitfbe998a0b1be1f006bc72e5138fb38c188cc0433 (patch)
treebc00ddfec68454b8987056fbc1f1ace2da2597fa /lib/system.h
parentb0bc2788cfa2012bfbcc68cac74cd39e3f5a8085 (diff)
merge of 333c187506c852455e9f7be44fa9adc360416217
and 79955b942e3f0ddc71117feea5754df61edcc42a
Diffstat (limited to 'lib/system.h')
-rw-r--r--lib/system.h8
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 */