Skip to content

Minilib.Common.IOEx

Defined in minilib-common@0.6.1

Extensions for Std::IO.

Values

namespace Minilib.Common.IOEx

fflush

Type: Std::IO::IOHandle -> Std::IO::IOFail ()

Flushes a file stream. For details, see Linux manual page for fflush().

set_unbuffered_mode

Type: Std::IO::IOHandle -> Std::IO ()

Sets IOHandle to unbuffered mode. For detials, see Linux manual page for setbuf(). NOTE: When a fix program is invoked by run_with_stream(), then the stdout and stderr becomes not a TTY but a file stream. So the stdout becomes block-buffered. The stderr also seems to be block-buffered.

Types and aliases

Traits and aliases

Trait implementations