head/libexec/rtld-elf/rtld.c
/*
 * This function is deprecated and has no effect.
 */
This function is deprecated and has no effect.
This function is deprecated and has no effect .
void
dllockinit(void *context,
	   void *(*lock_create)(void *context),
           void (*rlock_acquire)(void *lock),
           void (*wlock_acquire)(void *lock),
           void (*lock_release)(void *lock),
           void (*lock_destroy)(void *lock),
	   void (*context_destroy)(void *context))
{
    static void *cur_context;
    static void (*cur_context_destroy)(void *);
    if (cur_context_destroy != NULL)
	cur_context_destroy(cur_context);
    cur_context = context;
    cur_context_destroy = context_destroy;
}
void dllockinit ( void * context , void * ( * lock_create ) ( void * context ) , void ( * rlock_acquire ) ( void * lock ) , void ( * wlock_acquire ) ( void * lock ) , void ( * lock_release ) ( void * lock ) , void ( * lock_destroy ) ( void * lock ) , void ( * context_destroy ) ( void * context ) ) { static void * cur_context ; static void ( * cur_context_destroy ) ( void * ) ; if ( cur_context_destroy != NULL ) cur_context_destroy ( cur_context ) ; cur_context = context ; cur_context_destroy = context_destroy ; }
This function is deprecated and has no effect.
This function is deprecated and has no effect .
/* Just destroy the context from the previous call, if necessary. */