posix: add _POSIX_SEM_NSEMS_MAX.
* have _SC__SEM_NSEMS_MAX return _POSIX_SEM_NSEMS_MAX, a per team limit instead of the global limit.
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
#define _POSIX_CLOCKRES_MIN 20000000
|
||||
#define _POSIX_TIMER_MAX 32
|
||||
#define _POSIX_DELAYTIMER_MAX 32
|
||||
#define _POSIX_SEM_NSEMS_MAX (128)
|
||||
|
||||
#define _POSIX2_LINE_MAX (2048)
|
||||
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
#define SYSTEM_REALTIME_SEM_H
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
#define MAX_POSIX_SEMS_PER_TEAM 128
|
||||
#define MAX_POSIX_SEMS_PER_TEAM _POSIX_SEM_NSEMS_MAX
|
||||
#define MAX_POSIX_SEMS 1024
|
||||
#define MAX_POSIX_SEM_VALUE _POSIX_SEM_VALUE_MAX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user