2 Unix SMB/CIFS implementation.
4 Copyright (C) Andrew Tridgell 1992-1998
5 Copyright (C) Jeremy Allison 1998-2002
6 Copyright (C) Jelmer Vernooij 2006
8 ** NOTE! The following LGPL license applies to the replace
9 ** library. This does NOT imply that all of Samba is released
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 3 of the License, or (at your option) any later version.
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, see <http://www.gnu.org/licenses/>.
32 #ifdef DLOPEN_TAKES_UNSIGNED_FLAGS
33 void *rep_dlopen(const char *name, unsigned int flags)
35 void *rep_dlopen(const char *name, int flags)
41 return (void *)shl_load(name, flags, 0);
49 void *rep_dlsym(void *handle, const char *symbol)
51 #ifdef HAVE_SHL_FINDSYM
53 if (!shl_findsym((shl_t *)&handle, symbol, TYPE_UNDEFINED, &sym_addr))
61 char *rep_dlerror(void)
63 return "dynamic loading of objects not supported on this platform";
68 int rep_dlclose(void *handle)
71 return shl_unload((shl_t)handle);