Handbook
Glossary
init-stdio ( -- )
Factor handbook
»
Input and output
»
Non-blocking I/O implementation
Prev:
init-io ( -- )
Next:
io-multiplex ( nanos -- )
Vocabulary
io
.
backend
Generic word contract
Initializes the global
input-stream
and
output-stream
. Called on startup.
Definition
IN:
io.backend
HOOK:
init-stdio
io-backend
( -- )
Methods
USING:
io.backend
io.streams.c
;
M:
c-io-backend
init-stdio
init-c-stdio
;
USING:
io.backend
io.backend.unix
io.ports
system
;
M:
unix
init-stdio
<stdin>
<input-port>
1
<fd>
<output-port>
2
<fd>
<output-port>
set-stdio
;