port-type

[procedure] port-type port

Gauche: returns the type of the port; one of symbols 'string', 'file' or 'proc'.