mark the curthread
bind arc_stdin/out/err
bind std(in|out|err)-fd