Author: jonpryor
Date: 2005-11-01 10:48:33 -0500 (Tue, 01 Nov 2005)
New Revision: 52449

Modified:
   trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
   trunk/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs
   trunk/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs
Log:
  * UnixDirectoryInfo.cs, UnixDriveInfo.cs, UnixEnvironment.cs,
    UnixFileSystemInfo.cs, UnixGroupInfo.cs, UnixProcess.cs, UnixUserInfoc.cs:
    Obsolete statements now specify in what way the return type will change.
  * IncludeAttribute.cs: Obsoleted.  It's an error to use it now.


Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog      2005-11-01 15:42:56 UTC 
(rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/ChangeLog      2005-11-01 15:48:33 UTC 
(rev 52449)
@@ -1,5 +1,12 @@
 2005-11-01  Jonathan Pryor <[EMAIL PROTECTED]>
 
+       * UnixDirectoryInfo.cs, UnixDriveInfo.cs, UnixEnvironment.cs, 
+         UnixFileSystemInfo.cs, UnixGroupInfo.cs, UnixProcess.cs, 
UnixUserInfoc.cs:
+         Obsolete statements now specify in what way the return type will 
change.
+       * IncludeAttribute.cs: Obsoleted.  It's an error to use it now.
+
+2005-11-01  Jonathan Pryor <[EMAIL PROTECTED]>
+
        * FileAccessPattern.cs: Change enumeration names to match Robert Love's 
more
          sensible names from his FileAdvise class used in Beagle
          (UseSoon --> PreLoad, WillNotUse --> FlushCache).

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs    2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs    2005-11-01 
15:48:33 UTC (rev 52449)
@@ -32,34 +32,28 @@
 namespace Mono.Unix {
 
        [AttributeUsage (AttributeTargets.Assembly)]
+       [Obsolete ("Use Mono.Unix.Native.HeaderAttribute", true)]
        internal class IncludeAttribute : Attribute {
                string [] includes;
                string [] defines;
                
                public IncludeAttribute (string [] includes)
                {
-                       this.includes = includes;
                }
 
                public IncludeAttribute (string [] includes, string [] defines)
                {
-                       this.includes = includes;
-                       this.defines = defines;
                }
 
                public string [] Includes {
                        get {
-                               if (includes == null)
-                                       return new string [0];
-                               return includes;
+                               return null;
                        }
                }
 
                public string [] Defines {
                        get {
-                               if (defines == null)
-                                       return new string [0];
-                               return defines;
+                               return null;
                        }
                }
                

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs   2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs   2005-11-01 
15:48:33 UTC (rev 52449)
@@ -119,7 +119,7 @@
                        base.Refresh ();
                }
 
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type will change to 
Mono.Unix.Native.Dirent[] in the next release")]
                public Dirent[] GetEntries ()
                {
                        IntPtr dirp = Syscall.opendir (FullPath);
@@ -160,7 +160,7 @@
                        return (Dirent[]) entries.ToArray (typeof(Dirent));
                }
 
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type will change to 
Mono.Unix.Native.Dirent[] in the next release")]
                public Dirent[] GetEntries (Regex regex)
                {
                        IntPtr dirp = Syscall.opendir (FullPath);
@@ -197,7 +197,7 @@
                        return (Dirent[]) entries.ToArray (typeof(Dirent));
                }
 
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type will change to 
Mono.Unix.Native.Dirent[] in the next release")]
                public Dirent[] GetEntries (string regex)
                {
                        Regex re = new Regex (regex);

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs       2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs       2005-11-01 
15:48:33 UTC (rev 52449)
@@ -116,7 +116,7 @@
                }
 
                [CLSCompliant(false)]
-               [Obsolete ("The return type of this property will change in the 
next release.")]
+               [Obsolete ("The return type will change to Int64 in the next 
release")]
                public ulong MaximumFilenameLength {
                        get {Refresh (); return stat.f_namemax;}
                }

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs     2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs     2005-11-01 
15:48:33 UTC (rev 52449)
@@ -190,14 +190,15 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("Use GetSupplementaryGroupIds")]
+               [Obsolete ("Use GetSupplementaryGroupIds.  " +
+                               "The return type will change to UnixGroupInfo[] 
in the next release.")]
                public static uint[] GetSupplementaryGroups ()
                {
                        return GetSupplementaryGroupIds ();
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type will change to Int64[] in the next 
release")]
                public static uint[] GetSupplementaryGroupIds ()
                {
                        int ngroups = Syscall.getgroups (0, new uint[]{});

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs  2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs  2005-11-01 
15:48:33 UTC (rev 52449)
@@ -96,13 +96,13 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release.")]
                public ulong Device {
                        get {AssertValid (); return stat.st_dev;}
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release.")]
                public ulong Inode {
                        get {AssertValid (); return stat.st_ino;}
                }
@@ -120,7 +120,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to FileTypes 
in the next release.")]
                public FilePermissions FileType {
                        get {AssertValid (); return stat.st_mode & 
FilePermissions.S_IFMT;}
                }
@@ -176,13 +176,14 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release.")]
                public ulong LinkCount {
                        get {AssertValid (); return (ulong) stat.st_nlink;}
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("Use OwnerUserId.")]
+               [Obsolete ("Use OwnerUserId.  " +
+                               "The type of this property will change to 
UnixUserInfo in the next release.")]
                public uint OwnerUser {
                        get {AssertValid (); return stat.st_uid;}
                }
@@ -192,7 +193,8 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("Use OwnerGroupId.")]
+               [Obsolete ("Use OwnerGroupId.  " +
+                               "The type of this property will change to 
UnixGroupInfo in the next release.")]
                public uint OwnerGroup {
                        get {AssertValid (); return stat.st_gid;}
                }
@@ -202,7 +204,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release.")]
                public ulong DeviceType {
                        get {AssertValid (); return stat.st_rdev;}
                }

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs       2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs       2005-11-01 
15:48:33 UTC (rev 52449)
@@ -90,7 +90,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release")]
                public uint GroupId {
                        get {return group.gr_gid;}
                }
@@ -128,7 +128,7 @@
                        return group.ToString();
                }
 
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type of this method will change to 
Mono.Unix.Native.Group in the next release")]
                public Group ToGroup ()
                {
                        return group;

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs 2005-11-01 15:42:56 UTC 
(rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs 2005-11-01 15:48:33 UTC 
(rev 52449)
@@ -78,7 +78,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to 
Mono.Unix.Native.Signum in the next release.")]
                public Signum TerminationSignal {
                        get {
                                if (!HasSignaled)
@@ -97,7 +97,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release.")]
+               [Obsolete ("The type of this property will change to 
Mono.Unix.Native.Signum in the next release.")]
                public Signum StopSignal {
                        get {
                                if (!HasStopped)

Modified: trunk/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs
===================================================================
--- trunk/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs        2005-11-01 
15:42:56 UTC (rev 52448)
+++ trunk/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs        2005-11-01 
15:48:33 UTC (rev 52449)
@@ -92,7 +92,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release")]
                public uint UserId {
                        get {return passwd.pw_uid;}
                }
@@ -102,7 +102,7 @@
                }
 
                [CLSCompliant (false)]
-               [Obsolete ("The type of this property will change in the next 
release")]
+               [Obsolete ("The type of this property will change to Int64 in 
the next release")]
                public uint GroupId {
                        get {return passwd.pw_gid;}
                }
@@ -164,7 +164,7 @@
                        return buf.ToString ();
                }
 
-               [Obsolete ("The return type of this method will change in the 
next release")]
+               [Obsolete ("The return type of this method will change to 
Mono.Unix.Native.Passwd in the next release")]
                public Passwd ToPasswd ()
                {
                        return passwd;

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

Reply via email to