Searched refs:sval (Results 1 – 1 of 1) sorted by relevance
75 #define SEMCOUNT_TO_VALUE(sval) ((int)(sval) >> SEMCOUNT_VALUE_SHIFT) argument83 #define SEMCOUNT_DECREMENT(sval) (((sval) - (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument84 #define SEMCOUNT_INCREMENT(sval) (((sval) + (1U << SEMCOUNT_VALUE_SHIFT)) & SEMCOUNT_VALUE_MASK) argument387 int sem_getvalue(sem_t *sem, int *sval) in sem_getvalue() argument391 if (sem == NULL || sval == NULL) { in sem_getvalue()400 *sval = val; in sem_getvalue()