summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxstat
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/psxstat
parentlibtmtests - Eliminate missing prototype warnings (diff)
downloadrtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2
psxtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/psxtests/psxstat')
-rw-r--r--testsuites/psxtests/psxstat/main.c8
-rw-r--r--testsuites/psxtests/psxstat/test.c42
2 files changed, 34 insertions, 16 deletions
diff --git a/testsuites/psxtests/psxstat/main.c b/testsuites/psxtests/psxstat/main.c
index f1269408a6..1dbd10b354 100644
--- a/testsuites/psxtests/psxstat/main.c
+++ b/testsuites/psxtests/psxstat/main.c
@@ -1,7 +1,5 @@
/*
- * Simple test program -- simplified version of sample test hello.
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -18,7 +16,9 @@
#include <bsp.h>
#include <pmacros.h>
-void test_main( void );
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument ignored);
+void test_main(void);
rtems_task Init(
rtems_task_argument ignored
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index 5f5e5d1485..3c35a766eb 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -1,11 +1,15 @@
-/*
+/**
+ * @file
+ *
* This test exercises stat() via fstat() and generates as many of the
* path evaluation cases as possible.
*
* This test also exercises lstat() and lchown() when symlinks are
* involved.
- *
- * COPYRIGHT (c) 1989-2010.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -33,6 +37,27 @@
#include "primode.h"
+/* forward declarations to avoid warnings */
+int test_main(void);
+void stat_a_file_helper(const char *file, int follow_link);
+void stat_a_file(const char *file);
+void lstat_a_file(const char *file);
+void stat_multiple_files(char **files);
+void chown_multiple_files_helper(char **files, int follow_link);
+void chown_multiple_files(char **files);
+void lchown_multiple_files(char **files);
+void make_multiple_files(char **files);
+void make_multiple_bad_files(char **files);
+void make_multiple_links(char **existing, char **new);
+void make_too_many_links(void);
+void make_a_symlink(char *existing, char *new);
+void make_multiple_symlinks(void);
+void make_many_symlinks(char *real_file, int link_count);
+void make_multiple_directories(char **files);
+void Cause_faults(void);
+void Show_Time(void);
+void test_statvfs(void);
+
#define MAXSYMLINK 5 /* There needs to be a better way of getting this. */
#define TIMEOUT_VALUE ( 5 * rtems_clock_get_ticks_per_second() )
@@ -175,7 +200,6 @@ char *Good_relative_paths[] = {
/*
* Do a stat/lstat on a single file and report the status.
*/
-
void stat_a_file_helper(
const char *file,
int follow_link
@@ -248,7 +272,6 @@ void lstat_a_file(
/*
* stat() multiple files at a time
*/
-
void stat_multiple_files(
char **files
)
@@ -324,7 +347,6 @@ void lchown_multiple_files(
/*
* mknod() multiple files at a time
*/
-
void make_multiple_files(
char **files
)
@@ -384,7 +406,6 @@ void make_multiple_links(
rtems_test_assert( status == -1 );
}
-
void make_too_many_links(void)
{
int i;
@@ -407,7 +428,6 @@ void make_too_many_links(void)
}
}
-
void make_a_symlink(
char *existing,
char *new
@@ -475,6 +495,7 @@ void make_too_many_symlinks()
}
}
*/
+
void make_many_symlinks(
char *real_file,
int link_count
@@ -504,7 +525,6 @@ void make_many_symlinks(
/*
* mkdir() multiple directories at a time
*/
-
void make_multiple_directories(
char **files
)
@@ -525,8 +545,6 @@ void make_multiple_directories(
/*
* Cause faults.
*/
-
-
void Cause_faults(void)
{
int fd;
@@ -762,7 +780,7 @@ void Show_Time(void)
print_time( " - rtems_clock_get_tod - ", &time, "\n" );
}
-void test_statvfs( void )
+void test_statvfs(void)
{
int status = 0;