-
-/*
- * find_umode_slot
- *
- * inputs - NONE
- * outputs - an available umode bitmask or
- * 0 if no umodes are available
- * side effects - NONE
- */
-unsigned int
-find_umode_slot(void)
-{
- unsigned int all_umodes = 0, my_umode = 0, i;
-
- for (i = 0; i < 128; i++)
- all_umodes |= user_modes[i];
-
- for (my_umode = 1; my_umode && (all_umodes & my_umode);
- my_umode <<= 1);
-
- return my_umode;
-}