On FreeBSD fdclose(3) is declared as: int fdclose(FILE *stream, int *fdp); -- Christos