Back to index

glibc  2.9
Functions | Variables
allocrtsig.c File Reference
#include <signal.h>
#include <testrtsig.h>

Go to the source code of this file.

Functions

static void init (void)
int __libc_current_sigrtmin (void)
 strong_alias (__libc_current_sigrtmin, __libc_current_sigrtmin_private)
 libc_hidden_def (__libc_current_sigrtmin)
 strong_alias (__libc_current_sigrtmax, __libc_current_sigrtmax_private)
 libc_hidden_def (__libc_current_sigrtmax)
 strong_alias (__libc_allocate_rtsig, __libc_allocate_rtsig_private)

Variables

static int current_rtmin
static int current_rtmax
static int initialized

Function Documentation

Definition at line 53 of file allocrtsig.c.

{
  if (!initialized)
    init ();
  return current_rtmin;
}
static void init ( void  ) [static]

Definition at line 36 of file allocrtsig.c.

{
  if (!kernel_has_rtsig ())
    {
      current_rtmin = -1;
      current_rtmax = -1;
    }
  else
    {
      current_rtmin = __SIGRTMIN + 3;
      current_rtmax = __SIGRTMAX;
    }
  initialized = 1;
}

Here is the call graph for this function:

Definition at line 60 of file allocrtsig.c.

{
  if (!initialized)
    init ();
  return current_rtmax;
}

Definition at line 71 of file allocrtsig.c.

{
  if (!initialized)
    init ();
  if (current_rtmin == -1 || current_rtmin > current_rtmax)
    /* We don't have anymore signal available.  */
    return -1;

  return high ? current_rtmin++ : current_rtmax--;
}

Variable Documentation

int current_rtmax [static]

Definition at line 29 of file allocrtsig.c.

int current_rtmin [static]

Definition at line 28 of file allocrtsig.c.

int initialized [static]

Definition at line 31 of file allocrtsig.c.