| 1431 | } |
| 1432 | |
| 1433 | int acl_vstream_readable(ACL_VSTREAM *fp) |
| 1434 | { |
| 1435 | if (fp == NULL) { |
| 1436 | acl_msg_error("%s(%d), %s: fp null", |
| 1437 | __FILE__, __LINE__, __FUNCTION__); |
| 1438 | return 1; |
| 1439 | } |
| 1440 | |
| 1441 | if (acl_vstream_can_read(fp) != 0) { |
| 1442 | return 1; |
| 1443 | } |
| 1444 | |
| 1445 | if (acl_readable(ACL_VSTREAM_SOCK(fp)) == 0) { |
| 1446 | return 0; |
| 1447 | } |
| 1448 | |
| 1449 | fp->read_ready = 1; |
| 1450 | return 1; |
| 1451 | } |
| 1452 | |
| 1453 | static int file_write_once(ACL_VSTREAM *fp, const void *vptr, int dlen) |
| 1454 | { |
no test coverage detected
searching dependent graphs…