- port-name #!optional PORTprocedure
Fetch filename from PORT. This returns the filename that was used to open this file. Returns a special tag string, enclosed into parentheses for non-file ports. PORT defaults to the value of (current-input-port).
Note that the encoding can be changed by using the (SRFI-17) setter procedure for this operation:
(set! (port-name PORT) STRING)