ps 225 lib/util.h GString *mc_pstream_get_string (mc_pipe_stream_t * ps); ps 223 lib/utilunix.c mc_pread_stream (mc_pipe_stream_t *ps, const fd_set *fds) ps 228 lib/utilunix.c if (!FD_ISSET (ps->fd, fds)) ps 230 lib/utilunix.c ps->len = MC_PIPE_STREAM_UNREAD; ps 234 lib/utilunix.c buf_len = (size_t) ps->len; ps 237 lib/utilunix.c buf_len = ps->null_term ? MC_PIPE_BUFSIZE - 1 : MC_PIPE_BUFSIZE; ps 241 lib/utilunix.c read_len = read (ps->fd, ps->buf, buf_len); ps 248 lib/utilunix.c ps->len = MC_PIPE_ERROR_READ; ps 249 lib/utilunix.c ps->error = errno; ps 253 lib/utilunix.c ps->len = MC_PIPE_STREAM_EOF; ps 257 lib/utilunix.c ps->len = read_len; ps 259 lib/utilunix.c if (ps->null_term) ps 260 lib/utilunix.c ps->buf[(size_t) ps->len] = '\0'; ps 263 lib/utilunix.c ps->pos = 0; ps 682 lib/utilunix.c mc_pstream_get_string (mc_pipe_stream_t *ps) ps 688 lib/utilunix.c g_return_val_if_fail (ps != NULL, NULL); ps 690 lib/utilunix.c if (ps->len < 0) ps 693 lib/utilunix.c size = ps->len - ps->pos; ps 698 lib/utilunix.c s = ps->buf + ps->pos; ps 710 lib/utilunix.c ps->pos += i;