#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <uv.h>
#include "nvim/event/stream.h"
#include "nvim/log.h"
#include "nvim/macros.h"
#include "nvim/rbuffer.h"
Macros | |
#define | uv_stream_get_write_queue_size(stream) stream->write_queue_size |
Functions | |
int | stream_set_blocking (int fd, bool blocking) |
void | stream_init (Loop *loop, Stream *stream, int fd, uv_stream_t *uvstream) FUNC_ATTR_NONNULL_ARG(2) |
void | stream_close (Stream *stream, stream_close_cb on_stream_close, void *data) FUNC_ATTR_NONNULL_ARG(1) |
void | stream_may_close (Stream *stream) |
void | stream_close_handle (Stream *stream) FUNC_ATTR_NONNULL_ALL |
void stream_close | ( | Stream * | stream, |
stream_close_cb | on_stream_close, | ||
void * | data | ||
) |
int stream_set_blocking | ( | int | fd, |
bool | blocking | ||
) |
Sets the stream associated with fd
to "blocking" mode.
0
on success, or libuv error code on failure.