Macros | Functions | Variables
test-stdio-over-pipes.c File Reference
#include "uv.h"
#include "task.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for test-stdio-over-pipes.c:

Go to the source code of this file.

Macros

#define OUTPUT_SIZE   1024
 

Functions

static void after_pipe_write (uv_write_t *req, int status)
 
static void after_write (uv_write_t *req, int status)
 
static void close_cb (uv_handle_t *handle)
 
static void exit_cb (uv_process_t *process, int64_t exit_status, int term_signal)
 
static void init_process_options (char *test, uv_exit_cb exit_cb)
 
static void on_alloc (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
static void on_pipe_read (uv_stream_t *pipe, ssize_t nread, const uv_buf_t *buf)
 
static void on_read (uv_stream_t *pipe, ssize_t nread, const uv_buf_t *rdbuf)
 
static void on_read_alloc (uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf)
 
int stdio_over_pipes_helper (void)
 
 TEST_IMPL (stdio_emulate_iocp)
 
 TEST_IMPL (stdio_over_pipes)
 
static void test_stdio_over_pipes (int overlapped)
 

Variables

static int after_write_called
 
static int after_write_cb_called
 
static char * args [3]
 
static int close_cb_called
 
static char exepath [1024]
 
static size_t exepath_size = 1024
 
static int exit_cb_called
 
static uv_pipe_t in
 
static uv_loop_tloop
 
static int on_pipe_read_called
 
static int on_read_cb_called
 
static uv_process_options_t options
 
static uv_pipe_t out
 
static char output [OUTPUT_SIZE]
 
static int output_used
 
static uv_pipe_t stdin_pipe1
 
static uv_pipe_t stdin_pipe2
 
static uv_pipe_t stdout_pipe1
 
static uv_pipe_t stdout_pipe2
 

Macro Definition Documentation

◆ OUTPUT_SIZE

#define OUTPUT_SIZE   1024

Definition at line 40 of file test-stdio-over-pipes.c.

Function Documentation

◆ after_pipe_write()

static void after_pipe_write ( uv_write_t req,
int  status 
)
static

Definition at line 192 of file test-stdio-over-pipes.c.

◆ after_write()

static void after_write ( uv_write_t req,
int  status 
)
static

Definition at line 84 of file test-stdio-over-pipes.c.

◆ close_cb()

static void close_cb ( uv_handle_t handle)
static

Definition at line 45 of file test-stdio-over-pipes.c.

◆ exit_cb()

static void exit_cb ( uv_process_t process,
int64_t  exit_status,
int  term_signal 
)
static

Definition at line 50 of file test-stdio-over-pipes.c.

◆ init_process_options()

static void init_process_options ( char *  test,
uv_exit_cb  exit_cb 
)
static

Definition at line 63 of file test-stdio-over-pipes.c.

◆ on_alloc()

static void on_alloc ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 76 of file test-stdio-over-pipes.c.

◆ on_pipe_read()

static void on_pipe_read ( uv_stream_t pipe,
ssize_t  nread,
const uv_buf_t buf 
)
static

Definition at line 181 of file test-stdio-over-pipes.c.

◆ on_read()

static void on_read ( uv_stream_t pipe,
ssize_t  nread,
const uv_buf_t rdbuf 
)
static

Definition at line 97 of file test-stdio-over-pipes.c.

◆ on_read_alloc()

static void on_read_alloc ( uv_handle_t handle,
size_t  suggested_size,
uv_buf_t buf 
)
static

Definition at line 198 of file test-stdio-over-pipes.c.

◆ stdio_over_pipes_helper()

int stdio_over_pipes_helper ( void  )

Definition at line 206 of file test-stdio-over-pipes.c.

◆ TEST_IMPL() [1/2]

TEST_IMPL ( stdio_emulate_iocp  )

Definition at line 166 of file test-stdio-over-pipes.c.

◆ TEST_IMPL() [2/2]

TEST_IMPL ( stdio_over_pipes  )

Definition at line 161 of file test-stdio-over-pipes.c.

◆ test_stdio_over_pipes()

static void test_stdio_over_pipes ( int  overlapped)
static

Definition at line 119 of file test-stdio-over-pipes.c.

Variable Documentation

◆ after_write_called

int after_write_called
static

Definition at line 175 of file test-stdio-over-pipes.c.

◆ after_write_cb_called

int after_write_cb_called
static

Definition at line 36 of file test-stdio-over-pipes.c.

◆ args

char* args[3]
static

Definition at line 31 of file test-stdio-over-pipes.c.

◆ close_cb_called

int close_cb_called
static

Definition at line 33 of file test-stdio-over-pipes.c.

◆ exepath

char exepath[1024]
static

Definition at line 29 of file test-stdio-over-pipes.c.

◆ exepath_size

size_t exepath_size = 1024
static

Definition at line 30 of file test-stdio-over-pipes.c.

◆ exit_cb_called

int exit_cb_called
static

Definition at line 34 of file test-stdio-over-pipes.c.

◆ in

uv_pipe_t in
static

Definition at line 37 of file test-stdio-over-pipes.c.

◆ loop

uv_loop_t* loop
static

Definition at line 39 of file test-stdio-over-pipes.c.

◆ on_pipe_read_called

int on_pipe_read_called
static

Definition at line 174 of file test-stdio-over-pipes.c.

◆ on_read_cb_called

int on_read_cb_called
static

Definition at line 35 of file test-stdio-over-pipes.c.

◆ options

uv_process_options_t options
static

Definition at line 32 of file test-stdio-over-pipes.c.

◆ out

uv_pipe_t out
static

Definition at line 38 of file test-stdio-over-pipes.c.

◆ output

char output[OUTPUT_SIZE]
static

Definition at line 41 of file test-stdio-over-pipes.c.

◆ output_used

int output_used
static

Definition at line 42 of file test-stdio-over-pipes.c.

◆ stdin_pipe1

uv_pipe_t stdin_pipe1
static

Definition at line 176 of file test-stdio-over-pipes.c.

◆ stdin_pipe2

uv_pipe_t stdin_pipe2
static

Definition at line 178 of file test-stdio-over-pipes.c.

◆ stdout_pipe1

uv_pipe_t stdout_pipe1
static

Definition at line 177 of file test-stdio-over-pipes.c.

◆ stdout_pipe2

uv_pipe_t stdout_pipe2
static

Definition at line 179 of file test-stdio-over-pipes.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:33