summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/truncate.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-12-13 18:20:57 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-12-13 18:20:57 -0600
commit074fafd9eb23d43d246151804e61412809681369 (patch)
treea97f2dd238a89461175a223490b5821a92993bdc /cpukit/libcsupport/src/truncate.c
parentMerge branch 'master' of ssh://git.rtems.org/home/joel/git/rtems (diff)
parentposix: Doxygen enhancement task #4 (diff)
downloadrtems-074fafd9eb23d43d246151804e61412809681369.tar.bz2
Merge branch 'master' of ssh://git.rtems.org/data/git/rtems
Diffstat (limited to 'cpukit/libcsupport/src/truncate.c')
-rw-r--r--cpukit/libcsupport/src/truncate.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/cpukit/libcsupport/src/truncate.c b/cpukit/libcsupport/src/truncate.c
index 5d58128dd3..654d99e4d9 100644
--- a/cpukit/libcsupport/src/truncate.c
+++ b/cpukit/libcsupport/src/truncate.c
@@ -1,10 +1,11 @@
-/*
- * truncate() - Truncate a File to the Specified Length
- *
- * This routine is not defined in the POSIX 1003.1b standard but is
- * commonly supported on most UNIX and POSIX systems. It is provided
- * for compatibility.
+/**
+ * @file
*
+ * @brief Truncate a File to the Specified Length
+ * @ingroup libcsupport
+ */
+
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -21,6 +22,11 @@
#include <errno.h>
#include <fcntl.h>
+/**
+ * This routine is not defined in the POSIX 1003.1b standard but is
+ * commonly supported on most UNIX and POSIX systems. It is provided
+ * for compatibility.
+ */
int truncate(
const char *path,
off_t length