BFYOPJGNU676EBW4ECNGOLK6TFY5XX6K62XKAEUNOR3I7FGGPLHQC
PAGCKQZXRCRGSID2ZB3HIBTHD6ZS26AEIHTFRSO6V2E2GD5TBL4QC
GUP5UKFUXHOBWQK4WQ4ES7JWVTMISDRXEHTVPFQUTMR52J2KDSAQC
QAS2LGI54I4SQBCLNT25T735FC4SXS6TRBK22SZ42NJ2DI6R2B7AC
MBVSVIOH4MYL4SCQQWX4EL5NGS5QFCUEZAISWELWFWHRWJFBPZSQC
G5FWFPI5OOAOR2EB5WU6DIZXP5SBWIZEHDIMDJKLEG7DSGBYZR6QC
FSOVA5GJECIC6SQYUX6IK2FGMUDBHPIDMOEAET7HAVNPHHS5UYRAC
Q7P6NO6DTAU3Z7JQ6HNQIQPGWPQHW37RRI5A5HDJYNC7IJCQ4XSQC
alias_DirectoryList_find(&options.data_paths, "*.txt", data_paths_find_error, data_paths_find_found, data_paths_find_done_show_files, NULL);
alias_DirectoryList_find(&global_options.data_paths, "*.txt", data_paths_find_error, data_paths_find_found, data_paths_find_done_show_files, NULL);
static void FileRead_close_cb(uv_handle_t *handle) {
struct FileRead *state = (struct FileRead *)uv_handle_get_data(handle);
uv_fs_close(alias_libuv_event_loop(), &state->req, state->fd, FileRead_fs_close_cb);
}
static void FileRead_alloc_cb(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) {
buf->base = alias_malloc(NULL, suggested_size, 4);
buf->len = suggested_size;
}
static void FileRead_read_cb(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf) {
struct FileRead *state = (struct FileRead *)uv_handle_get_data((uv_handle_t *)stream);
if(nread == UV_EOF) {
static void FileRead_fs_read_execute(struct FileRead *state);
static void FileRead_fs_read_cb(uv_fs_t *req) {
struct FileRead *state = (struct FileRead *)uv_req_get_data((uv_req_t *)req);
if(req->result == 0) {
stop:
uv_read_stop(stream);
uv_close((uv_handle_t *)stream, FileRead_close_cb);
} else if(buf->base != NULL) {
state->partial(state->ud, buf->base, buf->len);
alias_free(NULL, buf->base, buf->len, 4);
uv_fs_req_cleanup(req);
uv_fs_close(alias_libuv_event_loop(), &state->req, state->fd, FileRead_fs_close_cb);
} else {
state->partial(state->ud, state->buffer, req->result);
uv_fs_req_cleanup(req);
FileRead_fs_read_execute(state);
uv_pipe_init(alias_libuv_event_loop(), &state->pipe, 0);
uv_pipe_open(&state->pipe, state->fd);
uv_handle_set_data((uv_handle_t *)&state->pipe, state);
uv_read_start((uv_stream_t *)&state->pipe, FileRead_alloc_cb, FileRead_read_cb);
FileRead_fs_read_execute(state);