summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 14:12:11 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 14:12:11 -0500
commit6c2de6052d450fa36338ed0c082647b9d535a928 (patch)
treecf352d1305edc992fceda6c7b75ab3658b982834 /testsuites/psxtests/psxreaddir/test.c
parentlibtmtests - Eliminate missing prototype warnings (diff)
downloadrtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2
psxtests - Eliminate missing prototype warnings
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxreaddir/test.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index 76239de10a..28e62963c7 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -1,4 +1,6 @@
-/*
+/**
+ * @file
+ *
* This is a native test to explore how the readdir() family works.
* Newlib supports the following readdir() family members:
*
@@ -14,8 +16,10 @@
* seekdir() takes an offset which is a byte offset. The Linux
* implementation of this appears to seek to the ((off/DIRENT_SIZE) + 1)
* record where DIRENT_SIZE seems to be 12 bytes.
- *
- * COPYRIGHT (c) 1989-2011.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -36,6 +40,17 @@
#include <errno.h>
#include <rtems/imfs.h>
+/* forward declarations to avoid warnings */
+int test_main(void);
+void printdir(DIR *directory);
+void complete_printdir(char *path);
+int select1(const struct dirent *entry);
+int select2(const struct dirent *entry);
+int compare_ascending(const struct dirent **a, const struct dirent **b);
+int compare_descending( const struct dirent **a, const struct dirent **b);
+void test_across_mount(void);
+void test_across_mount(void);
+
DIR *directory;
DIR *directory2;
DIR *directory3;
@@ -172,7 +187,6 @@ int compare_ascending(const struct dirent **a, const struct dirent **b )
return i;
}
-
int compare_descending( const struct dirent **a, const struct dirent **b )
{
int i;