tfc_io: xread and xwrite, which transparently handle EINTR case.
[tfcrypt.git] / tfcrypt.h
index 6efb5e3c841ecb9cb834c321f24fe4ffeda84cfa..19aa726ee022dda096fd8d6a76d2612232e50c75 100644 (file)
--- a/tfcrypt.h
+++ b/tfcrypt.h
@@ -38,6 +38,9 @@
 #ifndef _LARGEFILE64_SOURCE
 #define _LARGEFILE64_SOURCE
 #endif
+#ifndef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
+#endif
 
 #ifndef _TFCRYPT_VERSION
 #error Version number may help you to identify missing functionality.
@@ -154,6 +157,9 @@ extern tfc_useconds status_timer, bench_timer;
 extern tfc_useconds current_time, delta_time;
 extern struct getpasswd_state getps;
 
+size_t xread(int fd, void *data, size_t szdata);
+size_t xwrite(int fd, const void *data, size_t szdata);
+
 void xerror(tfc_yesno noexit, tfc_yesno noerrno, tfc_yesno nostats, const char *fmt, ...);
 void xexit(int status);
 void usage(void);