[Mono-bugs] [Bug 27543][Nor] New - Mono Reflection does not set the EntryPoint property from the PInvoke.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
9 Jul 2002 01:16:01 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=27543
--- shadow/27543 Mon Jul 8 21:16:01 2002
+++ shadow/27543.tmp.19134 Mon Jul 8 21:16:01 2002
@@ -0,0 +1,36 @@
+Bug#: 27543
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono Reflection does not set the EntryPoint property from the PInvoke.
+
+The EntryPoint property of a PInvoke is not being propagated to the
+resulting binary.
+
+This sample prints "ls /bin", it should list the contents of /bin.
+
+using System;
+using System.Runtime.InteropServices;
+
+public class Test {
+
+ [DllImport("libc.so.6", EntryPoint="system", CharSet=CharSet.Ansi)]
+ public static extern int puts (string name);
+
+ public static int Main () {
+ puts ("ls /bin");
+ return 0;
+ }
+}