Changeset 4c86e3d in rtems


Ignore:
Timestamp:
May 11, 2012, 5:20:47 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
6c2de60
Parents:
a03d4453
Message:

libtmtests - Eliminate missing prototype warnings

Location:
testsuites/libtests
Files:
46 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/block01/init.c

    ra03d4453 r4c86e3d  
    3333#include <rtems/ramdisk.h>
    3434#include <rtems/diskdevs.h>
     35
     36/* forward declarations to avoid warnings */
     37static rtems_task Init(rtems_task_argument argument);
    3538
    3639#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block02/init.c

    ra03d4453 r4c86e3d  
    3131#include <rtems/bdbuf.h>
    3232#include <rtems/diskdevs.h>
     33
     34/* forward declarations to avoid warnings */
     35static rtems_task Init(rtems_task_argument argument);
    3336
    3437#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block03/init.c

    ra03d4453 r4c86e3d  
    3131#include <rtems/bdbuf.h>
    3232#include <rtems/diskdevs.h>
     33
     34/* forward declarations to avoid warnings */
     35static rtems_task Init(rtems_task_argument argument);
    3336
    3437#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block04/init.c

    ra03d4453 r4c86e3d  
    3131#include <rtems/bdbuf.h>
    3232#include <rtems/diskdevs.h>
     33
     34/* forward declarations to avoid warnings */
     35static rtems_task Init(rtems_task_argument argument);
    3336
    3437#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block05/init.c

    ra03d4453 r4c86e3d  
    3232#include <rtems/bdbuf.h>
    3333#include <rtems/diskdevs.h>
     34
     35/* forward declarations to avoid warnings */
     36static rtems_task Init(rtems_task_argument argument);
    3437
    3538#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block06/init.c

    ra03d4453 r4c86e3d  
    2929#include <rtems/error.h>
    3030#include <rtems/bdbuf.h>
     31
     32/* forward declarations to avoid warnings */
     33static rtems_task Init(rtems_task_argument argument);
    3134
    3235#define BDBUF_DISKS 2
  • testsuites/libtests/block07/init.c

    ra03d4453 r4c86e3d  
    3535#include <rtems/diskdevs.h>
    3636
     37/* forward declarations to avoid warnings */
     38static rtems_task Init(rtems_task_argument argument);
     39
    3740#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
    3841
  • testsuites/libtests/block09/init.c

    ra03d4453 r4c86e3d  
    3131#include <rtems/bdbuf.h>
    3232#include <rtems/diskdevs.h>
     33
     34/* forward declarations to avoid warnings */
     35static rtems_task Init(rtems_task_argument argument);
    3336
    3437#define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL)
  • testsuites/libtests/block10/init.c

    ra03d4453 r4c86e3d  
    3131#include <rtems/diskdevs.h>
    3232
     33/* forward declarations to avoid warnings */
     34static rtems_task Init(rtems_task_argument argument);
     35
    3336#define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL)
    3437
  • testsuites/libtests/block11/init.c

    ra03d4453 r4c86e3d  
    3838#include <rtems/malloc.h>
    3939
     40/* forward declarations to avoid warnings */
     41static rtems_task Init(rtems_task_argument argument);
     42
    4043#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
    4144
  • testsuites/libtests/bspcmdline01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include <rtems/bspcmdline.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
     19void test_errors(void);
     20void test_search(bool null_expected, const char *cmdline, const char *param);
    1621
    1722extern const char *bsp_boot_cmdline;
  • testsuites/libtests/devfs01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <rtems/devfs.h>
    1717#include <errno.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    1821
    1922rtems_task Init(
  • testsuites/libtests/devfs02/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2626#include <rtems/devfs.h>
    2727#include <rtems/malloc.h>
     28
     29/* forward declarations to avoid warnings */
     30rtems_task Init(rtems_task_argument argument);
    2831
    2932rtems_task Init(
  • testsuites/libtests/devfs03/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include <sys/stat.h>
    2424#include <fcntl.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
    2528
    2629rtems_task Init(
  • testsuites/libtests/devfs04/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include "test_driver.h"
    2323#include <rtems/devnull.h>
     24
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument argument);
    2427
    2528rtems_task Init(
  • testsuites/libtests/deviceio01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include "test_driver.h"
    2323#include <rtems/devnull.h>
     24
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument argument);
    2427
    2528rtems_task Init(
  • testsuites/libtests/dumpbuf01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <rtems/dumpbuf.h>
    1717
    18 unsigned char Buffer[] =
    19 "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n";
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20void do_test(int length);
     21
     22unsigned char Buffer[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n";
    2023
    2124void do_test(
  • testsuites/libtests/flashdisk01/init.c

    ra03d4453 r4c86e3d  
    3333#include "test-file-system.h"
    3434
     35/* forward declarations to avoid warnings */
     36static rtems_task Init(rtems_task_argument argument);
     37
    3538#define FLASHDISK_CONFIG_COUNT 1
    3639
  • testsuites/libtests/ftp01/init.c

    ra03d4453 r4c86e3d  
    2727#include <rtems/ftpd.h>
    2828#include <rtems/ftpfs.h>
     29
     30/* forward declarations to avoid warnings */
     31static rtems_task Init(rtems_task_argument argument);
    2932
    3033struct rtems_bsdnet_config rtems_bsdnet_config;
  • testsuites/libtests/gxx01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <rtems/gxx_wrappers.h>
    1717
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
     20void test_recursive_mutex(void);
     21void test_mutex(void);
     22void once_function(void);
     23void test_once(void);
     24void key_dtor(void *ptr);
     25void test_key(void);
     26
    1827void test_recursive_mutex(void)
    1928{
  • testsuites/libtests/malloc02/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1313
    1414#include <tmacros.h>
     15
     16/* forward declarations to avoid warnings */
     17rtems_task Init(rtems_task_argument argument);
     18rtems_timer_service_routine test_operation_from_isr(rtems_id timer, void *arg);
    1519
    1620volatile bool operation_performed_from_tsr;
  • testsuites/libtests/malloc03/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include "test_support.h"
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
    1619
    1720rtems_task Init(
  • testsuites/libtests/malloc05/init.c

    ra03d4453 r4c86e3d  
    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 <rtems/malloc.h>
     17
     18/* forward declarations to avoid warnings */
     19rtems_task Init(rtems_task_argument argument);
    1720
    1821rtems_task Init(
  • testsuites/libtests/mouse01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2011.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2727
    2828#define UID_MESSAGE_COUNT 10
     29
     30/* forward declarations to avoid warnings */
     31rtems_task Init(rtems_task_argument argument);
     32bool enqueue_next_action(
     33  const unsigned char *actions,
     34  size_t               max,
     35  size_t               to_enqueue
     36);
     37void open_it(void);
     38void register_it(void);
     39void printf_uid_message(struct MW_UID_MESSAGE *uid);
     40void receive_uid_message(void);
     41void close_it(void);
    2942
    3043extern const char *Mouse_Type_Long;
  • testsuites/libtests/rbheap01/init.c

    ra03d4453 r4c86e3d  
    2121#include <rtems.h>
    2222#include <rtems/rbheap.h>
     23
     24/* forward declarations to avoid warnings */
     25static rtems_task Init(rtems_task_argument argument);
    2326
    2427#define PAGE_SIZE 1024
  • testsuites/libtests/stackchk/blow.c

    ra03d4453 r4c86e3d  
    44 *  15 seconds and then call a routine to "blow the stack".
    55 *
    6  *  COPYRIGHT (c) 1989-1999.
     6 *  COPYRIGHT (c) 1989-2012.
    77 *  On-Line Applications Research Corporation (OAR).
    88 *
     
    1919#include <rtems/stackchk.h>
    2020
    21 void b(void) {}
     21/* forward declarations to avoid warnings */
     22void b(void);
     23void blow_stack(void);
    2224
    23 void blow_stack( void )
     25void b(void)
     26{
     27}
     28
     29void blow_stack(void)
    2430{
    2531  volatile uint32_t   *low, *high;
    2632  unsigned char *area;
    2733
    28 b();
     34  b();
     35
    2936  /*
    3037   *  Destroy the first and last 16 bytes of our stack... Hope it
  • testsuites/libtests/stackchk01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1414#include <tmacros.h>
    1515#include <rtems/stackchk.h>
     16
     17/* forward declarations to avoid warnings */
     18rtems_task Init(rtems_task_argument argument);
    1619
    1720rtems_task Init(
  • testsuites/libtests/stringto01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818
    1919#include <stdio.h>
     20
     21/* forward declarations to avoid warnings */
     22rtems_task Init(rtems_task_argument argument);
    2023
    2124#define __STRING(x)     #x              /* stringify without expanding x */
  • testsuites/libtests/stringto01/stringto_test_template.h

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2009.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323  #error "what type are we testing?"
    2424#endif
     25
     26/* forward declarations to avoid warnings */
     27void TEST_STRING_TO_NAME(void);
    2528
    2629void TEST_STRING_TO_NAME(void)
  • testsuites/libtests/syscall01/init.c

    ra03d4453 r4c86e3d  
    2727#include <rtems/libio.h>
    2828#include <rtems/rtems_bsdnet.h>
     29
     30/* forward declarations to avoid warnings */
     31static rtems_task Init(rtems_task_argument argument);
    2932
    3033static const char open_driver_path [] = "/dev/open_driver";
  • testsuites/libtests/tar01/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2525
    2626#include "initial_filesystem_tar.h"
     27
     28/* forward declarations to avoid warnings */
     29rtems_task Init(rtems_task_argument argument);
     30void test_untar_from_memory(void);
     31void test_untar_from_file(void);
    2732
    2833#define TARFILE_START initial_filesystem_tar
  • testsuites/libtests/tar02/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2525
    2626#include "initial_filesystem_tar.h"
     27
     28/* forward declarations to avoid warnings */
     29rtems_task Init(rtems_task_argument argument);
     30void test_tarfs_load(void);
    2731
    2832#define TARFILE_START initial_filesystem_tar
  • testsuites/libtests/tar03/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1818#include <rtems/untar.h>
    1919#include <rtems/error.h>
     20
     21/* forward declarations to avoid warnings */
     22rtems_task Init(rtems_task_argument argument);
     23void test_tarfs_error(void);
    2024
    2125void test_tarfs_error(void)
  • testsuites/libtests/termios/init.c

    ra03d4453 r4c86e3d  
    2727#include <bsp.h>
    2828
    29 
    30 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    31 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    32 
    33 #define CONFIGURE_MAXIMUM_TASKS       1
    34 
    35 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    36 
    37 #define CONFIGURE_MICROSECONDS_PER_TICK 1000
    38 
    39 #define CONFIGURE_INIT
    40 
    41 rtems_task Init (rtems_task_argument argument);
    42 
    43 #include <rtems/confdefs.h>
    4429#include <rtems/shell.h>
    4530
     
    5136
    5237#include <tmacros.h>
     38
     39/* forward declarations to avoid warnings */
     40rtems_task Init(rtems_task_argument argument);
     41void print_32bits(unsigned long bits, unsigned char size, char * names[]);
     42void print_c_iflag(struct termios * tp);
     43void print_c_oflag(struct termios * tp);
     44void print_c_lflag(struct termios * tp);
     45void print_c_cflag(struct termios * tp);
     46void print_c_cc(struct termios * tp);
     47void print_termios(struct termios *tp);
     48unsigned long get_baud_rate(void);
     49unsigned long get_parity(void);
     50unsigned long get_stop_bits(void);
     51unsigned long get_data_bits(void);
     52void change_line_settings(struct termios *tp);
     53void canonical_input(struct termios *tp);
     54void do_raw_input(int vmin, int vtime);
     55void usage(void);
    5356
    5457#if !defined(fileno)
     
    439442
    440443
    441 unsigned long get_baud_rate( void )
     444unsigned long get_baud_rate(void)
    442445{
    443446  unsigned long baud_rate;
     
    796799  }
    797800}
     801
     802/* application configuration */
     803#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
     804#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     805
     806#define CONFIGURE_MAXIMUM_TASKS       1
     807
     808#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
     809
     810#define CONFIGURE_MICROSECONDS_PER_TICK 1000
     811
     812#define CONFIGURE_INIT
     813
     814#include <rtems/confdefs.h>
     815/* end of configuration */
     816
  • testsuites/libtests/termios01/termios_testdriver.c

    ra03d4453 r4c86e3d  
     1/**
     2 *  @file
     3 *
     4 *  This file contains a test fixture termios device driver.
     5 */
     6
    17/*
    2  *  This file contains a test fixture termios device driver
    3  *
    4  *  COPYRIGHT (c) 1989-2009.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2226#include "termios_testdriver.h"
    2327
     28/* forward declarations to avoid warnings */
     29int termios_test_driver_inbyte_nonblocking(int port);
     30void termios_test_driver_outbyte_polled(int port, char ch);
     31ssize_t termios_test_driver_write_support(
     32  int         minor,
     33  const char *buf,
     34  size_t      len
     35);
     36int termios_test_driver_set_attributes(
     37  int                   minor,
     38  const struct termios *t
     39);
     40
    2441int termios_test_driver_inbyte_nonblocking( int port )
    2542{
     
    3451}
    3552
    36 ssize_t termios_test_driver_write_support (int minor, const char *buf, size_t len)
     53ssize_t termios_test_driver_write_support(
     54  int         minor,
     55  const char *buf,
     56  size_t      len
     57)
    3758{
    3859  size_t nwrite = 0;
  • testsuites/libtests/termios02/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1616#include <errno.h>
    1717#include <unistd.h>
     18
     19/* forward declarations to avoid warnings */
     20rtems_task Init(rtems_task_argument argument);
    1821
    1922rtems_task Init(
  • testsuites/libtests/termios03/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include <termios.h>
    2323#include <rtems/dumpbuf.h>
     24
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument argument);
     27void write_helper(int fd, const char *c);
     28void read_helper(int fd, const char *expected);
     29void open_it(void);
     30void close_it(void);
     31void change_iflag(const char *desc, int mask, int new);
    2432
    2533void write_helper(
  • testsuites/libtests/termios03/termios_testdriver_polled.c

    ra03d4453 r4c86e3d  
     1/**
     2 *  @file
     3 *
     4 *  This file contains a test fixture termios device driver
     5 */
     6
    17/*
    2  *  This file contains a test fixture termios device driver
    3  *
    4  *  COPYRIGHT (c) 1989-2011.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2125#include <rtems/dumpbuf.h>
    2226#include "termios_testdriver_polled.h"
     27
     28/* forward declarations to avoid warnings */
     29int termios_test_driver_inbyte_nonblocking(int port);
     30void termios_test_driver_outbyte_polled(int port, char ch);
     31ssize_t termios_test_driver_write_support(
     32  int         minor,
     33  const char *buf,
     34  size_t      len
     35);
     36int termios_test_driver_set_attributes(
     37  int                   minor,
     38  const struct termios *t
     39);
    2340
    2441#define TX_MAX 1024
  • testsuites/libtests/termios04/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include <termios.h>
    2323#include <rtems/dumpbuf.h>
     24
     25/* forward declarations to avoid warnings */
     26void write_helper(int fd, const char *c);
     27void read_helper(int fd, const char *expected);
     28void open_it(void);
     29void close_it(void);
     30void change_iflag(const char *desc, int mask, int new);
     31rtems_task Init(rtems_task_argument argument);
    2432
    2533void write_helper(
  • testsuites/libtests/termios04/termios_testdriver_intr.c

    ra03d4453 r4c86e3d  
     1/**
     2 *  @file
     3 *
     4 *  This file contains a test fixture termios device driver
     5 */
     6
    17/*
    2  *  This file contains a test fixture termios device driver
    3  *
    4  *  COPYRIGHT (c) 1989-2011.
     8 *  COPYRIGHT (c) 1989-2012.
    59 *  On-Line Applications Research Corporation (OAR).
    610 *
     
    2226#include "termios_testdriver_intr.h"
    2327
     28/* forward declarations to avoid warnings */
     29void termios_test_driver_wait_for_tx_to_complete(void);
     30rtems_timer_service_routine Rx_ISR(
     31  rtems_id  ignored_id,
     32  void     *ignored_address
     33);
     34rtems_timer_service_routine Tx_ISR(
     35  rtems_id  ignored_id,
     36  void     *ignored_address
     37);
     38ssize_t termios_test_driver_write_helper(
     39  int         port,
     40  const char *buf,
     41  size_t      len
     42);
     43int termios_test_driver_set_attributes(
     44  int                   minor,
     45  const struct termios *t
     46);
     47#if defined(TASK_DRIVEN)
     48  int termios_test_driver_inbyte_nonblocking(int port);
     49#endif
     50
     51/* global variables */
    2452rtems_id Rx_Timer;
    2553rtems_id Tx_Timer;
  • testsuites/libtests/termios05/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2222#include <termios.h>
    2323#include <rtems/dumpbuf.h>
     24
     25/* forward declarations to avoid warnings */
     26rtems_task Init(rtems_task_argument argument);
     27void write_helper(int fd, const char *c);
     28void read_helper(int fd, const char *expected);
     29void open_it(void);
     30void close_it(void);
     31void change_iflag(const char *desc, int mask, int new);
    2432
    2533void write_helper(
  • testsuites/libtests/termios06/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include <rtems/dumpbuf.h>
    2424#include <rtems/termiostypes.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
     28void open_it(void);
     29void Rx_Wake(struct termios *tty, void *arg);
     30void Tx_Wake(struct termios *tty, void *arg);
     31void set_wakeups(void);
     32void set_discipline(void);
     33void ioctl_it(void);
     34void close_it(void);
     35void write_it(void);
     36void read_helper(int fd, const char *expected);
     37void read_it(void);
    2538
    2639void pppasyncattach(void);
  • testsuites/libtests/termios06/test_pppd.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    1717#include <rtems/dumpbuf.h>
    1818
     19/* forward declarations to avoid warnings */
     20void ppp_test_driver_set_rx(const char *expected, size_t len);
     21void pppasyncattach(void);
    1922int  pppopen(struct rtems_termios_tty *tty);
    2023int  pppclose(struct rtems_termios_tty *tty);
  • testsuites/libtests/termios07/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include <rtems/dumpbuf.h>
    2424#include <rtems/libio.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
     28void write_helper(int fd, const char *c);
     29void read_helper(int fd, const char *expected);
     30void open_it(void);
     31void close_it(void);
     32void change_iflag(const char *desc, int mask, int new);
    2533
    2634void write_helper(
  • testsuites/libtests/termios08/init.c

    ra03d4453 r4c86e3d  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2012.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2323#include <rtems/dumpbuf.h>
    2424#include <rtems/termiostypes.h>
     25
     26/* forward declarations to avoid warnings */
     27rtems_task Init(rtems_task_argument argument);
     28void open_it(void);
     29void close_it(void);
     30void write_it(void);
     31void change_lflag( const char *desc, int mask, int new );
     32void change_vmin_vtime( const char *desc, int min, int time );
     33void read_it(ssize_t expected);
    2534
    2635int Test_fd;
     
    8796}
    8897
    89 void read_it(
    90   ssize_t expected
    91 )
     98void read_it( ssize_t expected )
    9299{
    93100  ssize_t rc;
  • testsuites/libtests/tztest/init.c

    ra03d4453 r4c86e3d  
    1 /*
     1/**
     2 *  @file
     3 *
    24 *  This routine is the initialization task of test to exercise some
    35 *  timezone functionality.
    4  *
    5  *  COPYRIGHT (c) 2007.
     6 */
     7
     8/*
     9 *  COPYRIGHT (c) 2007-2012.
    610 *  On-Line Applications Research Corporation (OAR).
    711 *
     
    2024#include <time.h>
    2125#include <stdlib.h>
     26 
     27/* forward declarations to avoid warnings */
     28rtems_task Init(rtems_task_argument argument);
     29void tztester(void);
    2230
    2331void tztester(void)
Note: See TracChangeset for help on using the changeset viewer.