Author: miguel
Date: 2005-04-05 18:13:41 -0400 (Tue, 05 Apr 2005)
New Revision: 42583
Modified:
trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
trunk/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
Log:
2005-04-05 Miguel de Icaza <[EMAIL PROTECTED]>
* Syscall.cs: Set entry point for sys_syslog to be syslog.
Include the syslog.h header in the generated map so that we
actually do the mapping.
Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog 2005-04-05 21:32:15 UTC
(rev 42582)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog 2005-04-05 22:13:41 UTC
(rev 42583)
@@ -1,3 +1,9 @@
+2005-04-05 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * Syscall.cs: Set entry point for sys_syslog to be syslog.
+ Include the syslog.h header in the generated map so that we
+ actually do the mapping.
+
2005-03-28 Jonathan Pryor <[EMAIL PROTECTED]>
* UnixConvert.cs: Add ToFopenMode() methods, which convert
FileMode/FileAccess
Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs 2005-04-05 21:32:15 UTC
(rev 42582)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/Syscall.cs 2005-04-05 22:13:41 UTC
(rev 42583)
@@ -61,7 +61,7 @@
[assembly:Mono.Unix.IncludeAttribute (
new string [] {"sys/types.h", "sys/stat.h", "sys/poll.h", "sys/wait.h",
- "unistd.h", "fcntl.h", "signal.h", "poll.h", "grp.h",
"errno.h"},
+ "unistd.h", "fcntl.h", "signal.h", "poll.h", "grp.h",
"errno.h", "syslog.h"},
new string [] {"_GNU_SOURCE", "_XOPEN_SOURCE"})]
namespace Mono.Unix {
@@ -1880,7 +1880,7 @@
sys_openlog (ident, _option, _facility);
}
- [DllImport (LIBC)]
+ [DllImport (LIBC, EntryPoint="syslog")]
private static extern void sys_syslog (int priority, string
message);
public static void syslog (SyslogFacility facility, SyslogLevel
level, string message)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches