summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/open.c
diff options
context:
space:
mode:
authorAlex Ivanov <alexivanov97@gmail.com>2012-12-11 06:49:45 -0500
committerGedare Bloom <gedare@rtems.org>2012-12-11 06:49:45 -0500
commitc9bb60a94cf2c11d16d8d15f16e079b84d0e7b6d (patch)
tree32c279a6df64cd03ba91aeb0e6916f18a257c9fa /cpukit/libcsupport/src/open.c
parentlibcsupport: Doxygen enhancement task #5 (diff)
downloadrtems-c9bb60a94cf2c11d16d8d15f16e079b84d0e7b6d.tar.bz2
libcsupport: GCI Doxygen Task #7
http://www.google-melange.com/gci/task/view/google/gci2012/7975223
Diffstat (limited to 'cpukit/libcsupport/src/open.c')
-rw-r--r--cpukit/libcsupport/src/open.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c
index 02436b66e7..ead76a6fa3 100644
--- a/cpukit/libcsupport/src/open.c
+++ b/cpukit/libcsupport/src/open.c
@@ -1,6 +1,11 @@
-/*
- * open() - POSIX 1003.1 5.3.1 - Open a File
+/**
+ * @file
*
+ * @brief Open a File
+ * @ingroup libcsupport
+ */
+
+/*
* COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
@@ -120,6 +125,9 @@ static int do_open(
return rv;
}
+/**
+* POSIX 1003.1 5.3.1 - Open a File
+*/
int open( const char *path, int oflag, ... )
{
int rv = 0;
@@ -144,16 +152,15 @@ int open( const char *path, int oflag, ... )
return rv;
}
-/*
- * _open_r
- *
- * This is the Newlib dependent reentrant version of open().
- */
+
#if defined(RTEMS_NEWLIB) && !defined(HAVE__OPEN_R)
#include <reent.h>
+/**
+ * This is the Newlib dependent reentrant version of open().
+ */
int _open_r(
struct _reent *ptr __attribute__((unused)),
const char *buf,