minor corrections by M.Taguchi
[reactos.git] / posix / include / psx / dlfcn.h
1 /* $Id: dlfcn.h,v 1.4 2002/10/29 04:45:13 rex Exp $
2 */
3 /*
4 * psx/dlfcn.h
5 *
6 * internal dlfcn.h
7 *
8 * This file is part of the ReactOS Operating System.
9 *
10 * Contributors:
11 * Created by KJK::Hyperion <noog@libero.it>
12 *
13 * THIS SOFTWARE IS NOT COPYRIGHTED
14 *
15 * This source code is offered for use in the public domain. You may
16 * use, modify or distribute it freely.
17 *
18 * This code is distributed in the hope that it will be useful but
19 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
20 * DISCLAMED. This includes but is not limited to warranties of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 *
23 */
24 #ifndef __PSX_DLFCN_H_INCLUDED__
25 #define __PSX_DLFCN_H_INCLUDED__
26
27 /* INCLUDES */
28 #include <psx/errno.h>
29
30 /* OBJECTS */
31
32 /* TYPES */
33 /* internal representation for loaded DLLs */
34 /* TODO: get rid of this. The handle should be enough, with a proper PE loader */
35 struct __dlobj
36 {
37 int global; /* if non-zero, all the other fields have no meaning */
38 void *handle; /* pointer to the module mapping */
39 };
40
41 /* CONSTANTS */
42
43 /* PROTOTYPES */
44 void __dl_set_last_error(int);
45
46 /* MACROS */
47 #define __dl_get_reloc_flag(m) ((m) & (RTLD_LAZY | RTLD_NOW))
48 #define __dl_get_scope_flag(m) ((m) & (RTLD_GLOBAL | RTLD_LOCAL))
49
50 #endif /* __PSX_DLFCN_H_INCLUDED__ */
51
52 /* EOF */
53