Back to index

glibc  2.9
Defines | Functions
tst-kill5.c File Reference
#include <errno.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 48 of file tst-kill5.c.

Function Documentation

int do_test ( void  )

Definition at line 28 of file tst-kill5.c.

  /* XXX This test might require architecture and system specific changes.
     There is no guarantee that this signal number is invalid.  */
  int e = pthread_kill (pthread_self (), SIGRTMAX + 10);
  if (e == 0)
      puts ("kill didn't failed");
      exit (1);
  if (e != EINVAL)
      puts ("error not EINVAL");
      exit (1);

  return 0;

Here is the call graph for this function: