Back to index

glibc  2.9
Defines | Enumerations | Functions | Variables
threadvar.h File Reference
#include <features.h>
#include <machine-sp.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _HURD_THREADVAR_H_EXTERN_INLINE   __extern_inline

Enumerations

enum  __hurd_threadvar_index {
  _HURD_THREADVAR_MIG_REPLY, _HURD_THREADVAR_ERRNO, _HURD_THREADVAR_SIGSTATE, _HURD_THREADVAR_DYNAMIC_USER,
  _HURD_THREADVAR_MALLOC, _HURD_THREADVAR_DL_ERROR, _HURD_THREADVAR_RPC_VARS, _HURD_THREADVAR_LOCALE,
  _HURD_THREADVAR_CTYPE_B, _HURD_THREADVAR_CTYPE_TOLOWER, _HURD_THREADVAR_CTYPE_TOUPPER, _HURD_THREADVAR_MAX
}

Functions

unsigned long int__hurd_threadvar_location_from_sp (enum __hurd_threadvar_index __index, void *__sp)
unsigned long int__hurd_threadvar_location (enum __hurd_threadvar_index __index) __THROW__attribute__((__const__))

Variables

unsigned long int __hurd_threadvar_stack_mask
unsigned long int __hurd_threadvar_stack_offset
unsigned long int __hurd_sigthread_stack_base
unsigned long int __hurd_sigthread_stack_end
unsigned long int__hurd_sigthread_variables
unsigned int __hurd_threadvar_max

Define Documentation

Definition at line 77 of file threadvar.h.


Enumeration Type Documentation

Enumerator:
_HURD_THREADVAR_MIG_REPLY 
_HURD_THREADVAR_ERRNO 
_HURD_THREADVAR_SIGSTATE 
_HURD_THREADVAR_DYNAMIC_USER 
_HURD_THREADVAR_MALLOC 
_HURD_THREADVAR_DL_ERROR 
_HURD_THREADVAR_RPC_VARS 
_HURD_THREADVAR_LOCALE 
_HURD_THREADVAR_CTYPE_B 
_HURD_THREADVAR_CTYPE_TOLOWER 
_HURD_THREADVAR_CTYPE_TOUPPER 
_HURD_THREADVAR_MAX 

Definition at line 59 of file threadvar.h.

  {
    _HURD_THREADVAR_MIG_REPLY,     /* Reply port for MiG user stub functions.  */
    _HURD_THREADVAR_ERRNO,  /* `errno' value for this thread.  */
    _HURD_THREADVAR_SIGSTATE,      /* This thread's `struct hurd_sigstate'.  */
    _HURD_THREADVAR_DYNAMIC_USER, /* Dynamically-assigned user variables.  */
    _HURD_THREADVAR_MALLOC, /* For use of malloc.  */
    _HURD_THREADVAR_DL_ERROR,      /* For use of -ldl and dynamic linker.  */
    _HURD_THREADVAR_RPC_VARS,      /* For state of RPC functions.  */
    _HURD_THREADVAR_LOCALE, /* For thread-local locale setting.  */
    _HURD_THREADVAR_CTYPE_B,       /* Cache of thread-local locale data.  */
    _HURD_THREADVAR_CTYPE_TOLOWER, /* Cache of thread-local locale data.  */
    _HURD_THREADVAR_CTYPE_TOUPPER, /* Cache of thread-local locale data.  */
    _HURD_THREADVAR_MAX            /* Default value for __hurd_threadvar_max.  */
  };

Function Documentation

Definition at line 110 of file threadvar.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 86 of file threadvar.h.

{
  unsigned long int __stack = (unsigned long int) __sp;
  return &((__stack >= __hurd_sigthread_stack_base &&
           __stack < __hurd_sigthread_stack_end)
          ? __hurd_sigthread_variables
          : (unsigned long int *) ((__stack & __hurd_threadvar_stack_mask) +
                                __hurd_threadvar_stack_offset))[__index];
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 51 of file hurdsig.c.

Definition at line 52 of file hurdsig.c.

Definition at line 53 of file hurdsig.c.

Definition at line 82 of file dl-sysdep.c.

Definition at line 81 of file dl-sysdep.c.