source: trunk/src/emx/include/dlfcn.h@ 706

Last change on this file since 706 was 234, checked in by bird, 22 years ago

Initial coding (thought this might come in handy).

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1/* dlfcn.h,v 1.1 2003/05/26 09:28:55 bird Exp */
2/** @file
3 * Dynamic Library Loading.
4 *
5 * Copyright (c) 2001-2003 knut st. osmundsen <bird@anduin.net>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with This program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 */
22
23#ifndef _DLFCN_H_
24#define _DLFCN_H_
25
26
27/*******************************************************************************
28* Defined Constants And Macros *
29*******************************************************************************/
30/** @name dlopen flags
31 * @{ */
32/** Relocations are performed at an implementation-defined time.
33 * OS2: Happens when the pages are touched. Option is ignored. */
34#define RTLD_LAZY 1
35/** Relocations are performed when the object is loaded.
36 * OS2: Happens when the pages are touched. Option is ignored. */
37#define RTLD_NOW 2
38/** All symbols are available for relocation processing of other modules.
39 * OS2: Ignored as symbols are resolved using explicit link time reference. */
40#define RTLD_GLOBAL 0x100
41/** All symbols are not made available for relocation processing by other modules.
42 * OS2: Ignored as symbols are resolved using explicit link time reference. */
43#define RTLD_LOCAL 0
44/** @} */
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50void * dlopen(const char * pszLibrary, int flFlags);
51const char * dlerror(void);
52void * dlsym(void *pvHandle, const char * pszSymbol);
53int dlclose(void *pvHandle);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.