summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getpid.c
diff options
context:
space:
mode:
authorAlex Ivanov <alexivanov97@gmail.com>2012-12-11 16:51:08 -0500
committerGedare Bloom <gedare@rtems.org>2012-12-11 16:51:08 -0500
commit17c6ad6a01a7ace26decff61b20bdada797ed782 (patch)
tree03fae4f8f30ceee2a6691fc3cc001019c31c099b /cpukit/libcsupport/src/getpid.c
parentlibcsupport: GCI Doxygen Task #7 (diff)
downloadrtems-17c6ad6a01a7ace26decff61b20bdada797ed782.tar.bz2
libcsupport: Doxygen enhancement GCI task #4
http://www.google-melange.com/gci/task/view/google/gci2012/8009205
Diffstat (limited to 'cpukit/libcsupport/src/getpid.c')
-rw-r--r--cpukit/libcsupport/src/getpid.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/cpukit/libcsupport/src/getpid.c b/cpukit/libcsupport/src/getpid.c
index a46fbb59a9..27825e50b5 100644
--- a/cpukit/libcsupport/src/getpid.c
+++ b/cpukit/libcsupport/src/getpid.c
@@ -1,3 +1,10 @@
+/**
+ * @file
+ *
+ * @brief Process and Parent Process IDs
+ * @ingroup libcsupport
+ */
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
@@ -8,25 +15,21 @@
#include <rtems/score/object.h>
#include <rtems/seterr.h>
-/*
+/**
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
*/
-
pid_t getpid( void )
{
return _Objects_Local_node;
}
-/*
- * _getpid_r
- *
- * This is the Newlib dependent reentrant version of getpid().
- */
-
#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETPID_R)
#include <reent.h>
+/**
+ * This is the Newlib dependent reentrant version of getpid().
+ */
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)