diff options
author | Zoltan Varga <vargaz@gmail.com> | 2015-01-13 23:29:38 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2015-01-13 23:29:38 +0300 |
commit | 0985d4aa4be4a9286db4e36cf75e3b18a31e5ff9 (patch) | |
tree | 46b65e83cd552237e592e85486afcca719d8a9c3 /mcs/class/Mono.Posix | |
parent | f54652de26710952d4f80e25d87a87b346a86992 (diff) |
[bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>.
Diffstat (limited to 'mcs/class/Mono.Posix')
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix.Native/RealTimeSignum.cs | 2 | ||||
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix.Native/Stdlib.cs | 21 | ||||
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs | 26 | ||||
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix/UnixClient.cs | 4 | ||||
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix/UnixPipes.cs | 2 |
5 files changed, 0 insertions, 55 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/RealTimeSignum.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/RealTimeSignum.cs index 3b308503dcb..3e53e786726 100644 --- a/mcs/class/Mono.Posix/Mono.Unix.Native/RealTimeSignum.cs +++ b/mcs/class/Mono.Posix/Mono.Unix.Native/RealTimeSignum.cs @@ -31,9 +31,7 @@ using System.Threading; namespace Mono.Unix.Native { public struct RealTimeSignum -#if NET_2_0 : IEquatable <RealTimeSignum> -#endif { private int rt_offset; private static readonly int MaxOffset = UnixSignal.GetSIGRTMAX () - UnixSignal.GetSIGRTMIN () - 1; diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Stdlib.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Stdlib.cs index 55101caa0f3..400c8269a72 100644 --- a/mcs/class/Mono.Posix/Mono.Unix.Native/Stdlib.cs +++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Stdlib.cs @@ -204,9 +204,7 @@ namespace Mono.Unix.Native { #region Classes public sealed class FilePosition : MarshalByRefObject, IDisposable -#if NET_2_0 , IEquatable <FilePosition> -#endif { private static readonly int FilePositionDumpSize = @@ -310,21 +308,6 @@ namespace Mono.Unix.Native { #endif public delegate void SignalHandler (int signal); -#if !NET_2_0 - internal sealed class SignalWrapper { - private IntPtr handler; - - internal SignalWrapper (IntPtr handler) - { - this.handler = handler; - } - - public void InvokeSignalHandler (int signum) - { - Stdlib.InvokeSignalHandler (signum, handler); - } - } -#endif internal class XPrintfFunctions { @@ -511,11 +494,7 @@ namespace Mono.Unix.Native { return SIG_ERR; if (handler == _SIG_IGN) return SIG_IGN; -#if NET_2_0 return (SignalHandler) Marshal.GetDelegateForFunctionPointer (handler, typeof(SignalHandler)); -#else - return new SignalHandler (new SignalWrapper (handler).InvokeSignalHandler); -#endif } public static int SetSignalAction (Signum signal, SignalAction action) diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs index 0fdb0de11cf..c7860c7e183 100644 --- a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs +++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs @@ -733,9 +733,7 @@ namespace Mono.Unix.Native { [Map ("struct flock")] public struct Flock -#if NET_2_0 : IEquatable <Flock> -#endif { [CLSCompliant (false)] public LockType l_type; // Type of lock: F_RDLCK, F_WRLCK, F_UNLCK @@ -782,9 +780,7 @@ namespace Mono.Unix.Native { [Map ("struct pollfd")] public struct Pollfd -#if NET_2_0 : IEquatable <Pollfd> -#endif { public int fd; [CLSCompliant (false)] @@ -823,9 +819,7 @@ namespace Mono.Unix.Native { // Use manually written To/From methods to handle fields st_atime_nsec etc. public struct Stat -#if NET_2_0 : IEquatable <Stat> -#endif { [CLSCompliant (false)] [dev_t] public ulong st_dev; // device @@ -963,9 +957,7 @@ namespace Mono.Unix.Native { [Map] [CLSCompliant (false)] public struct Statvfs -#if NET_2_0 : IEquatable <Statvfs> -#endif { public ulong f_bsize; // file system block size public ulong f_frsize; // fragment size @@ -1040,9 +1032,7 @@ namespace Mono.Unix.Native { [Map ("struct timeval")] public struct Timeval -#if NET_2_0 : IEquatable <Timeval> -#endif { [time_t] public long tv_sec; // seconds [suseconds_t] public long tv_usec; // microseconds @@ -1078,9 +1068,7 @@ namespace Mono.Unix.Native { [Map ("struct timezone")] public struct Timezone -#if NET_2_0 : IEquatable <Timezone> -#endif { public int tz_minuteswest; // minutes W of Greenwich #pragma warning disable 169 @@ -1118,9 +1106,7 @@ namespace Mono.Unix.Native { [Map ("struct utimbuf")] public struct Utimbuf -#if NET_2_0 : IEquatable <Utimbuf> -#endif { [time_t] public long actime; // access time [time_t] public long modtime; // modification time @@ -1156,9 +1142,7 @@ namespace Mono.Unix.Native { [Map ("struct timespec")] public struct Timespec -#if NET_2_0 : IEquatable <Timespec> -#endif { [time_t] public long tv_sec; // Seconds. public long tv_nsec; // Nanoseconds. @@ -1249,9 +1233,7 @@ namespace Mono.Unix.Native { #region Classes public sealed class Dirent -#if NET_2_0 : IEquatable <Dirent> -#endif { [CLSCompliant (false)] public /* ino_t */ ulong d_ino; @@ -1302,9 +1284,7 @@ namespace Mono.Unix.Native { } public sealed class Fstab -#if NET_2_0 : IEquatable <Fstab> -#endif { public string fs_spec; public string fs_file; @@ -1356,9 +1336,7 @@ namespace Mono.Unix.Native { } public sealed class Group -#if NET_2_0 : IEquatable <Group> -#endif { public string gr_name; public string gr_passwd; @@ -1438,9 +1416,7 @@ namespace Mono.Unix.Native { } public sealed class Passwd -#if NET_2_0 : IEquatable <Passwd> -#endif { public string pw_name; public string pw_passwd; @@ -1497,9 +1473,7 @@ namespace Mono.Unix.Native { } public sealed class Utsname -#if NET_2_0 : IEquatable <Utsname> -#endif { public string sysname; public string nodename; diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixClient.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixClient.cs index a51a3223eee..3609e53ef57 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixClient.cs +++ b/mcs/class/Mono.Posix/Mono.Unix/UnixClient.cs @@ -72,11 +72,7 @@ namespace Mono.Unix { Client = sock; } -#if NET_2_0 public -#else - protected -#endif Socket Client { get { return client; } set { diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixPipes.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixPipes.cs index adacc3c3197..9128a8698ee 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/UnixPipes.cs +++ b/mcs/class/Mono.Posix/Mono.Unix/UnixPipes.cs @@ -34,9 +34,7 @@ using Mono.Unix; namespace Mono.Unix { public struct UnixPipes -#if NET_2_0 : IEquatable <UnixPipes> -#endif { public UnixPipes (UnixStream reading, UnixStream writing) { |