From 71e1998b4c2b5af536f45800d60db3e7d53132d8 Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Tue, 1 Nov 2005 15:48:33 +0000 Subject: [PATCH] * 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 --- mcs/class/Mono.Posix/Mono.Unix/ChangeLog | 7 +++++++ .../Mono.Posix/Mono.Unix/IncludeAttribute.cs | 12 +++--------- .../Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs | 6 +++--- mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs | 2 +- .../Mono.Posix/Mono.Unix/UnixEnvironment.cs | 5 +++-- .../Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs | 16 +++++++++------- mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs | 4 ++-- mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs | 4 ++-- mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs | 6 +++--- 9 files changed, 33 insertions(+), 29 deletions(-) diff --git a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog index 2fb1bcd217d..033a484c356 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/ChangeLog +++ b/mcs/class/Mono.Posix/Mono.Unix/ChangeLog @@ -1,3 +1,10 @@ +2005-11-01 Jonathan Pryor + + * 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 * FileAccessPattern.cs: Change enumeration names to match Robert Love's more diff --git a/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs b/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs index 901cfebe444..29d805bfc20 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/IncludeAttribute.cs +++ b/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; } } diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs index e65f77bcb41..2def7031225 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs +++ b/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); diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs index 372bd941b36..ba131120e4d 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs +++ b/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;} } diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs index 11806d111b8..dd0933eafea 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixEnvironment.cs +++ b/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[]{}); diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs index e8e703f11d8..00b57fdba61 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs +++ b/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;} } diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs index 56e76b526c0..a5874b2fea7 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixGroupInfo.cs +++ b/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; diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs index 54b09069002..e8814012256 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixProcess.cs +++ b/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) diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs index ec69c482cd6..72125737960 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixUserInfo.cs +++ b/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; -- 2.25.1