Back to index

glibc  2.9
Defines | Typedefs | Functions
malloc-machine.h File Reference
#include <atomic.h>
#include <bits/libc-lock.h>
#include <fork.h>
#include <bits/libc-tsd.h>
#include <sysdeps/generic/malloc-machine.h>

Go to the source code of this file.

Defines

#define mutex_init(m)   __libc_lock_init (*(m))
#define mutex_lock(m)   __libc_lock_lock (*(m))
#define mutex_trylock(m)   __libc_lock_trylock (*(m))
#define mutex_unlock(m)   __libc_lock_unlock (*(m))
#define ATFORK_MEM   static struct fork_handler atfork_mem
#define thread_atfork(prepare, parent, child)
#define tsd_key_create(key, destr)   ((void) (key))
#define tsd_setspecific(key, data)   __libc_tsd_set (void *, MALLOC, (data))
#define tsd_getspecific(key, vptr)   ((vptr) = __libc_tsd_get (void *, MALLOC))

Typedefs

typedef int tsd_key_t [1]

Functions

 __libc_lock_define (typedef, mutex_t) extern void *__dso_handle __attribute__((__weak__))

Define Documentation

#define ATFORK_MEM   static struct fork_handler atfork_mem

Definition at line 41 of file malloc-machine.h.

#define mutex_init (   m)    __libc_lock_init (*(m))
#define mutex_lock (   m)    __libc_lock_lock (*(m))
#define mutex_trylock (   m)    __libc_lock_trylock (*(m))
#define mutex_unlock (   m)    __libc_lock_unlock (*(m))
#define thread_atfork (   prepare,
  parent,
  child 
)
Value:
atfork_mem.prepare_handler = prepare;                                       \
  atfork_mem.parent_handler = parent;                                       \
  atfork_mem.child_handler = child;                                         \
  atfork_mem.dso_handle = &__dso_handle == NULL ? NULL : __dso_handle;             \
  atfork_mem.refcntr = 1;                                            \
  __linkin_atfork (&atfork_mem)

Definition at line 52 of file malloc-machine.h.

#define tsd_getspecific (   key,
  vptr 
)    ((vptr) = __libc_tsd_get (void *, MALLOC))
#define tsd_key_create (   key,
  destr 
)    ((void) (key))
#define tsd_setspecific (   key,
  data 
)    __libc_tsd_set (void *, MALLOC, (data))

Typedef Documentation

typedef int tsd_key_t[1]

Definition at line 65 of file malloc-machine.h.


Function Documentation

__libc_lock_define ( typedef  ,
mutex_t   
)