PR/230: make getline() public. file.c uses it.
merge with upstream
merge with upstream