Back to index

glibc  2.9
Defines | Typedefs
malloc-machine.h File Reference
#include <atomic.h>
#include <bits/libc-lock.h>
#include <bits/libc-tsd.h>
#include <sysdeps/generic/malloc-machine.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define mutex_t   struct mutex
#define mutex_init(m)   (__mutex_init(m), 0)
#define mutex_lock(m)   (__mutex_lock(m), 0)
#define mutex_unlock(m)   (__mutex_unlock(m), 0)
#define mutex_trylock(m)   (!__mutex_trylock(m))
#define thread_atfork(prepare, parent, child)   do {} while(0)
#define thread_atfork_static(prepare, parent, child)
#define __pthread_initialize   ((void (*)(void))0)
#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]

Define Documentation

#define __pthread_initialize   ((void (*)(void))0)

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

#define mutex_init (   m)    (__mutex_init(m), 0)

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

#define mutex_lock (   m)    (__mutex_lock(m), 0)

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

#define mutex_t   struct mutex

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

#define mutex_trylock (   m)    (!__mutex_trylock(m))

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

#define mutex_unlock (   m)    (__mutex_unlock(m), 0)

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

#define thread_atfork (   prepare,
  parent,
  child 
)    do {} while(0)

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

#define thread_atfork_static (   prepare,
  parent,
  child 
)
Value:
text_set_element(_hurd_fork_prepare_hook, prepare); \
 text_set_element(_hurd_fork_parent_hook, parent); \
 text_set_element(_hurd_fork_child_hook, child);

Definition at line 48 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 60 of file malloc-machine.h.