summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Ivanov <alexivanov97@gmail.com>2012-12-15 09:54:10 -0500
committerGedare Bloom <gedare@rtems.org>2012-12-15 09:54:10 -0500
commite49a36cb0b37cc3ad1c3f191fb439b17f6365539 (patch)
tree1c39de36e4c7a90413f55288ed86d076cef1afbf
parentlibcsupport: Update file header for termios.h to remove link, add description. (diff)
downloadrtems-e49a36cb0b37cc3ad1c3f191fb439b17f6365539.tar.bz2
posix: Doxygen Enhancement Task #5
http://www.google-melange.com/gci/task/view/google/gci2012/7959229
Diffstat (limited to '')
-rw-r--r--cpukit/posix/include/aio.h20
-rw-r--r--cpukit/posix/include/rtems/posix/mqueue.h21
-rw-r--r--cpukit/posix/include/rtems/posix/psignalimpl.h6
-rw-r--r--cpukit/posix/include/rtems/posix/ptimer.h12
-rw-r--r--cpukit/posix/include/rtems/posix/semaphore.h9
-rw-r--r--cpukit/posix/include/rtems/posix/spinlock.h10
-rw-r--r--cpukit/posix/include/semaphore.h5
-rw-r--r--cpukit/posix/src/aio_cancel.c24
-rw-r--r--cpukit/posix/src/barrierattrinit.c11
-rw-r--r--cpukit/posix/src/barrierattrsetpshared.c11
-rw-r--r--cpukit/posix/src/condbroadcast.c10
-rw-r--r--cpukit/posix/src/condinit.c10
-rw-r--r--cpukit/posix/src/execle.c9
-rw-r--r--cpukit/posix/src/mqueuedeletesupp.c23
-rw-r--r--cpukit/posix/src/mutexattrinit.c10
-rw-r--r--cpukit/posix/src/pbarrierdestroy.c25
-rw-r--r--cpukit/posix/src/psignal.c11
-rw-r--r--cpukit/posix/src/psignalsetprocesssignals.c11
-rw-r--r--cpukit/posix/src/pspindestroy.c23
-rw-r--r--cpukit/posix/src/pspinlocktranslatereturncode.c20
-rw-r--r--cpukit/posix/src/rwlockattrgetpshared.c11
-rw-r--r--cpukit/posix/src/sched_getprioritymin.c12
-rw-r--r--cpukit/posix/src/semaphoredeletesupp.c11
-rw-r--r--cpukit/posix/src/semtrywait.c13
-rw-r--r--cpukit/posix/src/sigtimedwait.c12
-rw-r--r--cpukit/posix/src/timergetoverrun.c16
-rw-r--r--cpukit/posix/src/waitpid.c9
27 files changed, 229 insertions, 136 deletions
diff --git a/cpukit/posix/include/aio.h b/cpukit/posix/include/aio.h
index de0bdd5603..f4f824ab69 100644
--- a/cpukit/posix/include/aio.h
+++ b/cpukit/posix/include/aio.h
@@ -23,6 +23,14 @@
extern "C" {
#endif
+/**
+ * @defgroup POSIX_AIO POSIX Asynchronous I/O Support
+ *
+ * @ingroup POSIX
+ *
+ * @brief POSIX Asynchronous Input and Output
+ */
+
#if defined(_POSIX_ASYNCHRONOUS_IO)
/*
@@ -126,10 +134,18 @@ ssize_t aio_return(
const struct aiocb *aiocbp
);
-/*
+/**
+ * @brief Cancel Asynchronous I/O Operation
+ *
* 6.7.7 Cancel Asynchronous I/O Operation, P1003.1b-1993, p. 163
+ *
+ * @param[in] filedes is the file descriptor
+ * @param[in] aiocbp is the asynchronous I/O control block
+ *
+ * @return This method returns AIO_CANCELED if the requested operation(s)
+ * were canceled. Otherwise, AIO_NOTCANCELED is returned indicating
+ * that at least one of the requested operation(s) cannot be canceled
*/
-
int aio_cancel(
int filedes,
struct aiocb *aiocbp
diff --git a/cpukit/posix/include/rtems/posix/mqueue.h b/cpukit/posix/include/rtems/posix/mqueue.h
index ea94669e71..9226d6f86e 100644
--- a/cpukit/posix/include/rtems/posix/mqueue.h
+++ b/cpukit/posix/include/rtems/posix/mqueue.h
@@ -3,6 +3,18 @@
*
* This include file contains all the private support information for
* POSIX Message Queues.
+ *
+ * The structure of the routines is identical to that of POSIX
+ * Message_queues to leave the option of having unnamed message
+ * queues at a future date. They are currently not part of the
+ * POSIX standard but unnamed message_queues are. This is also
+ * the reason for the apparently unnecessary tracking of
+ * the process_shared attribute. [In addition to the fact that
+ * it would be trivial to add pshared to the mq_attr structure
+ * and have process private message queues.]
+ *
+ * This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
+ * time.
*/
/*
@@ -27,6 +39,10 @@
extern "C" {
#endif
+/**
+ * @ingroup POSIX_MQUEUE
+ */
+
/*
* Data Structure used to manage a POSIX message queue
*/
@@ -84,15 +100,14 @@ int _POSIX_Message_queue_Create_support(
POSIX_Message_queue_Control **message_queue
);
-/*
- * _POSIX_Message_queue_Delete
+/**
+ * @brief POSIX Delete Message Queue
*
* DESCRIPTION:
*
* This routine supports the mq_unlink and mq_close routines by
* doing most of the work involved with removing a message queue.
*/
-
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
);
diff --git a/cpukit/posix/include/rtems/posix/psignalimpl.h b/cpukit/posix/include/rtems/posix/psignalimpl.h
index d9ba88427a..b8e5e1e0ea 100644
--- a/cpukit/posix/include/rtems/posix/psignalimpl.h
+++ b/cpukit/posix/include/rtems/posix/psignalimpl.h
@@ -71,6 +71,9 @@ extern API_extensions_Post_switch_control _POSIX_signals_Post_switch;
* Internal routines
*/
+/**
+ * @brief POSIX Signals Manager Initialization
+ */
void _POSIX_signals_Manager_Initialization(void);
static inline void _POSIX_signals_Add_post_switch_extension(void)
@@ -107,6 +110,9 @@ int killinfo(
const union sigval *value
);
+/**
+ * @brief POSIX Signals Set Process Signals
+ */
void _POSIX_signals_Set_process_signals(
sigset_t mask
);
diff --git a/cpukit/posix/include/rtems/posix/ptimer.h b/cpukit/posix/include/rtems/posix/ptimer.h
index a7c083711a..1b791cc915 100644
--- a/cpukit/posix/include/rtems/posix/ptimer.h
+++ b/cpukit/posix/include/rtems/posix/ptimer.h
@@ -88,13 +88,15 @@ int timer_gettime(
struct itimerspec *value
);
-/*
+/**
+ * @brief Get Overrun Count for a POSIX Per-Process Timer
+ *
+ * The expiration of a timer must increase by one a counter.
+ * After the signal handler associated to the timer finishes
+ * its execution, _POSIX_Timer_TSR will have to set this counter to 0.
+ *
* 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
- *
- * timer_getoverrun
- *
*/
-
int timer_getoverrun(
timer_t timerid
);
diff --git a/cpukit/posix/include/rtems/posix/semaphore.h b/cpukit/posix/include/rtems/posix/semaphore.h
index 08df44be4f..378b284c42 100644
--- a/cpukit/posix/include/rtems/posix/semaphore.h
+++ b/cpukit/posix/include/rtems/posix/semaphore.h
@@ -21,6 +21,10 @@
extern "C" {
#endif
+/**
+ * @ingroup POSIX_SEMAPHORE
+ */
+
#include <semaphore.h>
#include <rtems/score/coresem.h>
#include <rtems/posix/posixapi.h>
@@ -134,14 +138,13 @@ int _POSIX_Semaphore_Create_support(
POSIX_Semaphore_Control **the_sem
);
-/*
- * _POSIX_Semaphore_Delete
+/**
+ * @brief POSIX Delete Semaphore
*
* DESCRIPTION:
*
* This routine supports the sem_close and sem_unlink routines.
*/
-
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
);
diff --git a/cpukit/posix/include/rtems/posix/spinlock.h b/cpukit/posix/include/rtems/posix/spinlock.h
index 892040e8b8..44061bd42c 100644
--- a/cpukit/posix/include/rtems/posix/spinlock.h
+++ b/cpukit/posix/include/rtems/posix/spinlock.h
@@ -27,6 +27,14 @@
extern "C" {
#endif
+/**
+ * @defgroup POSIX_SPINLOCK POSIX Spinlock Support
+ *
+ * @ingroup POSIX
+ *
+ * @brief Constants and Structures Associated with the POSIX Spinlock Manager
+ */
+
#include <rtems/score/object.h>
#include <rtems/score/corespinlock.h>
@@ -60,7 +68,7 @@ POSIX_EXTERN Objects_Information _POSIX_Spinlock_Information;
void _POSIX_Spinlock_Manager_initialization(void);
/**
- * @brief _POSIX_Spinlock_Translate_core_spinlock_return_code (
+ * @brief POSIX Spinlock Translate Core Spinlock Return Code
*
* This routine translates SuperCore Spinlock status codes into the
* corresponding POSIX ones.
diff --git a/cpukit/posix/include/semaphore.h b/cpukit/posix/include/semaphore.h
index 1dc82bedef..17c583240c 100644
--- a/cpukit/posix/include/semaphore.h
+++ b/cpukit/posix/include/semaphore.h
@@ -99,6 +99,11 @@ int sem_wait(
sem_t *sem
);
+/**
+ * @brief Lock a Semaphore
+ *
+ * @see sem_wait()
+ */
int sem_trywait(
sem_t *sem
);
diff --git a/cpukit/posix/src/aio_cancel.c b/cpukit/posix/src/aio_cancel.c
index be771e7c33..561e2f8776 100644
--- a/cpukit/posix/src/aio_cancel.c
+++ b/cpukit/posix/src/aio_cancel.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Cancel Asynchronous I/O Operation
+ * @ingroup POSIX_AIO
+ */
+
/*
* Copyright 2010, Alin Rus <alin.codejunkie@gmail.com>
*
@@ -17,23 +24,6 @@
#include <rtems/system.h>
#include <rtems/seterr.h>
-/*
- * aio_cancel
- *
- * Cancel an asynchronous I/O request
- *
- * Input parameters:
- * fildes - file descriptor
- * aiocbp - asynchronous I/O control block
- *
- * Output parameters:
- * AIO_CANCELED - if the requested operation(s)
- * were canceled
- * AIO_NOTCANCELED - if at least one of the requested
- * operation(s) cannot be canceled
- */
-
-
int aio_cancel(int fildes, struct aiocb *aiocbp)
{
rtems_aio_request_chain *r_chain;
diff --git a/cpukit/posix/src/barrierattrinit.c b/cpukit/posix/src/barrierattrinit.c
index 2363e4d3db..29d58f4991 100644
--- a/cpukit/posix/src/barrierattrinit.c
+++ b/cpukit/posix/src/barrierattrinit.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Initialize the Barrier Attributes Object
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -16,10 +23,6 @@
#include <rtems/system.h>
-/*
- * Barrier Attributes Initialization
- */
-
int pthread_barrierattr_init(
pthread_barrierattr_t *attr
)
diff --git a/cpukit/posix/src/barrierattrsetpshared.c b/cpukit/posix/src/barrierattrsetpshared.c
index df3c8017dd..897a833946 100644
--- a/cpukit/posix/src/barrierattrsetpshared.c
+++ b/cpukit/posix/src/barrierattrsetpshared.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Set the Process-Shared Attribute of the Barrier Attributes Object
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -14,10 +21,6 @@
#include <pthread.h>
#include <errno.h>
-/*
- * Barrier Attributes Set Process Shared
- */
-
int pthread_barrierattr_setpshared(
pthread_barrierattr_t *attr,
int pshared
diff --git a/cpukit/posix/src/condbroadcast.c b/cpukit/posix/src/condbroadcast.c
index ab2f8713c3..6506d87d98 100644
--- a/cpukit/posix/src/condbroadcast.c
+++ b/cpukit/posix/src/condbroadcast.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Broadcast a Condition
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -22,10 +29,9 @@
#include <rtems/posix/time.h>
#include <rtems/posix/mutex.h>
-/*
+/**
* 11.4.3 Broadcasting and Signaling a Condition, P1003.1c/Draft 10, p. 101
*/
-
int pthread_cond_broadcast(
pthread_cond_t *cond
)
diff --git a/cpukit/posix/src/condinit.c b/cpukit/posix/src/condinit.c
index 73f1f5b6b7..2a8321192e 100644
--- a/cpukit/posix/src/condinit.c
+++ b/cpukit/posix/src/condinit.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Initialize a Condition Variable
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -22,11 +29,10 @@
#include <rtems/posix/time.h>
#include <rtems/posix/mutex.h>
-/*
+/**
* 11.4.2 Initializing and Destroying a Condition Variable,
* P1003.1c/Draft 10, p. 87
*/
-
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
diff --git a/cpukit/posix/src/execle.c b/cpukit/posix/src/execle.c
index 8199d68c20..1dbd3826a1 100644
--- a/cpukit/posix/src/execle.c
+++ b/cpukit/posix/src/execle.c
@@ -1,6 +1,11 @@
-/*
- * execle() - POSIX 1003.1b 3.1.2
+/**
+ * @file
*
+ * @brief Execute a File
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
diff --git a/cpukit/posix/src/mqueuedeletesupp.c b/cpukit/posix/src/mqueuedeletesupp.c
index 3c06a59e8a..1a7246278a 100644
--- a/cpukit/posix/src/mqueuedeletesupp.c
+++ b/cpukit/posix/src/mqueuedeletesupp.c
@@ -1,16 +1,11 @@
-/*
- * NOTE: The structure of the routines is identical to that of POSIX
- * Message_queues to leave the option of having unnamed message
- * queues at a future date. They are currently not part of the
- * POSIX standard but unnamed message_queues are. This is also
- * the reason for the apparently unnecessary tracking of
- * the process_shared attribute. [In addition to the fact that
- * it would be trivial to add pshared to the mq_attr structure
- * and have process private message queues.]
- *
- * This code ignores the O_RDONLY/O_WRONLY/O_RDWR flag at open
- * time.
+/**
+ * @file
*
+ * @brief POSIX Delete Message Queue
+ * @ingroup POSIX_MQUEUE
+ */
+
+/*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
@@ -41,10 +36,6 @@
#include <rtems/bspIo.h>
#endif
-/*
- * _POSIX_Message_queue_Delete
- */
-
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
)
diff --git a/cpukit/posix/src/mutexattrinit.c b/cpukit/posix/src/mutexattrinit.c
index f2d66010a1..9e1345ee6d 100644
--- a/cpukit/posix/src/mutexattrinit.c
+++ b/cpukit/posix/src/mutexattrinit.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Mutex Initialization Attribute
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -21,10 +28,9 @@
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
-/*
+/**
* 11.3.1 Mutex Initialization Attributes, P1003.1c/Draft 10, p. 81
*/
-
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
diff --git a/cpukit/posix/src/pbarrierdestroy.c b/cpukit/posix/src/pbarrierdestroy.c
index a8f6ce3b5e..6b2e9d0bc9 100644
--- a/cpukit/posix/src/pbarrierdestroy.c
+++ b/cpukit/posix/src/pbarrierdestroy.c
@@ -1,6 +1,11 @@
-/*
- * POSIX Barrier Manager -- Destroy a Barrier
+/**
+ * @file
*
+ * @brief Destroy a Barrier Object
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -19,21 +24,17 @@
#include <rtems/system.h>
#include <rtems/posix/barrier.h>
-/*
- * pthread_barrier_destroy
- *
+/**
* This directive allows a thread to delete a barrier specified by
* the barrier id. The barrier is freed back to the inactive
* barrier chain.
*
- * Input parameters:
- * barrier - barrier id
- *
- * Output parameters:
- * 0 - if successful
- * error code - if unsuccessful
+ * @param[in] barrier is the barrier id
+ *
+ * @return This method returns 0 if there was not an
+ * error. Otherwise, a status code is returned indicating the
+ * source of the error.
*/
-
int pthread_barrier_destroy(
pthread_barrier_t *barrier
)
diff --git a/cpukit/posix/src/psignal.c b/cpukit/posix/src/psignal.c
index 7623920f54..e490877d32 100644
--- a/cpukit/posix/src/psignal.c
+++ b/cpukit/posix/src/psignal.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief POSIX Signals Manager Initialization
+ * @ingroup POSIX_SIGNALS
+ */
+
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
@@ -162,10 +169,6 @@ API_extensions_Post_switch_control _POSIX_signals_Post_switch = {
.hook = _POSIX_signals_Post_switch_hook
};
-/*
- * _POSIX_signals_Manager_Initialization
- */
-
void _POSIX_signals_Manager_Initialization(void)
{
uint32_t signo;
diff --git a/cpukit/posix/src/psignalsetprocesssignals.c b/cpukit/posix/src/psignalsetprocesssignals.c
index 22609bf2af..92c1d8164e 100644
--- a/cpukit/posix/src/psignalsetprocesssignals.c
+++ b/cpukit/posix/src/psignalsetprocesssignals.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief POSIX Signals Set Process Signals
+ * @ingroup POSIX_SIGNALS
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -27,10 +34,6 @@
#include <rtems/posix/time.h>
#include <stdio.h>
-/*
- * _POSIX_signals_Set_process_signals
- */
-
void _POSIX_signals_Set_process_signals(
sigset_t mask
)
diff --git a/cpukit/posix/src/pspindestroy.c b/cpukit/posix/src/pspindestroy.c
index c5574c0c7b..97745b6b77 100644
--- a/cpukit/posix/src/pspindestroy.c
+++ b/cpukit/posix/src/pspindestroy.c
@@ -1,6 +1,11 @@
-/*
- * POSIX Spinlock Manager -- Destroy a Spinlock
+/**
+ * @file
*
+ * @brief Destroy a Spinlock
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -19,21 +24,17 @@
#include <rtems/system.h>
#include <rtems/posix/spinlock.h>
-/*
- * pthread_spin_destroy
- *
+/**
* This directive allows a thread to delete a spinlock specified by
* the spinlock id. The spinlock is freed back to the inactive
* spinlock chain.
*
- * Input parameters:
- * spinlock - spinlock id
+ * @param[in] spinlock is the spinlock id
*
- * Output parameters:
- * 0 - if successful
- * error code - if unsuccessful
+ * @return This method returns 0 if there was not an
+ * error. Otherwise, a status code is returned indicating the
+ * source of the error.
*/
-
int pthread_spin_destroy(
pthread_spinlock_t *spinlock
)
diff --git a/cpukit/posix/src/pspinlocktranslatereturncode.c b/cpukit/posix/src/pspinlocktranslatereturncode.c
index 92dca9101a..ce133a40b7 100644
--- a/cpukit/posix/src/pspinlocktranslatereturncode.c
+++ b/cpukit/posix/src/pspinlocktranslatereturncode.c
@@ -1,6 +1,11 @@
-/*
- * Spinlock Manager -- Translate SuperCore Status
+/**
+ * @file
*
+ * @brief POSIX Spinlock Translate Core Spinlock Return Code
+ * @ingroup POSIX_SPINLOCK
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -20,17 +25,6 @@
#include <rtems/score/corespinlock.h>
#include <rtems/posix/spinlock.h>
-/*
- * _POSIX_Spinlock_Translate_core_spinlock_return_code
- *
- * Input parameters:
- * the_spinlock_status - spinlock status code to translate
- *
- * Output parameters:
- * status code - translated POSIX status code
- *
- */
-
static int _POSIX_Spinlock_Return_codes[CORE_SPINLOCK_STATUS_LAST + 1] = {
0, /* CORE_SPINLOCK_SUCCESSFUL */
EDEADLK, /* CORE_SPINLOCK_HOLDER_RELOCKING */
diff --git a/cpukit/posix/src/rwlockattrgetpshared.c b/cpukit/posix/src/rwlockattrgetpshared.c
index 488809f87b..233cbffa22 100644
--- a/cpukit/posix/src/rwlockattrgetpshared.c
+++ b/cpukit/posix/src/rwlockattrgetpshared.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Get the Process-Shared Attribute of the RWLock
+ * @ingroup POSIX
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -14,10 +21,6 @@
#include <pthread.h>
#include <errno.h>
-/*
- * RWLock Attributes Get Process Shared
- */
-
int pthread_rwlockattr_getpshared(
const pthread_rwlockattr_t *attr,
int *pshared
diff --git a/cpukit/posix/src/sched_getprioritymin.c b/cpukit/posix/src/sched_getprioritymin.c
index ed5737e1bc..73d892de47 100644
--- a/cpukit/posix/src/sched_getprioritymin.c
+++ b/cpukit/posix/src/sched_getprioritymin.c
@@ -1,6 +1,11 @@
-/*
- * 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
+/**
+ * @file
*
+ * @brief Get the Minimum Priority Limit
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -20,6 +25,9 @@
#include <rtems/seterr.h>
#include <rtems/posix/priority.h>
+/**
+ * 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258
+ */
int sched_get_priority_min(
int policy
)
diff --git a/cpukit/posix/src/semaphoredeletesupp.c b/cpukit/posix/src/semaphoredeletesupp.c
index 433c23cc7a..a24adef870 100644
--- a/cpukit/posix/src/semaphoredeletesupp.c
+++ b/cpukit/posix/src/semaphoredeletesupp.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief POSIX Delete Semaphore
+ * @ingroup POSIX_SEMAPHORE
+ */
+
/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
@@ -25,10 +32,6 @@
#include <rtems/posix/time.h>
#include <rtems/seterr.h>
-/*
- * _POSIX_Semaphore_Delete
- */
-
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
)
diff --git a/cpukit/posix/src/semtrywait.c b/cpukit/posix/src/semtrywait.c
index e8c4e7689b..b80e515afd 100644
--- a/cpukit/posix/src/semtrywait.c
+++ b/cpukit/posix/src/semtrywait.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Lock a Semaphore
+ * @ingroup POSIX_SEMAPHORE
+ */
+
/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
@@ -25,12 +32,6 @@
#include <rtems/posix/time.h>
#include <rtems/seterr.h>
-/*
- * 11.2.6 Lock a Semaphore, P1003.1b-1993, p.226
- *
- * NOTE: P1003.4b/D8 adds sem_timedwait(), p. 27
- */
-
int sem_trywait(
sem_t *sem
)
diff --git a/cpukit/posix/src/sigtimedwait.c b/cpukit/posix/src/sigtimedwait.c
index 1f23356056..b350a2cc33 100644
--- a/cpukit/posix/src/sigtimedwait.c
+++ b/cpukit/posix/src/sigtimedwait.c
@@ -1,6 +1,11 @@
-/*
- * 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
+/**
+ * @file
*
+ * @brief Wait for Queued Signals
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
@@ -58,6 +63,9 @@ found_it:
return signo;
}
+/**
+ * 3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
+ */
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
diff --git a/cpukit/posix/src/timergetoverrun.c b/cpukit/posix/src/timergetoverrun.c
index 9403d02f5c..23a4e6f3fe 100644
--- a/cpukit/posix/src/timergetoverrun.c
+++ b/cpukit/posix/src/timergetoverrun.c
@@ -1,6 +1,11 @@
-/*
- * 14.2.4 Per-Process Timers, P1003.1b-1993, p. 267
+/**
+ * @file
*
+ * @brief Get Overrun Count for a POSIX Per-Process Timer
+ * @ingroup POSIX_PRIV_TIMERS
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
@@ -21,13 +26,6 @@
#include <rtems/score/thread.h>
#include <rtems/posix/timer.h>
-/*
- * timer_getoverrun
- *
- * The expiration of a timer must increase by one a counter.
- * After the signal handler associated to the timer finishes
- * its execution, _POSIX_Timer_TSR will have to set this counter to 0.
- */
int timer_getoverrun(
timer_t timerid
)
diff --git a/cpukit/posix/src/waitpid.c b/cpukit/posix/src/waitpid.c
index 0ae199156f..03e4f7d731 100644
--- a/cpukit/posix/src/waitpid.c
+++ b/cpukit/posix/src/waitpid.c
@@ -1,6 +1,11 @@
-/*
- * waitpid() - POSIX 1003.1 3.2.1
+/**
+ * @file
*
+ * @brief Wait for Process to Change State
+ * @ingroup POSIX
+ */
+
+/*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*