2 using System
.Runtime
.InteropServices
;
4 [Obsolete ("Use Errno", true)]
12 [Obsolete ("Use A", true)]
14 [Obsolete ("Use B", true)]
19 [Obsolete ("Use Native.SignalHandler", true)]
20 public delegate void SignalHandler (int signal
);
22 [Obsolete ("Use Errno", true)]
23 public sealed class UnixMarshal
{
25 public static readonly SignalHandler SIG_DFL
= new SignalHandler(Default
);
29 Stdlib s
= new Stdlib ();
32 private static void Default (int signal
)
36 public static string GetDescription (Error e
) {
41 public sealed class UnixMarshal2
{
42 [Obsolete ("Use Errno", true)]
43 public static string GetDescription (Error e
) {
48 [Obsolete ("Use Native.Stdlib", true)]
55 internal const string LIBC
= "msvcrt.dll";
57 public static extern IntPtr
signal (int signum
, IntPtr handler
);
61 [Obsolete ("B", true)]
62 public const int C
= 3;
66 [Obsolete ("Use Native.Stdlib", true)]
68 private static readonly SignalHandler
[] registered_signals
;
71 [Obsolete ("Use Native.Pollfd", true)]
72 public struct Pollfd
{
75 [Obsolete ("Use Native.Syscall", true)]
76 public class Syscall
: XX
{
77 public static int poll (Pollfd
[] fds
, uint nfds
, int timeout
) {
83 [Obsolete ("test me", true)]
90 [Obsolete ("Use Errno", true)]
91 public static void GetDescription (Error e
) {}
95 [Obsolete ("Replaced by direct enum type casts to/from GLib.Value", true)]
96 public class EnumWrapper
{
97 public EnumWrapper (int val
)
104 [Obsolete ("Replaced by Enum cast", true)]
105 public static explicit operator EnumWrapper (Value val
)
107 return new EnumWrapper (334455);
112 public static void Main () {