diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-12 15:22:48 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-12 15:22:48 +0200 |
commit | 000ce0cf21f0eb8eb79156efdd9df615f06ce5f5 (patch) | |
tree | 9610a1ba686f7e1249709bd73a9a3ef4ee317b10 /tools.h | |
parent | 0ac6edbfc6a4128bc48372a2c913cc694f6a10eb (diff) | |
download | vdr-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |