00001 00005 #include "system.h" 00006 00007 /* XXX rename the static inline version of fdFileno */ 00008 #define fdFileno _fdFileno 00009 #include <rpmio_internal.h> 00010 #undef fdFileno 00011 00012 #include "debug.h" 00013 00014 /*@access FD_t@*/ 00015 00016 int fdFileno(void * cookie) { 00017 FD_t fd; 00018 if (cookie == NULL) return -2; 00019 fd = c2f(cookie); 00020 return fd->fps[0].fdno; 00021 }