This commit is contained in:
Felix von Leitner 2001-05-12 03:16:10 +00:00
parent b253680f63
commit 9c865e6125
3 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,6 @@ static int b0read(int fd,const char* buf, unsigned int len) {
}
char buffer_0_space[BUFFER_INSIZE];
static buffer it = BUFFER_INIT(b0read,0,buffer_0_space,0);
static buffer it = BUFFER_INIT(b0read,0,buffer_0_space,sizeof buffer_0_space);
buffer *buffer_0 = ⁢

View File

@ -7,6 +7,6 @@ static int b0read(int fd,const char* buf, unsigned int len) {
}
char buffer_0_space[128];
static buffer it = BUFFER_INIT(b0read,0,buffer_0_space,0);
static buffer it = BUFFER_INIT_READ(b0read,0,buffer_0_space,sizeof buffer_0_space);
buffer *buffer_0small = ⁢

View File

@ -6,6 +6,7 @@ int buffer_stubborn_read(int (*op)(),int fd,const char* buf, unsigned int len) {
for (;;) {
if ((w=op(fd,buf,len))<0)
if (errno == EINTR) continue;
break;
}
return w;
}