pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
coreclr-git: Add time(3) to PAL
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Feb 14 14:31:02 2016 +0100
Changeset: 823e6677dac7302b2d9a60f983a9f35eeecdaa77
Modified Files:
coreclr-git/distinfo
Added Files:
coreclr-git/patches/patch-src_pal_inc_pal.h
coreclr-git/patches/patch-src_pal_src_cruntime_misc.cpp
coreclr-git/patches/patch-src_pal_src_include_pal_misc.h
coreclr-git/patches/patch-src_pal_src_include_pal_palinternal.h
Removed Files:
coreclr-git/patches/patch-src_gc_gc.cpp
Log Message:
coreclr-git: Add time(3) to PAL
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=823e6677dac7302b2d9a60f983a9f35eeecdaa77
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
coreclr-git/distinfo | 5 +++-
coreclr-git/patches/patch-src_gc_gc.cpp | 13 --------
coreclr-git/patches/patch-src_pal_inc_pal.h | 12 ++++++++
.../patches/patch-src_pal_src_cruntime_misc.cpp | 35 ++++++++++++++++++++++
.../patches/patch-src_pal_src_include_pal_misc.h | 26 ++++++++++++++++
.../patch-src_pal_src_include_pal_palinternal.h | 12 ++++++++
6 files changed, 89 insertions(+), 14 deletions(-)
diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 27aa74f..0d56585 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -5,6 +5,9 @@ SHA1 (patch-src_dlls_dbgshim_CMakeLists.txt) = 324a00675b196a5385ab9c08bf3563ef9
SHA1 (patch-src_dlls_mscordac_CMakeLists.txt) = b6cb6eccb95906cc937528aa665ec8838bf47408
SHA1 (patch-src_dlls_mscordbi_CMakeLists.txt) = e426383ed88d49d127b4f2a1180e72356a3906f7
SHA1 (patch-src_dlls_mscoree_coreclr_CMakeLists.txt) = 50339aa1e75d76ef1e9d24c149bc8749c2bea240
-SHA1 (patch-src_gc_gc.cpp) = c468a34bbafe35dcd242065762ff042a94152e47
+SHA1 (patch-src_pal_inc_pal.h) = b2cf698debe62fb081ecfd54d97c3a1328f7621d
+SHA1 (patch-src_pal_src_cruntime_misc.cpp) = cbef115e6bcbd9166105b25362d7f64729676dcf
+SHA1 (patch-src_pal_src_include_pal_misc.h) = 08ebba414b6579c2ca62b04dccb78d388dd9641a
+SHA1 (patch-src_pal_src_include_pal_palinternal.h) = 9bb986f199ff3d761ae98c8df4f6c60c4ceb9261
SHA1 (patch-src_pal_src_misc_miscpalapi.cpp) = b7a902309081c9a1a4d7a8a4dcfbb11342c7e311
SHA1 (patch-src_pal_tests_palsuite_exception__handling_pal__sxs_test1_CMakeLists.txt) = c3974175fce11c46ecc60ca75b4b5959e6e79a9b
diff --git a/coreclr-git/patches/patch-src_gc_gc.cpp b/coreclr-git/patches/patch-src_gc_gc.cpp
deleted file mode 100644
index a9e65e7..0000000
--- a/coreclr-git/patches/patch-src_gc_gc.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- src/gc/gc.cpp.orig 2016-02-04 01:25:17.000000000 +0000
-+++ src/gc/gc.cpp
-@@ -20,6 +20,8 @@
-
- #include "gcpriv.h"
-
-+#include <time.h>
-+
- #define USE_INTROSORT
-
- #if defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE)
diff --git a/coreclr-git/patches/patch-src_pal_inc_pal.h b/coreclr-git/patches/patch-src_pal_inc_pal.h
new file mode 100644
index 0000000..be76f9c
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_inc_pal.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- src/pal/inc/pal.h.orig 2016-02-06 02:05:27.000000000 +0000
++++ src/pal/inc/pal.h
+@@ -6027,6 +6027,7 @@ CoCreateGuid(OUT GUID * pguid);
+ #define localtime PAL_localtime
+ #define mktime PAL_mktime
+ #define rand PAL_rand
++#define time PAL_time
+ #define getenv PAL_getenv
+ #define fgets PAL_fgets
+ #define fgetws PAL_fgetws
diff --git a/coreclr-git/patches/patch-src_pal_src_cruntime_misc.cpp b/coreclr-git/patches/patch-src_pal_src_cruntime_misc.cpp
new file mode 100644
index 0000000..5bac097
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_cruntime_misc.cpp
@@ -0,0 +1,35 @@
+$NetBSD$
+
+--- src/pal/src/cruntime/misc.cpp.orig 2016-02-06 02:05:27.000000000 +0000
++++ src/pal/src/cruntime/misc.cpp
+@@ -260,6 +260,30 @@ PAL_rand(void)
+ }
+
+
++/*++
++Function:
++
++ time
++
++See MSDN for more details.
++--*/
++PAL_time_t
++__cdecl
++PAL_time(PAL_time_t *tloc)
++{
++ time_t result;
++
++ PERF_ENTRY(time);
++ ENTRY( "time( tloc=%p )\n",tloc );
++
++ result = time(tloc);
++
++ LOGEXIT( "time returning %#lx\n",result );
++ PERF_EXIT(time);
++ return result;
++}
++
++
+ PALIMPORT
+ void __cdecl
+ PAL_qsort(void *base, size_t nmemb, size_t size,
diff --git a/coreclr-git/patches/patch-src_pal_src_include_pal_misc.h b/coreclr-git/patches/patch-src_pal_src_include_pal_misc.h
new file mode 100644
index 0000000..3c0f0d6
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_include_pal_misc.h
@@ -0,0 +1,26 @@
+$NetBSD$
+
+--- src/pal/src/include/pal/misc.h.orig 2016-01-28 19:04:13.000000000 +0000
++++ src/pal/src/include/pal/misc.h
+@@ -48,6 +48,16 @@ Function :
+ int __cdecl PAL_rand(void);
+
+ /*++
++Function :
++
++ PAL_rand
++
++ Calls rand and mitigates the difference between RAND_MAX
++ on Windows and FreeBSD.
++--*/
++PAL_time_t __cdecl PAL_time(PAL_time_t*);
++
++/*++
+ Function:
+ TIMEInitialize
+
+@@ -128,4 +138,3 @@ void MiscUnsetenv(const char *name);
+ #endif // __cplusplus
+
+ #endif /* __MISC_H_ */
+-
diff --git a/coreclr-git/patches/patch-src_pal_src_include_pal_palinternal.h b/coreclr-git/patches/patch-src_pal_src_include_pal_palinternal.h
new file mode 100644
index 0000000..ba9f52a
--- /dev/null
+++ b/coreclr-git/patches/patch-src_pal_src_include_pal_palinternal.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- src/pal/src/include/pal/palinternal.h.orig 2016-02-06 02:05:27.000000000 +0000
++++ src/pal/src/include/pal/palinternal.h
+@@ -199,7 +199,6 @@ function_name() to call the system's imp
+ #define srand DUMMY_srand
+ #define atoi DUMMY_atoi
+ #define atof DUMMY_atof
+-#define time DUMMY_time
+ #define tm PAL_tm
+ #define size_t DUMMY_size_t
+ #define time_t PAL_time_t
Home |
Main Index |
Thread Index |
Old Index