Changeset 2e7e636f in rtems


Ignore:
Timestamp:
May 11, 2009, 1:41:16 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
79269f6e
Parents:
7a9030a0
Message:

2009-05-10 Joel Sherrill <joel.sherrill@…>

  • psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx04/task1.c, psx04/task3.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/init.c, psx09/init.c, psx11/task.c, psx12/init.c, psx13/main.c, psx13/test.c, psxbarrier01/test.c, psxcancel/init.c, psxcleanup/psxcleanup.c, psxenosys/init.c, psxmsgq02/init.c, psxtime/main.c, psxtime/test.c, psxtimer01/psxtimer.c, psxtimer02/psxtimer.c: Fix warnings.
Location:
testsuites/psxtests
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r7a9030a0 r2e7e636f  
     12009-05-10      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c,
     4        psx04/init.c, psx04/task1.c, psx04/task3.c, psx05/init.c,
     5        psx06/init.c, psx07/init.c, psx08/init.c, psx09/init.c, psx11/task.c,
     6        psx12/init.c, psx13/main.c, psx13/test.c, psxbarrier01/test.c,
     7        psxcancel/init.c, psxcleanup/psxcleanup.c, psxenosys/init.c,
     8        psxmsgq02/init.c, psxtime/main.c, psxtime/test.c,
     9        psxtimer01/psxtimer.c, psxtimer02/psxtimer.c: Fix warnings.
     10
    1112009-05-10      Joel Sherrill <joel.sherrill@oarcorp.com>
    212
  • testsuites/psxtests/psx01/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2626  time_t          seconds;
    2727  time_t          seconds1;
    28   time_t          remaining;
     28  unsigned int    remaining;
    2929  struct tm       tm;
    3030  struct utsname  uts;
     
    5959
    6060  puts( "Init: clock_gettime - EINVAL (invalid clockid)" );
    61   status = clock_gettime( -1, &tv );
     61  status = clock_gettime( (clockid_t)-1, &tv );
    6262  rtems_test_assert( status == -1 );
    6363  rtems_test_assert( errno == EINVAL );
    6464
    6565  puts( "Init: clock_settime - EINVAL (invalid clockid)" );
    66   status = clock_settime( -1, &tv );
     66  status = clock_settime( (clockid_t)-1, &tv );
    6767  rtems_test_assert( status == -1 );
    6868  rtems_test_assert( errno == EINVAL );
     
    8080
    8181  puts( "Init: clock_getres - EINVAL (invalid clockid)" );
    82   status = clock_getres( -1, &tv );
     82  status = clock_getres( (clockid_t) -1, &tv );
    8383  rtems_test_assert( status == -1 );
    8484  rtems_test_assert( errno == EINVAL );
     
    196196  puts( "Init: usleep - 1.35 seconds" );
    197197  useconds = usleep ( 1350000 );
    198   rtems_test_assert( useconds < 1350000);
     198  rtems_test_assert( useconds < 1350000 );
    199199 
    200200  /* print the current real time again */
  • testsuites/psxtests/psx01/task.c

    r7a9030a0 r2e7e636f  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2020
    2121#include "system.h"
     22
     23void Test_init_routine( void );
    2224
    2325void Test_init_routine( void )
     
    6264
    6365  puts( "Task_1: pthread_equal - first id bad" );
    64   status = pthread_equal( -1, Task_id );
     66  status = pthread_equal( (pthread_t) -1, Task_id );
    6567  assert( !status );
    6668
    6769  puts( "Task_1: pthread_equal - second id bad" );
    68   status = pthread_equal( Init_id, -1 );
     70  status = pthread_equal( Init_id, (pthread_t) -1 );
    6971  assert( !status );
    7072
  • testsuites/psxtests/psx02/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616volatile int Signal_occurred;
    1717volatile int Signal_count;
     18void Signal_handler( int signo );
    1819
    1920void Signal_handler(
  • testsuites/psxtests/psx02/task.c

    r7a9030a0 r2e7e636f  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2626)
    2727{
    28   int seconds;
    29   int i;
    30   int status;
     28  unsigned int seconds;
     29  int          i;
     30  int          status;
    3131
    3232  for ( i=0 ; i<5 ; i++ ) {
  • testsuites/psxtests/psx03/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717volatile int Signal_occurred;
    1818volatile int Signal_count;
     19void Signal_handler( int signo );
    1920
    2021void Signal_handler(
  • testsuites/psxtests/psx04/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717volatile int Signal_occurred;
    1818volatile int Signal_count;
     19void Signal_handler( int signo );
     20void Signal_info_handler(
     21  int        signo,
     22  siginfo_t *info,
     23  void      *context
     24);
    1925
    2026void Signal_handler(
     
    5561)
    5662{
     63  unsigned int      remaining;
    5764  int               status;
    5865  struct sigaction  act;
     
    199206
    200207  puts( "Init: sleep so the other task can block" );
    201   status = sleep( 1 );
     208  remaining = sleep( 1 );
    202209  assert( !status );
    203210
     
    213220
    214221  puts( "Init: sleep so the other task can catch signal" );
    215   status = sleep( 1 );
     222  remaining = sleep( 1 );
    216223  assert( !status );
    217224
     
    245252
    246253  puts( "Init: Firing alarm in 5 seconds" );
    247   status = alarm( 5 );
     254  remaining = alarm( 5 );
    248255  printf( "Init: %d seconds left on previous alarm\n", status );
    249256  assert( !status );
    250257
    251258  puts( "Init: Firing alarm in 2 seconds" );
    252   status = alarm( 2 );
     259  remaining = alarm( 2 );
    253260  printf( "Init: %d seconds left on previous alarm\n", status );
    254261  assert( status );
    255262
    256263  puts( "Init: Wait 4 seconds for alarm" );
    257   status = sleep( 4 );
     264  remaining = sleep( 4 );
    258265  printf( "Init: %d seconds left in sleep\n", status );
    259266  assert( status );
     
    325332
    326333  puts( "Init: sleep so the Task_3 can sigqueue SIGUSR1" );
    327   status = sleep( 1 );
     334  remaining = sleep( 1 );
    328335  assert( !status );
    329336
     
    349356
    350357  puts( "Init: sleep so the Task_3 can receive SIGUSR1" );
    351   status = sleep( 1 );
     358  remaining = sleep( 1 );
    352359  assert( !status );
    353360
     
    369376
    370377  puts( "Init: sleep so the Task_3 can receive SIGUSR1" );
    371   status = sleep( 1 );
     378  remaining = sleep( 1 );
    372379  assert( !status );
    373380
     
    389396
    390397  puts( "Init: sleep so the Task_3 can receive SIGUSR2" );
    391   status = sleep( 1 );
     398  remaining = sleep( 1 );
    392399  assert( !status );
    393400
  • testsuites/psxtests/psx04/task1.c

    r7a9030a0 r2e7e636f  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    2525)
    2626{
    27   int seconds;
     27  unsigned int seconds;
    2828
    2929  printf( "Task_1: sleeping for 5 seconds\n" );
  • testsuites/psxtests/psx04/task3.c

    r7a9030a0 r2e7e636f  
    88 *  Output parameters:  NONE
    99 *
    10  *  COPYRIGHT (c) 1989-1999.
     10 *  COPYRIGHT (c) 1989-2009.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    2525)
    2626{
     27  unsigned int  remaining;
    2728  int           status;
    2829  int           sig;
     
    106107
    107108  printf( "Task_3: sleep so the Init task can reguest a signal\n" );
    108   status = sleep( 1 );
     109  remaining = sleep( 1 );
    109110  assert( !status );
    110111
  • testsuites/psxtests/psx05/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616
    1717#define MUTEX_BAD_ID 0xfffffffe
     18
     19void Print_mutexattr(
     20  char                *msg,
     21  pthread_mutexattr_t *attr
     22);
     23
     24void calculate_abstimeout(
     25  struct timespec *times,
     26  uint32_t         seconds,
     27  uint32_t         nanoseconds
     28);
    1829
    1930void Print_mutexattr(
     
    90101  while ( times->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
    91102    times->tv_sec++;
    92     times->tv_nsec - TOD_NANOSECONDS_PER_SECOND;
     103    times->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
    93104  }
    94105
  • testsuites/psxtests/psx06/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <errno.h>
    1515
     16void Key_destructor( void *key_data );
     17
    1618void Key_destructor(
    17    void *key_data
     19 void *key_data
    1820)
    1921{
     
    7476
    7577  puts( "Init: pthread_setspecific - EINVAL (invalid key)" );
    76   status = pthread_setspecific( -1, &Data_array[ 0 ] );
     78  status = pthread_setspecific( (pthread_t) -1, &Data_array[ 0 ] );
    7779  assert( status == EINVAL );
    7880
    7981  puts( "Init: pthread_getspecific - EINVAL (invalid key)" );
    80   key_data = pthread_getspecific( -1 );
     82  key_data = pthread_getspecific( (pthread_t) -1 );
    8183  assert( !key_data );
    8284
    8385  puts( "Init: pthread_key_delete - EINVAL (invalid key)" );
    84   status = pthread_key_delete( -1 );
     86  status = pthread_key_delete( (pthread_t) -1 );
    8587  assert( status == EINVAL );
    8688
  • testsuites/psxtests/psx07/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <errno.h>
    1515#include "tmacros.h"
     16
     17void print_schedparam(
     18  char               *prefix,
     19  struct sched_param *schedparam
     20);
    1621
    1722void print_schedparam(
     
    475480
    476481  puts( "Init: pthread_getschedparam - ESRCH (bad thread)" );
    477   status = pthread_getschedparam( -1, &schedpolicy, &schedparam );
     482  status = pthread_getschedparam( (pthread_t) -1, &schedpolicy, &schedparam );
    478483  fatal_directive_check_status_only( status, ESRCH, "bad thread" );
    479484
     
    507512
    508513  puts( "Init: pthread_setschedparam - ESRCH (invalid thread)" );
    509   status = pthread_setschedparam( -1, SCHED_OTHER, &schedparam );
     514  status = pthread_setschedparam( (pthread_t) -1, SCHED_OTHER, &schedparam );
    510515  fatal_directive_check_status_only( status, ESRCH, "invalid thread" );
    511516
  • testsuites/psxtests/psx08/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    3333
    3434  puts( "Init: pthread_detach - ESRCH (invalid id)" );
    35   status = pthread_detach( -1 );
     35  status = pthread_detach( (pthread_t) -1 );
    3636  assert( status == ESRCH );
    3737
     
    4848
    4949  puts( "Init: pthread_join - ESRCH (invalid id)" );
    50   status = pthread_join( -1, &return_pointer );
     50  status = pthread_join( (pthread_t) -1, &return_pointer );
    5151  assert( status == ESRCH );
    5252
  • testsuites/psxtests/psx09/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313#include "system.h"
    1414#include <errno.h>
     15
     16void print_schedparam(
     17  char               *prefix,
     18  struct sched_param *schedparam
     19);
    1520
    1621int HIGH_PRIORITY;
  • testsuites/psxtests/psx11/task.c

    r7a9030a0 r2e7e636f  
    99 *  Output parameters:  NONE
    1010 *
    11  *  COPYRIGHT (c) 1989-1999.
     11 *  COPYRIGHT (c) 1989-2009.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2222#include <time.h>
    2323#include <sched.h>
     24
     25void diff_timespec(
     26  struct timespec *start,
     27  struct timespec *stop,
     28  struct timespec *result
     29);
    2430
    2531void diff_timespec(
  • testsuites/psxtests/psx12/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313#include "system.h"
    1414#include <errno.h>
     15
     16void print_schedparam(
     17  char               *prefix,
     18  struct sched_param *schedparam
     19);
    1520
    1621void print_schedparam(
  • testsuites/psxtests/psx13/main.c

    r7a9030a0 r2e7e636f  
    22 *  Simple test program -- simplified version of sample test hello.
    33 *
    4  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1818
    1919void test_main( void );
     20rtems_task Init(
     21  rtems_task_argument ignored
     22);
    2023
    2124rtems_task Init(
  • testsuites/psxtests/psx13/test.c

    r7a9030a0 r2e7e636f  
    1616 *     utime        - test implemented
    1717 *
    18  *  COPYRIGHT (c) 1989-1999.
     18 *  COPYRIGHT (c) 1989-2009.
    1919 *  On-Line Applications Research Corporation (OAR).
    2020 *
     
    3838#include <pmacros.h>
    3939
     40int InitFiles(void);
     41int DeviceLSeekTest(void);
     42int DupTest(void);
     43int Dup2Test(void);
     44int FDataSyncTest(void);
     45int UMaskTest(void);
     46int UTimeTest(void);
     47int PipeTest(void);
     48int PathConfTest(void);
     49int FPathConfTest(void);
     50int FSyncTest(void);
     51
    4052/*-------------------------------------------------------------------
    4153 * InitFiles function
     
    5466 */
    5567
    56 int InitFiles (void) {
    57 
     68int InitFiles (void)
     69{
    5870  int count;
    5971  FILE *fp1, *fp2, *fp3;
     
    118130 */
    119131
    120 int DeviceLSeekTest (void) {
    121 
     132int DeviceLSeekTest (void)
     133{
    122134  int error = -1, retval = FALSE;
    123135
     
    134146
    135147  return (retval);
    136 
    137148}
    138149
     
    153164 */
    154165
    155 int DupTest(void) {
    156 
     166int DupTest(void)
     167{
    157168  int fd1, fd2;
    158169
     
    180191
    181192  return (retval);
    182 
    183193}
    184194
     
    201211 */
    202212
    203 int Dup2Test(void) {
    204 
     213int Dup2Test(void)
     214{
    205215  int fd1, fd2;
    206216
     
    252262
    253263  return (retval);
    254 
    255264}
    256265
     
    267276 *          attempts to fdatasync a perfectly valid fd opened as RDWR
    268277 *
    269  * returns: TRUE if attempt to fdatasync invalid and read-only filed escriptor fail, and fdatasync succeeds on valid fd.
     278 * returns: TRUE if attempt to fdatasync invalid and read-only filed
     279 *           descriptor fail, and fdatasync succeeds on valid fd.
    270280 *          FALSE otherwise.
    271281 *
     
    273283 */
    274284
    275 int FDataSyncTest(void) {
    276 
     285int FDataSyncTest(void)
     286{
    277287  int fd = -1;
    278288  int error = 0, retval = TRUE;
     
    315325
    316326    close (fd);
    317 
    318327  }
    319328
     
    339348 */
    340349
    341 int UMaskTest (void) {
    342 
    343   int error = 0, retval = FALSE;
    344 
    345   umask (023);
     350int UMaskTest (void)
     351{
     352  mode_t error = 0;
     353  int    retval = FALSE;
     354
     355  umask(023);
    346356  error = umask(022);
    347357
     
    354364
    355365  return(retval);
    356 
    357366}
    358367
     
    368377 *          set utime for a valid filename.
    369378 *
    370  * returns: TRUE if time on valid file is set correctly and utime failed on an invaid filename.
     379 * returns: TRUE if time on valid file is set correctly and utime failed on
     380 *          an invalid filename.
    371381 *          FALSE otherwise.
    372382 *
     
    374384 */
    375385
    376 int UTimeTest (void) {
    377 
     386int UTimeTest (void)
     387{
    378388  int error = 0, retval = FALSE;
    379389  struct utimbuf time;
     
    414424
    415425  return (retval);
    416 
    417426}
    418427
     
    432441 */
    433442
    434 int PipeTest (void) {
    435 
     443int PipeTest (void)
     444{
    436445  int error = 0, retval = FALSE;
    437446  int fd[2];
     
    447456
    448457  return(retval);
    449 
    450458}
    451459
     
    466474 */
    467475
    468 int PathConfTest (void) {
    469 
     476int PathConfTest (void)
     477{
    470478  int error = 0, retval = FALSE;
    471479
     
    487495
    488496  return(retval);
    489 
    490497}
    491498
     
    504511 */
    505512
    506 int FPathConfTest (void) {
    507 
     513int FPathConfTest (void)
     514{
    508515  int error = 0, retval = TRUE;
    509516
     
    538545
    539546  return(retval);
    540 
    541547}
    542548
     
    557563 */
    558564
    559 int FSyncTest (void) {
    560 
     565int FSyncTest (void)
     566{
    561567  int error = 0, retval = FALSE;
    562568  int fd = -1;
     
    582588
    583589  return(retval);
    584 
    585590}
    586591
     
    594599
    595600#if defined(__rtems__)
     601int test_main(void);
    596602int test_main(void)
    597603#else
  • testsuites/psxtests/psxbarrier01/test.c

    r7a9030a0 r2e7e636f  
    22 *  This test exercises the POSIX Barrier manager.
    33 *
    4  *  COPYRIGHT (c) 1989-2006.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    2323pthread_t ThreadIds[NUMBER_THREADS];
    2424pthread_barrier_t Barrier;
     25void *BarrierThread(void *arg);
    2526
    2627void *BarrierThread(void *arg)
     
    4243
    4344#if defined(__rtems__)
     45int test_main(void);
     46
    4447int test_main(void)
    4548#else
  • testsuites/psxtests/psxcancel/init.c

    r7a9030a0 r2e7e636f  
    5252#endif /* __rtems__ */
    5353
    54 void countTaskDeferred() {
     54void countTaskAsync(void);
     55void countTaskDeferred(void);
     56
     57void countTaskDeferred(void)
     58{
    5559  int i=0;
    5660  int type,state;
     
    6569}
    6670
    67 void countTaskAsync() {
     71void countTaskAsync(void)
     72{
    6873  int i=0;
    6974  int type,state;
  • testsuites/psxtests/psxcleanup/psxcleanup.c

    r7a9030a0 r2e7e636f  
    3939volatile bool writer_cleanup_ran;
    4040
     41void waiting_reader_cleanup(void *arg);
     42void lock_for_read(void *arg);
     43void release_read_lock(void *arg);
     44void waiting_writer_cleanup(void *arg);
     45void lock_for_write(lock_t *l);
     46void release_write_lock(void *arg);
     47void initialize_lock_t(lock_t *l);
     48void *ReaderThread(void *arg);
     49void *WriterThread(void *arg);
     50
    4151void waiting_reader_cleanup(void *arg)
    4252{
     
    212222 */
    213223
    214 void *POSIX_Init (
     224void *POSIX_Init(
    215225  void *argument
    216226)
  • testsuites/psxtests/psxenosys/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-2007.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020#include <unistd.h>
    2121#include <sched.h>
     22
     23void check_enosys(int status);
    2224
    2325void check_enosys(int status)
  • testsuites/psxtests/psxmsgq02/init.c

    r7a9030a0 r2e7e636f  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2009.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5757  puts("Init: mq_open - Workspace not available - ENOMEM");
    5858  mq = mq_open( Get_Longest_Name(), O_CREAT, 0x777, &attr );
    59   fatal_posix_service_status_errno( mq, ENOMEM, "no workspace available" ); 
     59  fatal_posix_service_status_errno((int)mq, ENOMEM, "no workspace available"); 
    6060
    6161  puts( "*** END OF POSIX MESSAGE QUEUE 02 TEST ***" );
  • testsuites/psxtests/psxtime/main.c

    r7a9030a0 r2e7e636f  
    22 *  Simple test program -- simplified version of sample test hello.
    33 *
    4  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2009.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    1818
    1919void test_main( void );
     20rtems_task Init(
     21  rtems_task_argument ignored
     22);
    2023
    2124rtems_task Init(
  • testsuites/psxtests/psxtime/test.c

    r7a9030a0 r2e7e636f  
    33 *  and POSIX APIs to make sure they are consistent.
    44 *
    5  *  COPYRIGHT (c) 1989-1999.
     5 *  COPYRIGHT (c) 1989-2009.
    66 *  On-Line Applications Research Corporation (OAR).
    77 *
     
    2323#include <rtems.h>
    2424#include <rtems/libio.h>
     25
     26void test_adjtime(void);
     27void check_a_tod(
     28  rtems_time_of_day *the_tod
     29);
    2530
    2631/*
     
    8792}
    8893
    89 void test_adjtime()
     94void test_adjtime(void)
    9095{
    9196  int                sc;
     
    146151
    147152#if defined(__rtems__)
     153int test_main(void);
     154
    148155int test_main(void)
    149156#else
  • testsuites/psxtests/psxtimer01/psxtimer.c

    r7a9030a0 r2e7e636f  
    1313 *  Other POSIX facilities such as timers, condition, .. is also used
    1414 *
    15  *  COPYRIGHT (c) 1989-2008.
     15 *  COPYRIGHT (c) 1989-2009.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    3333#include <rtems/score/timespec.h>
    3434
     35void StopTimer(
     36  timer_t  timer_id,
     37  struct   itimerspec *timerdata
     38);
    3539
    3640/* temporal parameters of a task */
  • testsuites/psxtests/psxtimer02/psxtimer.c

    r7a9030a0 r2e7e636f  
    1313 *  Other POSIX facilities such as timers, condition, .. is also used
    1414 *
    15  *  COPYRIGHT (c) 1989-2008.
     15 *  COPYRIGHT (c) 1989-2009.
    1616 *  On-Line Applications Research Corporation (OAR).
    1717 *
     
    5252
    5353  puts( "timer_create - bad clock id - EINVAL" );
    54   status = timer_create( -1, &event, &timer );
     54  status = timer_create( (timer_t) -1, &event, &timer );
    5555  fatal_posix_service_status_errno( status, EINVAL, "bad clock id" );
    5656
Note: See TracChangeset for help on using the changeset viewer.