extern int getfd(const char *fnam);