Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Molaro <lupus@oddwiz.org>2006-09-18 19:02:22 +0400
committerPaolo Molaro <lupus@oddwiz.org>2006-09-18 19:02:22 +0400
commit5cec043e40796be9bedf864b4147d4677411b776 (patch)
treed89e4d35241171021132736324a48fe6da575c49 /man/mono-config.5
parentf72fdc937547597c68dbc4ddbbce0929e64ea37b (diff)
Documentation updates.
svn path=/trunk/mono/; revision=65583
Diffstat (limited to 'man/mono-config.5')
-rw-r--r--man/mono-config.524
1 files changed, 23 insertions, 1 deletions
diff --git a/man/mono-config.5 b/man/mono-config.5
index 44fc04b619d..3f0e74c8659 100644
--- a/man/mono-config.5
+++ b/man/mono-config.5
@@ -64,6 +64,24 @@ of the P/Invoke method.
.I target
This is the name of the function to lookup instead of the name specified in the
P/Invoke method.
+.SH Mapping based on operating system and cpu
+Both the
+.B dllmap
+and the
+.B dllentry
+elements allow the following two attributes which make it easy to use a single
+configuration file and support multiple operating systems and architectures with
+different mapping requirements:
+.TP
+.I os
+This is the name of the operating system for which the mapping should be applied.
+Allowed values are: linux, osx, solaris, freebsd, openbsd, netbsd, windows, aix, hpux.
+.TP
+.I cpu
+This is the name of the architecture for which the mapping should be applied.
+Allowed values are: x86, x86-64, sparc, ppc, s390, s390x, arm, mips, alpha, hppa, ia64.
+.PP
+Note that later entries will override the entries defined earlier in the file.
.SH EXAMPLES
The following example maps references to the `cygwin1.dll' shared
library to the `libc.so.6' file.
@@ -81,11 +99,15 @@ This one maps the following C# method:
to
.B differentfunction
in
-.B libdifferent.so.
+.B libdifferent.so
+, but to the same function in the library
+.B libanother.so
+when running under the Solaris operating system.
.nf
<configuration>
<dllmap dll="libc">
<dllentry dll="libdifferent.so" name="somefunction" target="differentfunction" />
+ <dllentry os="solaris" dll="libanother.so" name="somefunction" target="differentfunction" />
</dllmap>
</configuration>
.fi