summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-12 15:22:48 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-12 15:22:48 +0200
commit000ce0cf21f0eb8eb79156efdd9df615f06ce5f5 (patch)
tree9610a1ba686f7e1249709bd73a9a3ef4ee317b10 /tools.h
parent0ac6edbfc6a4128bc48372a2c913cc694f6a10eb (diff)
downloadvdr-000ce0cf21f0eb8eb79156efdd9df615f06ce5f5.tar.gz
vdr-000ce0cf21f0eb8eb79156efdd9df615f06ce5f5.tar.bz2
Made I/O more robust by handling EINTR0.9.1
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 6baaff30..bf2e46b5 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.27 2001/08/11 09:52:14 kls Exp $
+ * $Id: tools.h 1.28 2001/08/12 15:13:02 kls Exp $
*/
#ifndef __TOOLS_H
@@ -33,6 +33,8 @@ extern int SysLogLevel;
template<class T> inline void swap(T &a, T &b) { T t = a; a = b; b = t; };
+ssize_t safe_read(int filedes, void *buffer, size_t size);
+ssize_t safe_write(int filedes, const void *buffer, size_t size);
void writechar(int filedes, char c);
char *readline(FILE *f);
char *strn0cpy(char *dest, const char *src, size_t n);