From Wikipedia, the free encyclopedia
[edit] Summary
I made this simple diagram of Unix and C standard streams (stdio) using Graphviz. Depicted: a text terminal, the running program, the streams standard input stdin, standard output stdout, standard error stderr. Commandline was
<stdstreams.dot dot -Tsvg >stdstreams.svg
Because of a Commons bug I needed to edit the svg file in text editor to remove title tags before the upload succeeded.
[edit] Licensing
[edit] Graphviz source
file stdstreams.dot:
digraph StandardStreams {
rankdir=LR
style=filled
color=white
subgraph clusterTerminal {
label="Text terminal"
style=filled;
color=lightgrey;
node [style=filled,fillcolor=white,shape=box,bold];
Keyboard
Display
}
Keyboard -> Program [label="#0 stdin"]
Program -> Display [label="#1 stdout"]
Program -> Display [label="#2 stderr",constraint=none]
}
File links
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):