Author: jonpryor
Date: 2006-11-14 23:44:47 -0500 (Tue, 14 Nov 2006)
New Revision: 67883

Modified:
   trunk/mcs/class/Mono.Posix/Mono.Unix.Native/ChangeLog
   trunk/mcs/class/Mono.Posix/Mono.Unix.Native/MapAttribute.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
Log:
        * MapAttribute.cs: Update (changes SuppressFlags to a string holding 
mask).
        * Syscall.cs: Specify the mask value for non-bitmask values in
          FilePermissions.


Modified: trunk/mcs/class/Mono.Posix/Mono.Unix.Native/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix.Native/ChangeLog       2006-11-15 
02:37:11 UTC (rev 67882)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix.Native/ChangeLog       2006-11-15 
04:44:47 UTC (rev 67883)
@@ -1,3 +1,9 @@
+2006-11-14  Jonathan Pryor  <[EMAIL PROTECTED]>
+
+       * MapAttribute.cs: Update (changes SuppressFlags to a string holding 
mask).
+       * Syscall.cs: Specify the mask value for non-bitmask values in
+         FilePermissions.
+
 2006-10-27  Jonathan Pryor  <[EMAIL PROTECTED]>
 
        * MapAttribute.cs: Update (adds SuppressFlags property).

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix.Native/MapAttribute.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix.Native/MapAttribute.cs 2006-11-15 
02:37:11 UTC (rev 67882)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix.Native/MapAttribute.cs 2006-11-15 
04:44:47 UTC (rev 67883)
@@ -37,7 +37,7 @@
                AttributeTargets.Struct)]
 internal class MapAttribute : Attribute {
        private string nativeType;
-       private bool   suppressFlags;
+       private string suppressFlags;
 
        public MapAttribute ()
        {
@@ -52,7 +52,7 @@
                get {return nativeType;}
        }
 
-       public bool SuppressFlags {
+       public string SuppressFlags {
                get {return suppressFlags;}
                set {suppressFlags = value;}
        }

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs      2006-11-15 
02:37:11 UTC (rev 67882)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs      2006-11-15 
04:44:47 UTC (rev 67883)
@@ -177,21 +177,20 @@
 
                // Device types
                // Why these are held in "mode_t" is beyond me...
-               [Map(SuppressFlags=true)]
                S_IFMT      = 0xF000, // Bits which determine file type
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFDIR     = 0x4000, // Directory
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFCHR     = 0x2000, // Character device
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFBLK     = 0x6000, // Block device
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFREG     = 0x8000, // Regular file
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFIFO     = 0x1000, // FIFO
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFLNK     = 0xA000, // Symbolic link
-               [Map(SuppressFlags=true)]
+               [Map(SuppressFlags="S_IFMT")]
                S_IFSOCK    = 0xC000, // Socket
        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to