* make-map.cs: libMonoPosixHelper exports Mono_Posix prefixes, not Mono_Unix
authorJonathan Pryor <jpryor@novell.com>
Fri, 14 Jan 2005 20:16:08 +0000 (20:16 -0000)
committerJonathan Pryor <jpryor@novell.com>
Fri, 14 Jan 2005 20:16:08 +0000 (20:16 -0000)
    prefixes, so change the type and namespace to generate compatible code.
  * Syscall.cs: Change OpenFlags values so they match the Linux values.

svn path=/trunk/mcs/; revision=38958

mcs/class/Mono.Posix/Mono.Unix/ChangeLog
mcs/class/Mono.Posix/Mono.Unix/Syscall.cs
mcs/class/Mono.Posix/Mono.Unix/make-map.cs

index c67c572ae38aee61379e8a136b2a79f6ef72d650..049da516f680ae89648cfd0f09914046e77e37c8 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-13  Jonathan Pryor <jonpryor@vt.edu>
+
+       * make-map.cs: libMonoPosixHelper exports Mono_Posix prefixes, not Mono_Unix
+         prefixes, so change the type and namespace to generate compatible code.
+       * Syscall.cs: Change OpenFlags values so they match the Linux values.
+
 2005-01-13  Jonathan Pryor <jonpryor@vt.edu>
 
        * Stdlib.cs: Use Stdlib.LIBC instead of "libc".
index 78bd44c0c21d51cf9bc756c8aebd0a3f062e4475..c5c6e39fd2ebeb6637f89aa6fdd558c2c7f23173 100644 (file)
@@ -253,20 +253,20 @@ namespace Mono.Unix {
                //
                // One of these
                //
-               O_RDONLY    = 0,
-               O_WRONLY    = 1,
-               O_RDWR      = 2,
+               O_RDONLY    = 0x00000000,
+               O_WRONLY    = 0x00000001,
+               O_RDWR      = 0x00000002,
 
                //
                // Or-ed with zero or more of these
                //
-               O_CREAT     = 4,
-               O_EXCL      = 8,
-               O_NOCTTY    = 16,
-               O_TRUNC     = 32,
-               O_APPEND    = 64,
-               O_NONBLOCK  = 128,
-               O_SYNC      = 256,
+               O_CREAT     = 0x00000040,
+               O_EXCL      = 0x00000080,
+               O_NOCTTY    = 0x00000100,
+               O_TRUNC     = 0x00000200,
+               O_APPEND    = 0x00000400,
+               O_NONBLOCK  = 0x00000800,
+               O_SYNC      = 0x00001000,
 
                //
                // These are non-Posix.  Using them will result in errors/exceptions on
@@ -278,11 +278,11 @@ namespace Mono.Unix {
                // converted on the target platform.)
                //
                
-               O_NOFOLLOW  = 512,
-               O_DIRECTORY = 1024,
-               O_DIRECT    = 2048,
-               O_ASYNC     = 4096,
-               O_LARGEFILE = 8192
+               O_NOFOLLOW  = 0x00020000,
+               O_DIRECTORY = 0x00010000,
+               O_DIRECT    = 0x00004000,
+               O_ASYNC     = 0x00002000,
+               O_LARGEFILE = 0x00008000
        }
        
        // mode_t
index 61c0259bc3c580d78367655cfb3b1e219fc8f5c2..f1cc4b8bf05a4333d9f6b27ad036576b30223c00 100644 (file)
@@ -88,8 +88,10 @@ class MakeMap {
                                continue;
 
                        string fn = t.FullName.Replace (".", "_");
+                       fn = fn.Replace ("Mono_Unix", "Mono_Posix");
                        string ns = t.Namespace.Replace (".", "_");
-      string etype = GetNativeType (t);
+                       ns = ns.Replace ("Mono_Unix", "Mono_Posix");
+                       string etype = GetNativeType (t);
 
                        TypeHandler (t, ns, fn, etype, bits);
                }