int owl_zephyr_zqlength(void) { #ifdef HAVE_LIBZEPHYR Code_t code; if(owl_global_is_havezephyr(&g)) { if((code = ZQLength()) < 0) { owl_function_debugmsg("Error (%s) in ZQLength()\n", error_message(code)); return 0; } return code; } #endif return 0; }
int ZPending() { int retval; if (ZGetFD() < 0) { errno = ZERR_NOPORT; return (-1); } if ((retval = Z_ReadEnqueue()) != ZERR_NONE) { errno = retval; return (-1); } return(ZQLength()); }