| line |
true |
false |
branch |
|
22
|
0 |
0 |
if (length == 0) |
|
25
|
0 |
0 |
for (i=0, data=(unsigned int)0xff & *data_p++; i < 8; i++, data >>= 1){ |
|
26
|
0 |
0 |
if ((crc & 0x0001) ^ (data & 0x0001)) |
|
30
|
0 |
0 |
} while (--length); |
|
51
|
0 |
0 |
if( n!=1) |
|
59
|
0 |
0 |
if( n!=len ) |
|
67
|
0 |
0 |
if (read (fd, &x, 1) != 1) |
|
79
|
0 |
0 |
if (fd == -1) { |
|
84
|
0 |
0 |
if (tcgetattr(fd, &toptions) < 0) { |
|
124
|
0 |
0 |
if( tcsetattr(fd, TCSANOW, &toptions) < 0) { |
|
164
|
0 |
0 |
if (nbytes < 0) |
|
170
|
0 |
0 |
if (flags != -1 && (flags & O_NONBLOCK)) |
|
|
0 |
0 |
if (flags != -1 && (flags & O_NONBLOCK)) |
|
172
|
0 |
0 |
Newx(buf, nbytes > 0 ? nbytes : 1, char); |
|
173
|
0 |
0 |
while (got < nbytes) { |
|
175
|
0 |
0 |
if (result > 0) { |
|
179
|
0 |
0 |
if (result == 0) |
|
181
|
0 |
0 |
if (errno == EINTR) |