Changeset 6c2de60 in rtems


Ignore:
Timestamp:
May 11, 2012, 7:12:11 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
2b36355b
Parents:
4c86e3d
Message:

psxtests - Eliminate missing prototype warnings

Location:
testsuites/psxtests
Files:
71 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psx11/task.c

    r4c86e3d r6c2de60  
    1 /*  Task_1
     1/**
     2 *  @file
     3 *
     4 *  Task_1
    25 *
    36 *  This routine serves as a test task.  It verifies the basic task
    47 *  switching capabilities of the executive.
    5  *
    6  *  Input parameters:
    7  *    argument - task argument
    8  *
    9  *  Output parameters:  NONE
    10  *
    11  *  COPYRIGHT (c) 1989-2009.
     8 */
     9
     10/*
     11 *  COPYRIGHT (c) 1989-2012.
    1212 *  On-Line Applications Research Corporation (OAR).
    1313 *
     
    2424#include <time.h>
    2525#include <sched.h>
     26
     27/* forward declarations to avoid warnings */
     28void diff_timespec(
     29  struct timespec *start,
     30  struct timespec *stop,
     31  struct timespec *result
     32);
    2633
    2734void diff_timespec(
  • testsuites/psxtests/psx15/init.c

    r4c86e3d r6c2de60  
    2323
    2424#include "tmacros.h"
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
    2528
    2629/*
  • testsuites/psxtests/psx16/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <pthread.h>
    1717
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
     20void *TestThread(void *argument);
     21
    1822int Index;
    1923
     
    3034}
    3135
    32 void *POSIX_Init(
    33   rtems_task_argument argument
    34 )
     36void *POSIX_Init(void *argument)
    3537{
    3638  int             status;
  • testsuites/psxtests/psxaio01/init.c

    r4c86e3d r6c2de60  
    2626#define WRONG_FD 404
    2727
     28/* forward declarations to avoid warnings */
     29struct aiocb *create_aiocb(int fd);
     30void free_aiocb(struct aiocb *aiocbp);
     31
    2832struct aiocb *
    2933create_aiocb (int fd)
  • testsuites/psxtests/psxaio02/init.c

    r4c86e3d r6c2de60  
    2323#include <fcntl.h>
    2424#include <rtems/chain.h>
     25
     26/* forward declarations to avoid warnings */
     27struct aiocb *create_aiocb(int fd);
     28void free_aiocb(struct aiocb *aiocbp);
    2529
    2630#define BUFSIZE 32
  • testsuites/psxtests/psxaio03/init.c

    r4c86e3d r6c2de60  
    2424#include <fcntl.h>
    2525#include <rtems/chain.h>
     26
     27/* forward declarations to avoid warnings */
     28struct aiocb *create_aiocb(int fd);
     29void free_aiocb(struct aiocb *aiocbp);
    2630
    2731#define MAX 6
  • testsuites/psxtests/psxalarm01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <signal.h>
    1717#include <errno.h>
     18
     19/* forward declarations to avoid warnings */
     20void *POSIX_Init(void *argument);
    1821
    1922volatile int Signal_occurred;
  • testsuites/psxtests/psxautoinit01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <pthread.h>
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
    1720
    1821void *POSIX_Init(
  • testsuites/psxtests/psxautoinit02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <pthread.h>
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
    1720
    1821void *POSIX_Init(
  • testsuites/psxtests/psxbarrier01/main.c

    r4c86e3d r6c2de60  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2012.
    53 *  On-Line Applications Research Corporation (OAR).
    64 *
     
    1816#include <bsp.h>
    1917#include <pmacros.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    2021
    2122void test_main( void );
  • testsuites/psxtests/psxcancel/init.c

    r4c86e3d r6c2de60  
    2222  #include <pmacros.h>
    2323#endif
     24
     25/* forward declarations to avoid warnings */
     26void *POSIX_Init(void *argument);
     27void countTask_cancel_handler(void *ignored);
     28void *countTaskDeferred(void *ignored);
     29void *countTaskAsync(void *ignored);
    2430
    2531volatile bool countTask_handler;
  • testsuites/psxtests/psxcancel01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <pmacros.h>
    1515#include <errno.h>
     16
     17/* forward declarations to avoid warnings */
     18void *POSIX_Init(void *argument);
     19rtems_timer_service_routine Cancel_duringISR_TSR(
     20  rtems_id  ignored_id,
     21  void     *ignored_address
     22);
     23rtems_timer_service_routine SetState_duringISR_TSR(
     24  rtems_id  ignored_id,
     25  void     *ignored_address
     26);
     27rtems_timer_service_routine SetType_duringISR_TSR(
     28  rtems_id  ignored_id,
     29  void     *ignored_address
     30);
     31void doit(
     32  rtems_timer_service_routine (*TSR)(rtems_id, void *),
     33  const char                   *method
     34);
    1635
    1736volatile int TSR_occurred;
  • testsuites/psxtests/psxchroot01/main.c

    r4c86e3d r6c2de60  
    1212#include <pmacros.h>
    1313
    14 void test_main( void );
     14/* forward declarations to avoid warnings */
     15rtems_task Init(rtems_task_argument argument);
     16int test_main(void);
    1517
    1618rtems_task Init(
  • testsuites/psxtests/psxchroot01/test.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2626#include <pmacros.h>
    2727#include <rtems/libcsupport.h>
     28
     29/* forward declarations to avoid warnings */
     30int test_main(void);
    2831
    2932static void touch( char *file )
  • testsuites/psxtests/psxclassic01/init.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  Based upon user code supplied in conjunction with PR1759
     5 */
     6
    17/*
    2  *  Based upon user code supplied in conjunction with PR1759
    3  *
    4  *  COPYRIGHT (c) 1989-2011.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2428int       Caught_signo = -1;
    2529siginfo_t Caught_siginfo = { -1, -1, };
     30
     31/* forward declarations to avoid warnings */
     32rtems_task Init(rtems_task_argument arg);
     33void handler(int signo);
     34void handler_info(int signo, siginfo_t *info, void *context);
     35rtems_task test_task(rtems_task_argument arg);
    2636
    2737void handler(int signo)
  • testsuites/psxtests/psxcleanup01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *
    3  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    43 *  On-Line Applications Research Corporation (OAR).
    54 *
     
    1615#include "pmacros.h"
    1716#include <pthread.h>  /* thread facilities */
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
     20void cleaner(void *arg);
    1821
    1922void cleaner(void *arg)
  • testsuites/psxtests/psxclock/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818#include "pritime.h"
    1919
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument argument);
    2022void check_enosys(int status);
    2123
  • testsuites/psxtests/psxcond01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <pthread.h>
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
     20void *BlockingThread(void *argument);
    1721
    1822pthread_cond_t  Condition;
  • testsuites/psxtests/psxeintr_join/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#define SIG_SUSPEND SIGUSR1
    2424#define SIG_THR_RESTART SIGUSR2
     25
     26/* forward declarations to avoid warnings */
     27void *POSIX_Init(void *argument);
     28static void print_sig_mask(const char * str);
     29void GC_suspend_handler(int sig);
     30void GC_restart_handler(int sig);
     31void *run(void *arg);
    2532
    2633sem_t GC_suspend_ack_sem;
     
    5461}
    5562
    56 void* run( void *arg )
     63void *run( void *arg )
    5764{
    5865  int       status;
  • testsuites/psxtests/psxfatal_support/system.h

    r4c86e3d r6c2de60  
    1 /*  system.h
     1/**
    22 *
    33 *  This include file contains information that is included in every
    44 *  function in the test set.
    5  *
    6  *  COPYRIGHT (c) 1989-2009.
     5 */
     6
     7/*
     8 *  COPYRIGHT (c) 1989-2012.
    79 *  On-Line Applications Research Corporation (OAR).
    810 *
     
    1517 *  Some of the fatal error cases require the ability to peek inside RTEMS
    1618 */
     19
    1720#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1821#include <rtems.h>
     
    2023
    2124/* functions */
     25void force_error(void);
     26
     27void Put_Source(uint32_t source);
     28
     29void Put_Error(
     30  uint32_t source,
     31  uint32_t error
     32);
    2233
    2334void *POSIX_Init(
  • testsuites/psxtests/psxfchx01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020#include <fcntl.h>
    2121
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument ignored);
     24
    2225rtems_task Init(
    2326  rtems_task_argument ignored
  • testsuites/psxtests/psxfile01/main.c

    r4c86e3d r6c2de60  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2012.
    53 *  On-Line Applications Research Corporation (OAR).
    64 *
     
    1917#include <pmacros.h>
    2018
    21 void test_main( void );
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument ignored);
     21void test_main(void);
    2222
    2323rtems_task Init(
  • testsuites/psxtests/psxfile01/test.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  Simple test program to exercise some of the basic functionality of
    35 *  POSIX Files and Directories Support.
     
    1012 *    /dev
    1113 *    /dev/XXX   [where XXX includes at least console]
    12  *
    13  *  COPYRIGHT (c) 1989-2011.
     14 */
     15
     16/*
     17 *  COPYRIGHT (c) 1989-2012.
    1418 *  On-Line Applications Research Corporation (OAR).
    1519 *
     
    4145#include "primode.h"
    4246
     47/* forward declarations to avoid warnings */
    4348void test_case_reopen_append(void);
     49void dump_statbuf(struct stat *buf);
     50void stat_a_file(const char *file);
     51int test_main(void);
    4452
    4553char test_write_buffer[ 1024 ];
     
    7179 *  dump_statbuf
    7280 */
    73 
    7481void dump_statbuf( struct stat *buf )
    7582{
  • testsuites/psxtests/psxfile01/test_cat.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  A test support function which performs a crude version of
    35 *  "cat" so you can look at specific parts of a file.
    4  *
    5  *  COPYRIGHT (c) 1989-2009.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 1989-2012.
    610 *  On-Line Applications Research Corporation (OAR).
    711 *
     
    2630
    2731#include <tmacros.h>
     32
     33/* forward declarations to avoid warnings */
     34void test_cat(char *file, int offset_arg, int length);
    2835
    2936/*
  • testsuites/psxtests/psxfile01/test_extend.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  A test support function which extends the file to the specified
    35 *  length.  This handles the implied open(), lseek(), write(), and close()
     
    68 *  The defined behavior is a seek() followed by a write() extends the file
    79 *  and zero fills the new length part.
    8  *
    9  *  COPYRIGHT (c) 1989-2009.
     10 */
     11
     12/*
     13 *  COPYRIGHT (c) 1989-2012.
    1014 *  On-Line Applications Research Corporation (OAR).
    1115 *
     
    3135#include <pmacros.h>
    3236
     37/* forward declarations to avoid warnings */
     38void test_extend(char *file, off_t  offset);
     39
    3340/*
    3441 *  test_extend routine
    3542 */
    36 
    3743void test_extend(
    3844  char   *file,
  • testsuites/psxtests/psxfile01/test_write.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  A test support function which performs a write() and
    35 *  handles implied open(), lseek(), write(), and close() operations.
    4  *
    5  *  COPYRIGHT (c) 1989-2009.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 1989-2012.
    610 *  On-Line Applications Research Corporation (OAR).
    711 *
     
    2630#include <pmacros.h>
    2731
     32/* forward declarations to avoid warnings */
     33void test_write(char *file, off_t offset, char *buffer);
     34
    2835/*
    2936 *  test_write routine
    3037 */
    31 
    3238void test_write(
    3339  char   *file,
  • testsuites/psxtests/psxfile02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2929#include <tmacros.h>
    3030#include "test_support.h"
     31
     32/* forward declarations to avoid warnings */
     33rtems_task Init(rtems_task_argument argument);
     34void do_with_fd(int fd, const char *description);
    3135
    3236void do_with_fd(
  • testsuites/psxtests/psxfilelock01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include "test_support.h"
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_task Init(
  • testsuites/psxtests/psxid01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818#include <errno.h>
    1919#include <sys/types.h>
     20
     21/* forward declarations to avoid warnings */
     22rtems_task Init(rtems_task_argument argument);
     23void test_gid(void);
     24void test_uid(void);
     25void test_pid(void);
     26void test_getlogin(void);
    2027
    2128void test_gid(void)
     
    126133  sc = getlogin_r( &ch, 0 );
    127134  rtems_test_assert( sc == ERANGE );
    128 
    129  
    130135}
    131136
  • testsuites/psxtests/psximfs01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121#include <errno.h>
    2222#include <rtems/libcsupport.h>
     23
     24/* forward declarations to avoid warnings */
     25rtems_task Init(rtems_task_argument argument);
     26void open_it(bool readOnly, bool create);
     27void write_helper(void);
     28void read_helper(void);
     29void truncate_helper(void);
     30void extend_helper(int eno);
     31void close_it(void);
     32void unlink_it(void);
    2333
    2434int TestFd;
  • testsuites/psxtests/psximfs02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2828#endif
    2929
    30 void IMFS_dump( void );
     30/* forward declarations to avoid warnings */
     31rtems_task Init(rtems_task_argument argument);
     32void IMFS_dump(void);
     33
    3134rtems_task Init(
    3235  rtems_task_argument argument
  • testsuites/psxtests/psxintrcritical01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <intrcritical.h>
    1616#include <time.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument ignored);
     20rtems_timer_service_routine test_release_from_isr(rtems_id timer, void *arg);
    1721
    1822#define TEST_NAME          "01"
  • testsuites/psxtests/psxitimer/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <sys/time.h>
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
    1720
    1821void *POSIX_Init(
  • testsuites/psxtests/psxkey01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include "tmacros.h"
    1818
    19 void Key_destructor(
    20    void *key_data
    21 )
     19/* forward declarations to avoid warnings */
     20void *POSIX_Init(void *argument);
     21void Key_destructor(void *key_data);
     22
     23void Key_destructor(void *key_data)
    2224{
    2325}
    24 
    2526
    2627void *POSIX_Init(
     
    2829)
    2930{
    30   int                    status;
     31  int    status;
    3132
    3233  puts( "\n\n*** POSIX KEY 01 TEST ***" );
  • testsuites/psxtests/psxkey02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include "tmacros.h"
    1717#include "pmacros.h"
     18
     19/* forward declarations to avoid warnings */
     20void *POSIX_Init(void *argument);
    1821
    1922void *POSIX_Init(
  • testsuites/psxtests/psxkey03/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include "tmacros.h"
    1717#include "pmacros.h"
     18
     19/* forward declarations to avoid warnings */
     20void *POSIX_Init(void *argument);
     21void destructor(void *value);
     22void *Test_Thread(void *key_value);
    1823
    1924pthread_key_t Key;
  • testsuites/psxtests/psxmount/main.c

    r4c86e3d r6c2de60  
    1414#include <pmacros.h>
    1515
    16 void test_main( void );
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument ignored);
     18void test_main(void);
    1719
    1820rtems_task Init(
  • testsuites/psxtests/psxmount/test.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2626#include <rtems/libio.h>
    2727#include <pmacros.h>
     28
     29/* forward declarations to avoid warnings */
     30int test_main(void);
    2831
    2932DIR *directory;
  • testsuites/psxtests/psxmsgq01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121#include "test_support.h"
    2222
     23/* forward declarations to avoid warnings */
     24void Start_Test(char *description);
     25void Validate_attributes(mqd_t mq, int oflag, int msg_count);
     26char *Build_Queue_Name(int i);
     27void open_test_queues(void);
     28void validate_mq_open_error_codes(void);
     29void validate_mq_unlink_error_codes(void);
     30void validate_mq_close_error_codes(void);
     31void validate_mq_getattr_error_codes(void);
     32void Send_msg_to_que(int que, int msg);
     33void Show_send_msg_to_que(char *task_name, int que, int msg);
     34void verify_queues_full(char *task_name);
     35void verify_queues_empty(char *task_name);
     36int empty_message_queues(char *task_name);
     37int fill_message_queues(char *task_name);
     38void Read_msg_from_que(int que, int msg);
     39int validate_mq_send_error_codes(void);
     40void validate_mq_receive_error_codes(void);
     41void verify_open_functionality(void);
     42void verify_unlink_functionality(void);
     43void verify_close_functionality(void);
     44void verify_timed_send_queue(int que, int is_blocking);
     45void verify_timed_send(void);
     46void verify_timed_receive_queue(char *task_name, int que, int is_blocking);
     47void verify_timed_receive(void);
     48void wait_for_signal(sigset_t *waitset, int sec, int expect_signal);
     49void verify_notify(void);
     50void verify_with_threads(void);
     51void verify_timedout_mq_timedreceive(
     52        char *task_name, int que, int is_blocking);;
     53void verify_timedout_mq_timedsend(int que, int is_blocking);
     54void verify_timed_receive(void);
     55void validate_mq_setattr(void);
     56void verify_timedout_mq_timedreceive(
     57  char *task_name, int que, int is_blocking);
     58void verify_mq_receive(void);
     59void verify_timedout_mq_timedsend(int que, int is_blocking);
     60void verify_mq_send(void);
     61void verify_timed_receive(void);
     62
    2363#define fatal_posix_mqd( _ptr, _msg ) \
    2464  if ( (_ptr != (mqd_t) -1) ) { \
     
    3070  }
    3171
    32 
    3372typedef struct {
    3473  char         msg[ 50 ];
    3574  int          size;
    3675  unsigned int priority;
    37 }Test_Message_t;
     76} Test_Message_t;
     77
    3878Test_Message_t Predefined_Msgs[MAXMSG+1];
    3979Test_Message_t Predefined_Msgs[MAXMSG+1] = {
     
    94134
    95135void Validate_attributes(
    96     mqd_t  mq,
    97     int    oflag,
    98     int    msg_count
     136  mqd_t  mq,
     137  int    oflag,
     138  int    msg_count
    99139)
    100140{
     
    115155
    116156#define Get_Queue_Name( i )  Test_q[i].name
    117 char *Build_Queue_Name( int i ) {
    118 
     157char *Build_Queue_Name(int i)
     158{
    119159  static char Queue_Name[PATH_MAX + 2];
    120160
     
    529569 * first queue.
    530570 */
    531 
    532571int validate_mq_send_error_codes(void)
    533572{
     
    13751414
    13761415}
    1377 
    1378 void *Task_ (
    1379   void *argument
    1380 )
    1381 {
    1382 
    1383   print_current_time( "Task_: ", "" );
    1384 
    1385   puts( "Task_: pthread_exit" );
    1386   pthread_exit( NULL );
    1387 
    1388      /* switch to Init */
    1389 
    1390   return NULL; /* just so the compiler thinks we returned something */
    1391 
    1392 }
  • testsuites/psxtests/psxmsgq01/system.h

    r4c86e3d r6c2de60  
    1 /*  system.h
     1/**
     2 *  @file
    23 *
    34 *  This include file contains information that is included in every
    45 *  function in the test set.
    5  *
    6  *  COPYRIGHT (c) 1989-1999.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 1989-2012.
    710 *  On-Line Applications Research Corporation (OAR).
    811 *
     
    2023#include <tmacros.h>
    2124
    22 void *POSIX_Init(
    23   void *argument
    24 );
    25 
    26 void *Task_1_through_3(
    27   void *argument
    28 );
     25void *POSIX_Init(void *argument);
     26void *Task_1_through_3(void *argument);
     27void *Task_4(void *argument);
     28void *Task_5(void *argument);
    2929
    3030/* configuration information */
  • testsuites/psxtests/psxmsgq02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include <tmacros.h>
    2323#include <signal.h>   /* signal facilities */
     24#include "test_support.h"
     25
     26/* forward declarations to avoid warnings */
     27void *POSIX_Init(void *argument);
    2428
    2529pthread_t        Init_id;
  • testsuites/psxtests/psxmsgq03/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020
    2121#include "test_support.h"
     22
     23/* forward declarations to avoid warnings */
     24rtems_timer_service_routine mq_send_timer(rtems_id timer, void *arg);
    2225
    2326mqd_t Queue;
  • testsuites/psxtests/psxmsgq04/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include "test_support.h"
    2424
     25/* forward declarations to avoid warnings */
     26void *POSIX_Init(void *argument);
     27
    2528void *POSIX_Init(
    2629  void *argument
     
    3134  int                     sc;
    3235  Heap_Information_block  start;
    33   Heap_Information_block  info;
    3436  size_t                  to_alloc;
    3537  void                   *alloced;
  • testsuites/psxtests/psxmutexattr01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <errno.h>
    1616#include <pthread.h>
     17
     18/* forward declarations to avoid warnings */
     19void *POSIX_Init(void *argument);
    1720
    1821#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
  • testsuites/psxtests/psxobj01/init.c

    r4c86e3d r6c2de60  
    1 /*  Odd Object Name/Id Error Cases
    2  *
    3  *  COPYRIGHT (c) 1989-2009.
     1/**
     2 *  @file
     3 *  Odd Object Name/Id Error Cases
     4 */
     5
     6/*
     7 *  COPYRIGHT (c) 1989-2012.
    48 *  On-Line Applications Research Corporation (OAR).
    59 *
     
    1519#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1620#include <tmacros.h>
     21
     22/* forward declarations to avoid warnings */
     23rtems_task Init(rtems_task_argument ignored);
    1724
    1825rtems_task Init(
  • testsuites/psxtests/psxpasswd01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <pwd.h>
    1818#include <grp.h>
     19
     20/* forward declarations to avoid warnings */
     21rtems_task Init(rtems_task_argument ignored);
     22void print_passwd(struct passwd *pw);
     23void print_group(struct group *gr);
    1924
    2025void print_passwd(
  • testsuites/psxtests/psxpasswd02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121#include <errno.h>
    2222#include <limits.h>
     23
     24/* forward declarations to avoid warnings */
     25rtems_task Init(rtems_task_argument ignored);
     26void print_passwd(struct passwd *pw);
     27void print_group(struct group *gr);
    2328
    2429void print_passwd(
  • testsuites/psxtests/psxpipe01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121#include <rtems/libcsupport.h>
    2222
     23/* forward declarations to avoid warnings */
     24rtems_task Init(rtems_task_argument ignored);
     25
    2326rtems_task Init(
    24   rtems_task_argument not_used
     27  rtems_task_argument ignored
    2528)
    2629{
  • testsuites/psxtests/psxrdwrv/main.c

    r4c86e3d r6c2de60  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2012.
    53 *  On-Line Applications Research Corporation (OAR).
    64 *
     
    1917#include <pmacros.h>
    2018
    21 void test_main( void );
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument ignored);
     21void test_main(void);
    2222
    2323rtems_task Init(
  • testsuites/psxtests/psxrdwrv/test.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  This test exercises the following routines:
    35 *
    46 *    + readv
    57 *    + writev
    6  *
    7  *  COPYRIGHT (c) 1989-2009.
     8 */
     9
     10/*
     11 *  COPYRIGHT (c) 1989-2012.
    812 *  On-Line Applications Research Corporation (OAR).
    913 *
     
    4044#endif
    4145
     46/* forward declarations to avoid warnings */
     47int test_main(void);
     48int fillPatternBuffer(void);
     49int doFunctionalTest(void);
     50int doErrorTest(void);
     51
    4252#define TESTFILE "testfile1.tst"
    43 
    4453
    4554/* This buffer size is assumed in the iovec initialization below */
     
    5766 *
    5867 */
    59 
    6068int fillPatternBuffer(void)
    6169{
     
    8088 *
    8189 */
    82 
    83 int doFunctionalTest(void) {
     90int doFunctionalTest(void)
     91{
    8492  FILE         *fp;
    8593  int           fd;
     
    166174 *
    167175 */
    168 
    169176int doErrorTest(void)
    170177{
  • testsuites/psxtests/psxreaddir/main.c

    r4c86e3d r6c2de60  
    1212#include <pmacros.h>
    1313
    14 void test_main( void );
     14/* forward declarations to avoid warnings */
     15rtems_task Init(rtems_task_argument ignored);
     16void test_main(void);
    1517
    1618rtems_task Init(
  • testsuites/psxtests/psxreaddir/test.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  This is a native test to explore how the readdir() family works.
    35 *  Newlib supports the following readdir() family members:
     
    1517 *  implementation of this appears to seek to the ((off/DIRENT_SIZE) + 1)
    1618 *  record where DIRENT_SIZE seems to be 12 bytes.
    17  *
    18  *  COPYRIGHT (c) 1989-2011.
     19 */
     20
     21/*
     22 *  COPYRIGHT (c) 1989-2012.
    1923 *  On-Line Applications Research Corporation (OAR).
    2024 *
     
    3640#include <errno.h>
    3741#include <rtems/imfs.h>
     42
     43/* forward declarations to avoid warnings */
     44int test_main(void);
     45void printdir(DIR *directory);
     46void complete_printdir(char *path);
     47int select1(const struct dirent *entry);
     48int select2(const struct dirent *entry);
     49int compare_ascending(const struct dirent **a, const struct dirent **b);
     50int compare_descending( const struct dirent **a, const struct dirent **b);
     51void test_across_mount(void);
     52void test_across_mount(void);
    3853
    3954DIR *directory;
     
    173188}
    174189
    175 
    176190int compare_descending( const struct dirent **a, const struct dirent **b )
    177191{
  • testsuites/psxtests/psxrwlock01/main.c

    r4c86e3d r6c2de60  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2012.
    53 *  On-Line Applications Research Corporation (OAR).
    64 *
     
    1917#include <pmacros.h>
    2018
    21 void test_main( void );
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument ignored);
     21void test_main(void);
    2222
    2323rtems_task Init(
  • testsuites/psxtests/psxrwlock01/test.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  This test exercises the POSIX RWLock manager.
     5 */
     6
    17/*
    2  *  This test exercises the POSIX RWLock manager.
    3  *
    4  *  COPYRIGHT (c) 1989-2010.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2125/* #define __USE_XOPEN2K XXX already defined on GNU/Linux */
    2226#include <pthread.h>
     27
     28/* forward declarations to avoid warnings */
     29void *ReadLockThread(void *arg);
     30void *WriteLockThread(void *arg);
     31int test_main(void);
    2332
    2433#if !HAVE_DECL_PTHREAD_RWLOCK_UNLOCK
  • testsuites/psxtests/psxsem01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2020#include <pmacros.h>
    2121#include "test_support.h"
     22
     23/* forward declarations to avoid warnings */
     24void *POSIX_Init(void *argument);
    2225
    2326#define fatal_posix_sem( _ptr, _msg ) \
  • testsuites/psxtests/psxsignal01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <signal.h>
    1717#include <errno.h>
     18
     19/* forward declarations to avoid warnings */
     20int test_main(void);
     21void Handler_1(int signo);
     22void Signal_handler(int signo);
     23void Signal_info_handler(int signo, siginfo_t *info, void *context);
     24rtems_timer_service_routine Signal_duringISR_TSR(
     25  rtems_id  ignored_id,
     26  void     *ignored_address
     27);
     28
    1829typedef void (*sighandler_t)(int);
    1930sighandler_t signal(int signum, sighandler_t handler);
  • testsuites/psxtests/psxsignal02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <pthread.h>
    1818#include <sched.h>
     19
     20/* forward declarations to avoid warnings */
     21void *POSIX_Init(void *argument);
     22void *Test_Thread(void *arg);
     23void Signal_handler(int signo);
     24void Install_Signal_Handler(const char *task_name);
    1925
    2026volatile bool      Signal_occurred;
  • testsuites/psxtests/psxsignal03/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    4646#else
    4747  #error "Test Mode not defined"
    48 
    4948#endif
    5049
     
    5453#include <pthread.h>
    5554#include <sched.h>
     55
     56/* forward declarations to avoid warnings */
     57void *POSIX_Init(void *argument);
     58void *Test_Thread(void *arg);
     59void Signal_handler(int signo, siginfo_t *info, void *arg);
     60const char *signal_name(int signo);
    5661
    5762volatile bool      Signal_occurred;
  • testsuites/psxtests/psxsignal05/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include <errno.h>
    2323#include <rtems/posix/psignal.h>
     24
     25/* forward declarations to avoid warnings */
     26void *POSIX_Init(void *argument);
     27void Signal_handler(int signo, siginfo_t *info, void *arg);
     28const char *signal_name(int signo);
    2429
    2530void Signal_handler(
  • testsuites/psxtests/psxsignal06/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <pthread.h>
    1717#include <errno.h>
     18
     19/* forward declarations to avoid warnings */
     20void *POSIX_Init(void *argument);
     21void Handler(int signo);
     22void *TestThread(void *argument);
    1823
    1924pthread_t       ThreadId;
     
    6469}
    6570
    66 void *POSIX_Init(
    67   rtems_task_argument argument
    68 )
     71void *POSIX_Init(void *argument)
    6972{
    7073  int status;
  • testsuites/psxtests/psxspin01/main.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  Simple test program wrapper for Spinlocks
     5 */
     6
    17/*
    2  *  Simple test program wrapper for Spinlocks
    3  *
    4  *  COPYRIGHT (c) 1989-2008.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    1822#include <bsp.h>
    1923#include <pmacros.h>
    20 
    21 void test_main( void );
     24 
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument ignored);
     27void test_main(void);
    2228
    2329rtems_task Init(
  • testsuites/psxtests/psxspin01/test.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  This test exercises the POSIX Spinlock manager.
     5 */
     6
    17/*
    2  *  This test exercises the POSIX Spinlock manager.
    3  *
    4  *  COPYRIGHT (c) 1989-2009.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2226
    2327#include <rtems.h>  /* for task creation */
     28
     29/* forward declarations to avoid warnings */
     30int test_main(void);
     31rtems_task SpinlockThread(rtems_task_argument arg);
    2432
    2533pthread_spinlock_t Spinlock;
  • testsuites/psxtests/psxspin02/main.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  Simple test program wrapper for Spinlocks
     5 */
     6
    17/*
    2  *  Simple test program wrapper for Spinlocks
    3  *
    4  *  COPYRIGHT (c) 1989-2008.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    1923#include <pmacros.h>
    2024
    21 void test_main( void );
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument ignored);
     27void test_main(void);
    2228
    2329rtems_task Init(
  • testsuites/psxtests/psxspin02/test.c

    r4c86e3d r6c2de60  
     1/**
     2 *  @file
     3 *
     4 *  This test exercises the POSIX Spinlock manager.
     5 */
     6
    17/*
    2  *  This test exercises the POSIX Spinlock manager.
    3  *
    4  *  COPYRIGHT (c) 1989-2009.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2226
    2327#include <rtems.h>  /* for task creation */
     28
     29/* forward declarations to avoid warnings */
     30int test_main(void);
     31rtems_task SpinlockThread(rtems_task_argument arg);
    2432
    2533pthread_spinlock_t Spinlock;
  • testsuites/psxtests/psxstack01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1919
    2020#include <rtems/posix/pthread.h> /* for PTHREAD_MINIMUM_STACK_SIZE */
     21
     22/* forward declarations to avoid warnings */
     23void *POSIX_Init(void *argument);
     24void *Test_Thread(void *argument);
    2125
    2226void *Stack_Low;
  • testsuites/psxtests/psxstack02/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2121
    2222#include <rtems/posix/pthread.h> /* for PTHREAD_MINIMUM_STACK_SIZE */
     23
     24/* forward declarations to avoid warnings */
     25void *POSIX_Init(void *argument);
     26void *Test_Thread(void *arg);
    2327
    2428void *Stack_Low;
     
    4751}
    4852
    49 void *POSIX_Init(
    50   rtems_task_argument argument
    51 )
     53void *POSIX_Init(void *argument)
    5254{
    5355#if HAVE_DECL_PTHREAD_ATTR_SETSTACK
  • testsuites/psxtests/psxstat/main.c

    r4c86e3d r6c2de60  
    11/*
    2  *  Simple test program -- simplified version of sample test hello.
    3  *
    4  *  COPYRIGHT (c) 1989-1999.
     2 *  COPYRIGHT (c) 1989-2012.
    53 *  On-Line Applications Research Corporation (OAR).
    64 *
     
    1917#include <pmacros.h>
    2018
    21 void test_main( void );
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument ignored);
     21void test_main(void);
    2222
    2323rtems_task Init(
  • testsuites/psxtests/psxstat/test.c

    r4c86e3d r6c2de60  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  This test exercises stat() via fstat() and generates as many of the
    35 *  path evaluation cases as possible.
     
    57 *  This test also exercises lstat() and lchown() when symlinks are
    68 *  involved.
    7  *
    8  *  COPYRIGHT (c) 1989-2010.
     9 */
     10
     11/*
     12 *  COPYRIGHT (c) 1989-2012.
    913 *  On-Line Applications Research Corporation (OAR).
    1014 *
     
    3337
    3438#include "primode.h"
     39
     40/* forward declarations to avoid warnings */
     41int test_main(void);
     42void stat_a_file_helper(const char *file, int follow_link);
     43void stat_a_file(const char *file);
     44void lstat_a_file(const char *file);
     45void stat_multiple_files(char **files);
     46void chown_multiple_files_helper(char **files, int follow_link);
     47void chown_multiple_files(char **files);
     48void lchown_multiple_files(char **files);
     49void make_multiple_files(char **files);
     50void make_multiple_bad_files(char **files);
     51void make_multiple_links(char **existing, char **new);
     52void make_too_many_links(void);
     53void make_a_symlink(char *existing, char *new);
     54void make_multiple_symlinks(void);
     55void make_many_symlinks(char  *real_file, int link_count);
     56void make_multiple_directories(char **files);
     57void Cause_faults(void);
     58void Show_Time(void);
     59void test_statvfs(void);
    3560
    3661#define MAXSYMLINK 5   /* There needs to be a better way of getting this. */
     
    176201 *  Do a stat/lstat on a single file and report the status.
    177202 */
    178 
    179203void stat_a_file_helper(
    180204  const char *file,
     
    249273 *  stat() multiple files at a time
    250274 */
    251 
    252275void stat_multiple_files(
    253276  char **files
     
    325348 *  mknod() multiple files at a time
    326349 */
    327 
    328350void make_multiple_files(
    329351  char **files
     
    385407}
    386408
    387 
    388409void make_too_many_links(void)
    389410{
     
    408429}
    409430
    410 
    411431void make_a_symlink(
    412432  char *existing,
     
    476496}
    477497*/
     498
    478499void make_many_symlinks(
    479500  char  *real_file,
     
    505526 *  mkdir() multiple directories at a time
    506527 */
    507 
    508528void make_multiple_directories(
    509529  char **files
     
    526546 * Cause faults.
    527547 */
    528 
    529 
    530548void Cause_faults(void)
    531549{
     
    763781}
    764782
    765 void test_statvfs( void )
     783void test_statvfs(void)
    766784{
    767785
  • testsuites/psxtests/psxtimes01/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <errno.h>
    1818
    19 clock_t _times_r(
    20    struct _reent *ptr,
    21    struct tms  *ptms
    22 );
    23 
    24 clock_t _times(
    25    struct tms  *ptms
    26 );
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
     21clock_t _times_r(struct _reent *ptr, struct tms  *ptms);
     22clock_t _times(struct tms  *ptms);
    2723
    2824rtems_task Init(
  • testsuites/psxtests/psxualarm/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <unistd.h>
    1818#include <errno.h>
     19
     20/* forward declarations to avoid warnings */
     21void Signal_handler(int signo);
     22rtems_timer_service_routine Signal_duringISR_TSR(
     23  rtems_id  ignored_id,
     24  void     *ignored_address
     25);
     26
    1927typedef void (*sighandler_t)(int);
    2028sighandler_t signal(int signum, sighandler_t handler);
  • testsuites/psxtests/psxusleep/init.c

    r4c86e3d r6c2de60  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1515#include <time.h>
    1616#include <errno.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_task Init(
Note: See TracChangeset for help on using the changeset viewer.