# Module cloudi_core_i_os_port

- Description
- Data Types
- Function Index
- Function Details

### OS Process Port

Common source code for Erlang port processes used by CloudI.

Copyright © 2011-2020 Michael Truog

Version: 2.0.1 Dec 3 2021 17:15:33 ------------------------------------------------------------------------

Authors: Michael Truog (`mjtruog at protonmail dot com`).

## Description

### OS Process Port

Common source code for Erlang port processes used by CloudI.

## Data Types

### output_handler()

`output_handler() = fun((OSPid::pos_integer(), Output::string()) -> ok)`

### stderr_handler()

`stderr_handler() = output_handler()`

### stdout_handler()

`stdout_handler() = output_handler()`

## Function Index

code_change/3 |
handle_call/3 |
handle_cast/2 |
handle_info/2 |
init/4 |
sync/3 |
terminate/2 |

## Function Details

### code_change/3

`code_change(X1, State, X3) -> any()`

### handle_call/3

`handle_call(Request, Client, State) -> any()`

### handle_cast/2

`handle_cast(Request, State) -> any()`

### handle_info/2

`handle_info(Request, State) -> any()`

### init/4

`init(FileName, OutputNewline, StdOutHandler, StdErrHandler) -> any()`

### sync/3

`sync(Process::pid(), Command::pos_integer(), Message::iolist()) -> {ok, any()} | {error, any()}`

### terminate/2

`terminate(Reason, State) -> any()`

Generated by EDoc