Back to index

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

Go to the source code of this file.

Functions

int __libc_current_sigrtmin (void)
 libc_hidden_def (__libc_current_sigrtmin)
 libc_hidden_def (__libc_current_sigrtmax)

Variables

static int current_rtmin = -1
static int current_rtmax = -1

Function Documentation

Definition at line 57 of file allocrtsig.c.

{
#ifdef __SIGRTMIN
  if (!initialized)
    init ();
#endif
  return current_rtmin;
}

Here is the call graph for this function:

Definition at line 65 of file allocrtsig.c.

{
#ifdef __SIGRTMIN
  if (!initialized)
    init ();
#endif
  return current_rtmax;
}

Here is the call graph for this function:

Definition at line 77 of file allocrtsig.c.

{
#ifndef __SIGRTMIN
  return -1;
#else
  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--;
#endif
}

Here is the call graph for this function:


Variable Documentation

int current_rtmax = -1 [static]

Definition at line 29 of file allocrtsig.c.

int current_rtmin = -1 [static]

Definition at line 28 of file allocrtsig.c.