Mstdlib-1.24.0

Enumerations

enum  M_io_pipe_flags_t {
  M_IO_PIPE_NONE = 0 ,
  M_IO_PIPE_INHERIT_READ = 1 << 0 ,
  M_IO_PIPE_INHERIT_WRITE = 1 << 1
}
 

Functions

M_io_error_t M_io_pipe_create (M_uint32 flags, M_io_t **reader, M_io_t **writer)
 

Detailed Description

Pipe's are uni-directional connected endpoints, meaning one endpoint is a write-only endpoint, and the other endpoint is a read-only endpoint. Pipes are often used for inter-process communication.

Enumeration Type Documentation

◆ M_io_pipe_flags_t

Enumerator
M_IO_PIPE_NONE 

No flags

M_IO_PIPE_INHERIT_READ 

Read handle can be inherited by child

M_IO_PIPE_INHERIT_WRITE 

Write handle can be inherited by child

Function Documentation

◆ M_io_pipe_create()

M_io_error_t M_io_pipe_create ( M_uint32  flags,
M_io_t **  reader,
M_io_t **  writer 
)

Create a pipe object

Parameters
[in]flagsOne or more M_io_pipe_flags_t flags controlling pipe creation
[out]readerio object for reading.
[out]writerio object for writing.
Returns
Result.