input/file: make the "fd" attribute "const"