HelenOS sources
reopen 146 uspace/app/getterm/getterm.c reopen(&stdin, 0, term_node, MODE_READ, "r");
reopen 147 uspace/app/getterm/getterm.c reopen(&stdout, 1, term_node, MODE_WRITE, "w");
reopen 148 uspace/app/getterm/getterm.c reopen(&stderr, 2, term_node, MODE_WRITE, "w");
reopen 125 uspace/app/redir/redir.c reopen(&stdin, 0, argv[i], 0, MODE_READ, "r");
reopen 132 uspace/app/redir/redir.c reopen(&stdout, 1, argv[i], WALK_MAY_CREATE, MODE_WRITE,
reopen 140 uspace/app/redir/redir.c reopen(&stderr, 2, argv[i], WALK_MAY_CREATE, MODE_WRITE,
HelenOS homepage, sources at GitHub