summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-22 16:07:02 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>1999-11-22 16:07:02 +0000
commit0ebf569402af1067e9a1156c1656850f0064f375 (patch)
tree62fbf1d93b70b9468e19642ae4e0e5c43faaca9c /cpukit
parent+ Corrected error messages. (diff)
downloadrtems-0ebf569402af1067e9a1156c1656850f0064f375.tar.bz2
+ Cleaned up comments.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/posix/src/semaphorecreatesupp.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/cpukit/posix/src/semaphorecreatesupp.c b/cpukit/posix/src/semaphorecreatesupp.c
index caf1c60c62..6b54050062 100644
--- a/cpukit/posix/src/semaphorecreatesupp.c
+++ b/cpukit/posix/src/semaphorecreatesupp.c
@@ -19,6 +19,10 @@
/*PAGE
*
* _POSIX_Semaphore_Create_support
+ *
+ * This routine does the actual creation and initialization of
+ * a poxix semaphore. It is a support routine for sem_init and
+ * sem_open.
*/
int _POSIX_Semaphore_Create_support(
@@ -68,9 +72,12 @@ int _POSIX_Semaphore_Create_support(
the_sem_attr = &the_semaphore->Semaphore.Attributes;
- /* XXX
- *
- * Note should this be based on the current scheduling policy?
+ /*
+ * POSIX does not appear to specify what the discipline for
+ * blocking tasks on this semaphore should be. It could somehow
+ * be derived from the current scheduling policy. One
+ * thing is certain, no matter what we decide, it won't be
+ * the same as all other POSIX implementations. :)
*/
the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
@@ -86,10 +93,13 @@ int _POSIX_Semaphore_Create_support(
OBJECTS_POSIX_SEMAPHORES,
the_sem_attr,
value,
- 0 /* XXX - proxy_extract_callout is unused */
+ NULL /* multiprocessing is not supported */
);
+
+ /*
+ * Make the semaphore available for use.
+ */
- /* XXX - need Names to be a string!!! */
_Objects_Open(
&_POSIX_Semaphore_Information,
&the_semaphore->Object,
@@ -104,7 +114,7 @@ int _POSIX_Semaphore_Create_support(
POSIX_SEMAPHORE_MP_ANNOUNCE_CREATE,
the_semaphore->Object.id,
(char *) name,
- 0 /* proxy id - Not used */
+ 0 /* proxy id - Not used */
);
#endif