/* Return nonzero if we know a priori this clockid_t value is bogus.  */
static int invalid_clockid(const clockid_t which_clock)
/* Return nonzero if we know a priori this clockid_t value is bogus.  */
static int invalid_clockid(const clockid_t which_clock)
{
	if (which_clock < 0)		return 0;
	if ((unsigned) which_clock >= MAX_CLOCKS)
		return 1;
	if (posix_clocks[which_clock].clock_getres != NULL)
		return 0;
	if (posix_clocks[which_clock].res != 0)
		return 0;
	return 1;
}