Tcl_EnterFile
Tcl_GetOpenFile
Tcl_FilePermissions
manipulate the table of open files