Provide readn() as a wrapper around read()
[exim.git] / src / src / exim.h
index d03b48c66abaa52b6f2ea366dbb62f0d00589b10..4ca28130a5e5fa57feb57254dfc8ff7272a54783 100644 (file)
@@ -596,5 +596,9 @@ default to EDQUOT if it exists, otherwise ENOSPC. */
 # undef DISABLE_DNSSEC
 #endif
 
+/* Wrapper around read(2) to read all the data we requested (BLOCKING) */
+ssize_t
+readn(int fd, void *buffer, size_t len);
+
 #endif
 /* End of exim.h */