diff options
author | Jonathan Pryor <jpryor@novell.com> | 2004-12-30 16:01:43 +0300 |
---|---|---|
committer | Jonathan Pryor <jpryor@novell.com> | 2004-12-30 16:01:43 +0300 |
commit | 3c7e21e1d185849497ad60020d07fe06b8502774 (patch) | |
tree | 5b8bbecf4630289ff2a3aada0161ea612929861c /mcs/class/Mono.Posix | |
parent | 9217ad10113a86abbb2fe6860853411f7c62afec (diff) |
* Syscall.cs: All syscall_ functions should explicitly specify EntryPoint
so that an EntryPointNotFoundException is avoided. Fixes 70706.
svn path=/trunk/mcs/; revision=38179
Diffstat (limited to 'mcs/class/Mono.Posix')
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Posix/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Posix/Syscall.cs | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Posix/ChangeLog b/mcs/class/Mono.Posix/Mono.Posix/ChangeLog index 272e0fed8f5..3b91a309e8a 100644 --- a/mcs/class/Mono.Posix/Mono.Posix/ChangeLog +++ b/mcs/class/Mono.Posix/Mono.Posix/ChangeLog @@ -1,3 +1,8 @@ +2004-12-30 Jonathan Pryor <jonpryor@vt.edu> + + * Syscall.cs: All syscall_ functions should explicitly specify EntryPoint + so that an EntryPointNotFoundException is avoided. Fixes 70706. + 2004-11-16 Jonathan Pryor <jonpryor@vt.edu> * IncludeAttribute.cs: Removed. diff --git a/mcs/class/Mono.Posix/Mono.Posix/Syscall.cs b/mcs/class/Mono.Posix/Mono.Posix/Syscall.cs index ab3dce3af72..f553ec47736 100644 --- a/mcs/class/Mono.Posix/Mono.Posix/Syscall.cs +++ b/mcs/class/Mono.Posix/Mono.Posix/Syscall.cs @@ -221,7 +221,7 @@ namespace Mono.Posix { [DllImport ("MonoPosixHelper", EntryPoint="wstopsig")] public static extern int WSTOPSIG (int status); - [DllImport ("libc", SetLastError=true)] + [DllImport ("libc", EntryPoint="creat", SetLastError=true)] internal static extern int syscall_creat (string pathname, int flags); public static int creat (string pathname, FileMode flags) @@ -286,7 +286,7 @@ namespace Mono.Posix { // TODO: utime - [DllImport ("libc")] + [DllImport ("libc", EntryPoint="access", SetLastError=true)] internal extern static int syscall_access (string pathname, int mode); [DllImport ("MonoPosixHelper")] @@ -311,7 +311,7 @@ namespace Mono.Posix { [DllImport ("libc", SetLastError=true)] public static extern int rename (string oldPath, string newPath); - [DllImport ("libc", SetLastError=true)] + [DllImport ("libc", EntryPoint="mkdir", SetLastError=true)] internal extern static int syscall_mkdir (string pathname, int mode); public static int mkdir (string pathname, FileMode mode) |