diff options
Diffstat (limited to 'testsuites/psxtests/psxrdwrv/test.c')
-rw-r--r-- | testsuites/psxtests/psxrdwrv/test.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/testsuites/psxtests/psxrdwrv/test.c b/testsuites/psxtests/psxrdwrv/test.c index 9ab555ba84..cedca900a9 100644 --- a/testsuites/psxtests/psxrdwrv/test.c +++ b/testsuites/psxtests/psxrdwrv/test.c @@ -1,10 +1,14 @@ -/* +/** + * @file + * * This test exercises the following routines: * * + readv * + writev - * - * COPYRIGHT (c) 1989-2009. + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -39,8 +43,13 @@ #define rtems_test_exit(_s) exit(_s) #endif -#define TESTFILE "testfile1.tst" +/* forward declarations to avoid warnings */ +int test_main(void); +int fillPatternBuffer(void); +int doFunctionalTest(void); +int doErrorTest(void); +#define TESTFILE "testfile1.tst" /* This buffer size is assumed in the iovec initialization below */ #define MAX_BUFFER 1000 @@ -56,7 +65,6 @@ unsigned char ReadBuffer[MAX_BUFFER]; * FALSE if buffer failed to fill * */ - int fillPatternBuffer(void) { int retval = TRUE; @@ -79,8 +87,8 @@ int fillPatternBuffer(void) * FALSE if an operation did not work as expected. * */ - -int doFunctionalTest(void) { +int doFunctionalTest(void) +{ FILE *fp; int fd; struct iovec rdvec[4]; @@ -165,7 +173,6 @@ int doFunctionalTest(void) { * FALSE if an operation did not work as expected. * */ - int doErrorTest(void) { FILE *fp; |