MFC: Change SEM_VALUE_MAX (maximum value of a POSIX semaphore) from UINT_MAX
to INT_MAX.
This commit is contained in:
parent
31ed61f9c6
commit
e04d8c0eb3
@ -37,12 +37,14 @@
|
|||||||
#ifndef _SEMAPHORE_H_
|
#ifndef _SEMAPHORE_H_
|
||||||
#define _SEMAPHORE_H_
|
#define _SEMAPHORE_H_
|
||||||
|
|
||||||
|
#include <machine/_limits.h>
|
||||||
|
|
||||||
/* Opaque type definition. */
|
/* Opaque type definition. */
|
||||||
struct sem;
|
struct sem;
|
||||||
typedef struct sem * sem_t;
|
typedef struct sem * sem_t;
|
||||||
|
|
||||||
#define SEM_FAILED ((sem_t *)0)
|
#define SEM_FAILED ((sem_t *)0)
|
||||||
#define SEM_VALUE_MAX (~0U) /* Equivalent to UINT_MAX. */
|
#define SEM_VALUE_MAX __INT_MAX
|
||||||
|
|
||||||
#ifndef _KERNEL
|
#ifndef _KERNEL
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user