Use TclpSys* macros, not direct system calls.