Quellcode durchsuchen

* 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.

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

Jonathan Pryor vor 20 Jahren
Ursprung
Commit
71e1998b4c

+ 7 - 0
mcs/class/Mono.Posix/Mono.Unix/ChangeLog

@@ -1,3 +1,10 @@
+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

+ 3 - 9
mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs

@@ -32,34 +32,28 @@ using System;
 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;
 			}
 		}
 		

+ 3 - 3
mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs

@@ -119,7 +119,7 @@ namespace Mono.Unix {
 			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 @@ namespace Mono.Unix {
 			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 @@ namespace Mono.Unix {
 			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);

+ 1 - 1
mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs

@@ -116,7 +116,7 @@ namespace Mono.Unix {
 		}
 
 		[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;}
 		}

+ 3 - 2
mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs

@@ -190,14 +190,15 @@ namespace Mono.Unix {
 		}
 
 		[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[]{});

+ 9 - 7
mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs

@@ -96,13 +96,13 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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;}
 		}

+ 2 - 2
mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs

@@ -90,7 +90,7 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 			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;

+ 2 - 2
mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs

@@ -78,7 +78,7 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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)

+ 3 - 3
mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs

@@ -92,7 +92,7 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 		}
 
 		[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 @@ namespace Mono.Unix {
 			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;