ReactOS 0.4.15-dev-7953-g1f49173
loader.c
Go to the documentation of this file.
1/*
2 * Win32 builtin dlls support
3 *
4 * Copyright 2000 Alexandre Julliard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#include "config.h"
22#include "wine/port.h"
23
24#include <assert.h>
25#include <ctype.h>
26#include <fcntl.h>
27#include <limits.h>
28#include <stdarg.h>
29#include <stdlib.h>
30#include <string.h>
31#include <sys/types.h>
32#ifdef HAVE_SYS_MMAN_H
33#include <sys/mman.h>
34#endif
35#ifdef HAVE_SYS_RESOURCE_H
36# include <sys/resource.h>
37#endif
38#ifdef HAVE_UNISTD_H
39# include <unistd.h>
40#endif
41
42#define NONAMELESSUNION
43#define NONAMELESSSTRUCT
44#include "windef.h"
45#include "winbase.h"
46#include "wine/library.h"
47
48void *wine_dlsym( void *handle, const char *symbol, char *error, size_t errorsize )
49{
50 return GetProcAddress(handle, symbol);
51}
52
53void *wine_dlopen( const char *filename, int flag, char *error, size_t errorsize )
54{
55 return LoadLibraryA(filename);
56}
57
58int wine_dlclose( void *handle, char *error, size_t errorsize )
59{
60 return FreeLibrary(handle);
61}
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52
const char * filename
Definition: ioapi.h:137
#define error(str)
Definition: mkdosfs.c:1605
void * wine_dlopen(const char *filename, int flag, char *error, size_t errorsize)
Definition: loader.c:53
int wine_dlclose(void *handle, char *error, size_t errorsize)
Definition: loader.c:58
void * wine_dlsym(void *handle, const char *symbol, char *error, size_t errorsize)
Definition: loader.c:48