/src/rt/release.sh: avoid requiring another MSys install
[msysgit.git] / include / dlfcn.h
blob5eaa7061ef3ba5178d54ccbd52fede7ab1b69204
1 /* dlfcn.h
3 Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.
5 This file is part of Cygwin.
7 This software is a copyrighted work licensed under the terms of the
8 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
9 details. */
11 #ifndef _DLFCN_H
12 #define _DLFCN_H
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 /* declarations used for dynamic linking support routines */
19 extern void *dlopen (const char *, int);
20 extern void *dlsym (void *, const char *);
21 extern int dlclose (void *);
22 extern char *dlerror (void);
24 /* specific to CYGWIN */
25 #define FORK_RELOAD 1
26 #define FORK_NO_RELOAD 0
28 extern void dlfork (int);
30 /* following doesn't exist in Win32 API .... */
32 /* valid values for mode argument to dlopen */
33 #define RTLD_LAZY 1 /* lazy function call binding */
34 #define RTLD_NOW 2 /* immediate function call binding */
35 #define RTLD_GLOBAL 4 /* symbols in this dlopen'ed obj are visible to other dlopen'ed objs */
37 #ifdef __cplusplus
39 #endif
41 #endif /* _DLFCN_H */