summaryrefslogtreecommitdiffstats
path: root/PC/os2emx/dlfcn.h
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-17 05:23:30 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-17 05:23:30 (GMT)
commit41d97d677761032a12b1efdf1f61bec6b0b37235 (patch)
tree9f13f36d9945cfb4736fa62a88946a763e7e2238 /PC/os2emx/dlfcn.h
parent18e6778bcdffc68c5b954cb41a6031698e67082e (diff)
downloadcpython-41d97d677761032a12b1efdf1f61bec6b0b37235.zip
cpython-41d97d677761032a12b1efdf1f61bec6b0b37235.tar.gz
cpython-41d97d677761032a12b1efdf1f61bec6b0b37235.tar.bz2
Create and populate OS/2 EMX port build directory:
PC/os2emx/ Makefile README.os2emx config.c dlfcn.c // libdl emulation code for loadable extensions dlfcn.h dllentry.c // DLL initialisation routine for Python DLL getpath.c pyconfig.h python23.def // Python DLL symbol export definitions pythonpm.c // console-less PM interpreter wrapper
Diffstat (limited to 'PC/os2emx/dlfcn.h')
-rw-r--r--PC/os2emx/dlfcn.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/PC/os2emx/dlfcn.h b/PC/os2emx/dlfcn.h
new file mode 100644
index 0000000..214ddac
--- /dev/null
+++ b/PC/os2emx/dlfcn.h
@@ -0,0 +1,50 @@
+/* -*- C -*- ***********************************************
+Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
+The Netherlands.
+
+ All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Stichting Mathematisch
+Centrum or CWI or Corporation for National Research Initiatives or
+CNRI not be used in advertising or publicity pertaining to
+distribution of the software without specific, written prior
+permission.
+
+While CWI is the initial source for this software, a modified version
+is made available by the Corporation for National Research Initiatives
+(CNRI) at the Internet address ftp://ftp.python.org.
+
+STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
+CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+******************************************************************/
+
+/*
+ This library implements dlopen() - functions for OS/2 using
+ DosLoadModule() and company.
+*/
+
+#ifndef _DLFCN_H
+#define _DLFCN_H
+
+/*-------------------------------------- Unix-like dynamic linking emulation -*/
+/* load a dynamic-link library and return handle */
+void *dlopen (char *filename, int flags);
+/* return a pointer to the `symbol' in DLL */
+void *dlsym (void *handle, char *symbol);
+/* free dynamicaly-linked library */
+int dlclose (void *handle);
+/* return a string describing last occured dl error */
+char *dlerror(void);
+
+#endif /* !_DLFCN_H */