1 2 3 4 5 6 7
// The location of this constant varies. #include <semaphore.h> #include <limits.h> int main(void) { return SEM_VALUE_MAX; }