Quoth the docs:
-- Scheme Procedure: port-filename port
-- C Function: scm_port_filename (port)
Return the filename associated with PORT. This function returns
the strings "standard input", "standard output" and "standard
error" when called on the current input, output and error ports
respectively.
PORT must be open, `port-filename' cannot be used once the port is
closed.
But:
scheme@(guile-user)> (port-filename (current-input-port))
$1 = #f
And additionally, when connecting to a --listen socket:
> (port-filename (current-input-port))
$3 = socket
i.e. a symbol, not a string (!).
Andy
--
http://wingolog.org/