summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/config.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-11 15:04:22 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-04-11 15:24:39 +0200
commit5eb434e67ed31111eb90b92cf75248f2ff9d1086 (patch)
tree4e4493d101058953149da482fb8344cb240721a2 /cpukit/sapi/include/rtems/config.h
parentnios2: New functions (diff)
downloadrtems-5eb434e67ed31111eb90b92cf75248f2ff9d1086.tar.bz2
score: New macros and functions
New macros o _Objects_Maximum_per_allocation(), o rtems_resource_is_unlimited(), and o rtems_resource_maximum_per_allocation(). New function o _Objects_Is_unlimited().
Diffstat (limited to 'cpukit/sapi/include/rtems/config.h')
-rw-r--r--cpukit/sapi/include/rtems/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 25ddfda421..407b19e825 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -37,6 +37,12 @@ extern "C" {
#define rtems_resource_unlimited(resource) \
( resource | RTEMS_UNLIMITED_OBJECTS )
+#define rtems_resource_is_unlimited(resource) \
+ _Objects_Is_unlimited(resource)
+
+#define rtems_resource_maximum_per_allocation(resource) \
+ _Objects_Maximum_per_allocation(resource)
+
/*
* This is kind of kludgy but it allows targets to totally ignore the
* optional APIs like POSIX safely.