Changeset e94ce2f in rtems


Ignore:
Timestamp:
Oct 17, 2011, 7:18:21 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
d80b196
Parents:
63f4be9
Message:

2011-10-17 Ralf Corsépius <ralf.corsepius@…>

  • psxhdrs/signal01.c, psxhdrs/signal02.c, psxhdrs/signal03.c, psxhdrs/signal04.c, psxhdrs/signal05.c, psxhdrs/signal06.c, psxhdrs/signal07.c, psxhdrs/signal08.c, psxhdrs/signal09.c, psxhdrs/signal10.c, psxhdrs/signal11.c, psxhdrs/signal12.c, psxhdrs/signal13.c, psxhdrs/signal14.c, psxhdrs/signal15.c, psxhdrs/signal16.c, psxhdrs/signal17.c, psxhdrs/signal18.c, psxhdrs/signal19.c, psxhdrs/signal20.c, psxhdrs/signal21.c, psxhdrs/signal22.c, psxhdrs/signal23.c: Let test() return values (avoid warnings).
Location:
testsuites/psxtests
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r63f4be9 re94ce2f  
     12011-10-17      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * psxhdrs/signal01.c, psxhdrs/signal02.c, psxhdrs/signal03.c,
     4        psxhdrs/signal04.c, psxhdrs/signal05.c, psxhdrs/signal06.c,
     5        psxhdrs/signal07.c, psxhdrs/signal08.c, psxhdrs/signal09.c,
     6        psxhdrs/signal10.c, psxhdrs/signal11.c, psxhdrs/signal12.c,
     7        psxhdrs/signal13.c, psxhdrs/signal14.c, psxhdrs/signal15.c,
     8        psxhdrs/signal16.c, psxhdrs/signal17.c, psxhdrs/signal18.c,
     9        psxhdrs/signal19.c, psxhdrs/signal20.c, psxhdrs/signal21.c,
     10        psxhdrs/signal22.c, psxhdrs/signal23.c:
     11        Let test() return values (avoid warnings).
     12
    1132011-10-15      Ralf Corsépius <ralf.corsepius@rtems.org>
    214
  • testsuites/psxtests/psxhdrs/signal01.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t signal_set;
     
    3030
    3131  result = sigaddset( &signal_set, signal_number );
     32
     33  return result;
    3234}
  • testsuites/psxtests/psxhdrs/signal02.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t signal_set;
     
    3030
    3131  result = sigdelset( &signal_set, signal_number );
     32
     33  return result;
    3234}
  • testsuites/psxtests/psxhdrs/signal03.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t signal_set;
     
    2727
    2828  result = sigfillset( &signal_set );
     29
     30  return result;
    2931}
  • testsuites/psxtests/psxhdrs/signal04.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t signal_set;
     
    3030
    3131  result = sigismember( &signal_set, signal_number );
     32
     33  return result;
    3234}
  • testsuites/psxtests/psxhdrs/signal05.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t signal_set;
     
    2727
    2828  result = sigemptyset( &signal_set );
     29
     30  return result;
    2931}
  • testsuites/psxtests/psxhdrs/signal06.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  int              signal_number;
     
    4242
    4343  result = sigaction( signal_number, &act, &oact );
     44
     45  return result;
    4446}
  • testsuites/psxtests/psxhdrs/signal07.c

    r63f4be9 re94ce2f  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_t  thread;
     
    3535
    3636  result = pthread_kill( thread, signal_number );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/signal08.c

    r63f4be9 re94ce2f  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  int       how;
     
    3737
    3838  result = pthread_sigmask( how, &set, &oset );
     39
     40  return result;
    3941}
  • testsuites/psxtests/psxhdrs/signal09.c

    r63f4be9 re94ce2f  
    2020#include <signal.h>
    2121
    22 void test( void );
     22int test( void );
    2323
    24 void test( void )
     24int test( void )
    2525{
    2626  pid_t pid;
     
    3232
    3333  result = kill( pid, signal_number );
     34
     35  return result;
    3436}
  • testsuites/psxtests/psxhdrs/signal10.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t  set;
     
    2828
    2929  result = sigwait( &set, &sig );
     30
     31  return result;
    3032}
  • testsuites/psxtests/psxhdrs/signal11.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  int      signal_number;
     
    2929
    3030  result = raise( signal_number );
     31
     32  return result;
    3133}
  • testsuites/psxtests/psxhdrs/signal12.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  void (*signal_function_pointer)(int);
     
    2929
    3030  signal_function_pointer = signal( signal_number, SIG_IGN );
     31
     32  return (signal_function_pointer == SIG_ERR) ? -1 : 0;
    3133}
  • testsuites/psxtests/psxhdrs/signal13.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  int       how;
     
    3535
    3636  result = sigprocmask( how, &set, &oset );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/signal14.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t  set;
     
    2929
    3030  result = sigpending( &set );
     31
     32  return result;
    3133}
  • testsuites/psxtests/psxhdrs/signal15.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t  sigmask;
     
    2929
    3030  result = sigsuspend( &sigmask );
     31
     32  return result;
    3133}
  • testsuites/psxtests/psxhdrs/signal16.c

    r63f4be9 re94ce2f  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  int       how;
     
    3939
    4040  result = pthread_sigmask( how, &set, &oset );
     41
     42  return result;
    4143}
  • testsuites/psxtests/psxhdrs/signal17.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t  set;
     
    3030
    3131  result = sigwaitinfo( &set, &info );
     32
     33  return result;
    3234}
  • testsuites/psxtests/psxhdrs/signal18.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t        set;
     
    2828  int             result;
    2929
    30   (void) sigemptyset( &set );
     30  sigemptyset( &set );
    3131
    3232  result = sigtimedwait( &set, &info, &timeout );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/signal19.c

    r63f4be9 re94ce2f  
    1919#include <signal.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  sigset_t        set;
     
    3030
    3131  result = sigwait( &set, &sig );
     32
     33  return result;
    3234}
  • testsuites/psxtests/psxhdrs/signal20.c

    r63f4be9 re94ce2f  
    1919#include <unistd.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  unsigned int seconds;
     
    2929
    3030  result = alarm( seconds );
     31
     32  return result;
    3133}
  • testsuites/psxtests/psxhdrs/signal21.c

    r63f4be9 re94ce2f  
    1919#include <unistd.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  int result;
    2626
    2727  result = pause();
     28
     29  return result;
    2830}
  • testsuites/psxtests/psxhdrs/signal22.c

    r63f4be9 re94ce2f  
    1919#include <unistd.h>
    2020
    21 void test( void );
     21int test( void );
    2222
    23 void test( void )
     23int test( void )
    2424{
    2525  unsigned int seconds;
     
    2929
    3030  result = sleep( seconds );
     31
     32  return result;
    3133}
  • testsuites/psxtests/psxhdrs/signal23.c

    r63f4be9 re94ce2f  
    2323
    2424useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  useconds_t useconds;
     
    3535
    3636  result = ualarm( useconds, interval );
     37
     38  return (result == 0) ? 0 : -1;
    3739}
Note: See TracChangeset for help on using the changeset viewer.