1 /* $Id: dlfcn.h,v 1.4 2002/10/29 04:45:13 rex Exp $
8 * This file is part of the ReactOS Operating System.
11 * Created by KJK::Hyperion <noog@libero.it>
13 * THIS SOFTWARE IS NOT COPYRIGHTED
15 * This source code is offered for use in the public domain. You may
16 * use, modify or distribute it freely.
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.
24 #ifndef __PSX_DLFCN_H_INCLUDED__
25 #define __PSX_DLFCN_H_INCLUDED__
28 #include <psx/errno.h>
33 /* internal representation for loaded DLLs */
34 /* TODO: get rid of this. The handle should be enough, with a proper PE loader */
37 int global
; /* if non-zero, all the other fields have no meaning */
38 void *handle
; /* pointer to the module mapping */
44 void __dl_set_last_error(int);
47 #define __dl_get_reloc_flag(m) ((m) & (RTLD_LAZY | RTLD_NOW))
48 #define __dl_get_scope_flag(m) ((m) & (RTLD_GLOBAL | RTLD_LOCAL))
50 #endif /* __PSX_DLFCN_H_INCLUDED__ */