Back to index

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

Go to the source code of this file.

Defines

#define TEST_FUNCTION   do_test ()

Functions

static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 58 of file tst-signal7.c.


Function Documentation

static int do_test ( void  ) [static]

Definition at line 27 of file tst-signal7.c.

{
  int result = 0;

  errno = 0;
  if (sigaction (SIGCANCEL, NULL, NULL) == 0)
    {
      puts ("sigaction(SIGCANCEL) did not fail");
      result = 1;
    }
  else if (errno != EINVAL)
    {
      puts ("sigaction(SIGCANCEL) did not set errno to EINVAL");
      result = 1;
    }

  errno = 0;
  if (sigaction (SIGSETXID, NULL, NULL) == 0)
    {
      puts ("sigaction(SIGSETXID) did not fail");
      result = 1;
    }
  else if (errno != EINVAL)
    {
      puts ("sigaction(SIGSETXID) did not set errno to EINVAL");
      result = 1;
    }

  return result;
}

Here is the call graph for this function: