Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Therning <niklas@therning.org>2017-01-31 13:03:15 +0300
committerNiklas Therning <niklas@therning.org>2017-02-01 11:19:35 +0300
commita55ddfca06c299ee350e65987a99dc37c20fb64c (patch)
treecceb448e5c82a3cabcef42f549d06de61bc28a57 /mcs/class/Mono.Posix
parente3a6168dc24f425bace4d80a6b89e0cf0759c25c (diff)
Fixes the Mono.Posix API breakage introduced in #3985
Also reverts the changes done to support/map.c. This is a generated file which shouldn't be changed directly. An alternate fix for the problem in map.c on Windows was to make sure L_SET et al are defined in mph.h which was already done for Solaris.
Diffstat (limited to 'mcs/class/Mono.Posix')
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
index 76206e3d49f..4ae330d5b46 100644
--- a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
+++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs
@@ -3085,7 +3085,7 @@ namespace Mono.Unix.Native {
EntryPoint="Mono_Posix_Syscall_get_at_fdcwd")]
private static extern int get_at_fdcwd ();
- public static int AT_FDCWD { get { return get_at_fdcwd (); } }
+ public static readonly int AT_FDCWD = get_at_fdcwd ();
#endregion
@@ -3657,12 +3657,12 @@ namespace Mono.Unix.Native {
[DllImport (MPH, EntryPoint="Mono_Posix_Syscall_L_ctermid")]
private static extern int _L_ctermid ();
- public static int L_ctermid { get { return _L_ctermid (); } }
+ public static readonly int L_ctermid = _L_ctermid ();
[DllImport (MPH, EntryPoint="Mono_Posix_Syscall_L_cuserid")]
private static extern int _L_cuserid ();
- public static int L_cuserid { get { return _L_cuserid (); } }
+ public static readonly int L_cuserid = _L_cuserid ();
internal static object getlogin_lock = new object ();
@@ -4044,9 +4044,9 @@ namespace Mono.Unix.Native {
EntryPoint="Mono_Posix_Syscall_get_utime_omit")]
private static extern long get_utime_omit ();
- public static long UTIME_NOW { get { return get_utime_now (); } }
+ public static readonly long UTIME_NOW = get_utime_now ();
- public static long UTIME_OMIT { get { return get_utime_omit (); } }
+ public static readonly long UTIME_OMIT = get_utime_omit ();
[DllImport (MPH, SetLastError=true,
EntryPoint="Mono_Posix_Syscall_futimens")]