Browse Source

test

master
Felix von Leitner 21 years ago
parent
commit
9c865e6125
  1. 2
      buffer/buffer_0.c
  2. 2
      buffer/buffer_0small.c
  3. 1
      buffer/buffer_stubborn2.c

2
buffer/buffer_0.c

@ -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 = ⁢

2
buffer/buffer_0small.c

@ -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 = ⁢

1
buffer/buffer_stubborn2.c

@ -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;
}

Loading…
Cancel
Save