Hello,
At current time, the section in the man page about the FileSystem's callback function "openFileChannelProc" can lead to bugs, as the paragraph suggests we should register the channel in the interpreter with "RegisterChannel"; this is not the case as this can lead to crash in some use cases ("called Tcl_Close on channel with refCount > 0"), and the TclLib's function "Tcl_FSOpenFileChannel" states that this has to be done by its caller.
I propose the attached patch to the man page to remove the possible misunderstanding.
openFileChannelProc.patch - FileSystem man page change
Needed fixing in all three main branches. Thanks for pointing this out.