dlfcn.c (7f3dea244c40159a41ab22da77a434d7c5b5e85a) | dlfcn.c (d3980376e8c139e07958914c5184ab37463e4818) |
---|---|
1/*- 2 * Copyright (c) 1998 John D. Polstra 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 64 unchanged lines hidden (view full) --- 73 74#pragma weak dlerror 75const char * 76dlerror(void) 77{ 78 return sorry; 79} 80 | 1/*- 2 * Copyright (c) 1998 John D. Polstra 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 64 unchanged lines hidden (view full) --- 73 74#pragma weak dlerror 75const char * 76dlerror(void) 77{ 78 return sorry; 79} 80 |
81#pragma weak dllockinit 82void 83dllockinit(void *context, 84 void *(*lock_create)(void *context), 85 void (*rlock_acquire)(void *lock), 86 void (*wlock_acquire)(void *lock), 87 void (*lock_release)(void *lock), 88 void (*lock_destroy)(void *lock), 89 void (*context_destroy)(void *context)) 90{ 91 if (context_destroy != NULL) 92 context_destroy(context); 93} 94 |
|
81#pragma weak dlopen 82void * 83dlopen(const char *name, int mode) 84{ 85 _rtld_error(sorry); 86 return NULL; 87} 88 --- 80 unchanged lines hidden --- | 95#pragma weak dlopen 96void * 97dlopen(const char *name, int mode) 98{ 99 _rtld_error(sorry); 100 return NULL; 101} 102 --- 80 unchanged lines hidden --- |