2 Struct N_SPAWN_PIPE
gullradriel edited this page 2026-10-29 20:54:40 +01:00

N_SPAWN_PIPE

A program started with its standard input on a pipe the caller writes to (n_spawn_pipe_open()), or its standard output on one the caller reads (n_spawn_pipe_open_read()). More...

Public Attributes

Name
int reading
non-zero when the caller reads the program's output
char[256] program
for the log lines
int end
the caller's end of the pipe, -1 once closed
pid_t child
the program

Detailed Description

struct N_SPAWN_PIPE;

A program started with its standard input on a pipe the caller writes to (n_spawn_pipe_open()), or its standard output on one the caller reads (n_spawn_pipe_open_read()).

A program started with its standard input on a pipe the caller writes to, or its standard output on one the caller reads.

Opaque: made by n_spawn_pipe_open() or n_spawn_pipe_open_read(), ended by n_spawn_pipe_close().

Public Attributes Documentation

variable reading

int reading;

non-zero when the caller reads the program's output

variable program

char[256] program;

for the log lines

variable end

int end;

the caller's end of the pipe, -1 once closed

variable child

pid_t child;

the program