3#if defined(__unix) && defined(__GNUC__)
9#if (defined(__FreeBSD__) && (__FreeBSD_version < 503001)) || defined(__sun) || defined (__hpux)
58struct exit_function_list
60 struct exit_function_list *
next;
62 struct exit_function fns[32];
65struct exit_function *__new_exitfn (
void);
70int __cxa_atexit(
void (*
func)(
void *),
void *
arg,
void *
d)
72 struct exit_function *
new = __new_exitfn ();
79 new->func.cxa.arg =
arg;
80 new->func.cxa.dso_handle =
d;
87static pthread_mutex_t
lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
91static pthread_mutex_t
lock =
92 { PTHREAD_MUTEX_RECURSIVE , PTHREAD_PRIO_NONE, {
NULL,
NULL},
97static pthread_mutex_t
lock =
98 {{0, 0, 0, PTHREAD_MUTEX_RECURSIVE, _MUTEX_MAGIC}, {{{0}}}, 0};
101static pthread_mutex_t
lock = PTHREAD_MUTEX_RECURSIVE_INITIALIZER_NP;
103void *__dso_handle = (
void *) &__dso_handle;
108static struct exit_function_list initial;
109struct exit_function_list *__exit_funcs = &initial;
111struct exit_function *__new_exitfn(
void)
113 struct exit_function_list *
l;
117 pthread_mutex_lock( &
lock );
120 for (
l = __exit_funcs;
l !=
NULL;
l =
l->next) {
121 for (
i = 0;
i <
l->idx; ++
i)
122 if (
l->fns[
i].flavor == ef_free)
134 l = (
struct exit_function_list *)
malloc(
sizeof(
struct exit_function_list) );
136 l->next = __exit_funcs;
146 l->fns[
i].flavor = ef_us;
149 pthread_mutex_unlock( &
lock );
163void __cxa_finalize(
void *
d)
165 struct exit_function_list *
funcs;
168 pthread_mutex_lock( &
lock );
172 struct exit_function *
f;
175 if ( (
d ==
NULL ||
d ==
f->func.cxa.dso_handle) && (
f->flavor == ef_cxa) ) {
177 (*
f->func.cxa.fn) (
f->func.cxa.arg, 0);
184#ifdef UNREGISTER_ATFORK
186 UNREGISTER_ATFORK (
d);
189 pthread_mutex_unlock( &
lock );
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static unsigned __int64 next
static struct __wine_debug_functions funcs
static GLenum _GLUfuncptr fn
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList