| 3100 | } |
| 3101 | |
| 3102 | static int stdio_write_buf(int fd, const char *start, const char *end) |
| 3103 | { |
| 3104 | while (start < end) |
| 3105 | { |
| 3106 | ssize_t size = write(fd, start, end - start); |
| 3107 | if (size < 0) |
| 3108 | return EOF; |
| 3109 | start += size; |
| 3110 | } |
| 3111 | return 0; |
| 3112 | } |
| 3113 | |
| 3114 | static int stdio_stream_write_buf(FILE *stream, const char *start, |
| 3115 | const char *end) |
no test coverage detected