summaryrefslogtreecommitdiff
path: root/elfutils/lib/system.h
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2005-10-14 15:03:21 +0000
committerDmitry V. Levin <ldv@altlinux.org>2005-10-14 15:03:21 +0000
commit743e33eeb33512b69912da1f5dfd2d4e136a003a (patch)
tree17d99932d329188c2ba9a8e6a070f6f3dfe06ae8 /elfutils/lib/system.h
parent10317c17ff72b7cf3bba318881d3224a7909341b (diff)
downloadelfutils-0.115-alt1.tar.gz
0.115-alt10.115-alt1
- Updated to 0.115. - Create libelf-devel-static and package it by default.
Diffstat (limited to 'elfutils/lib/system.h')
-rw-r--r--elfutils/lib/system.h8
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 */