-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port CoreCLR to SunOS #35173
Port CoreCLR to SunOS #35173
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ | |
#define __CONFIG_H__ | ||
|
||
#cmakedefine01 HAVE_GETAUXVAL | ||
#cmakedefine01 HAVE_DIRENT_D_TYPE | ||
|
||
#endif // __CONFIG_H__ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2365,6 +2365,8 @@ PALIMPORT BOOL PALAPI PAL_VirtualUnwindOutOfProc(CONTEXT *context, KNONVOLATILE_ | |
#define PAL_CS_NATIVE_DATA_SIZE 56 | ||
#elif defined(__NetBSD__) && defined(__i386__) | ||
#define PAL_CS_NATIVE_DATA_SIZE 56 | ||
#elif defined(__sun) && defined(__x86_64__) | ||
#define PAL_CS_NATIVE_DATA_SIZE 48 | ||
#else | ||
#warning | ||
#error PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture | ||
|
@@ -3935,7 +3937,11 @@ PALIMPORT int __cdecl memcmp(const void *, const void *, size_t); | |
PALIMPORT void * __cdecl memset(void *, int, size_t); | ||
PALIMPORT void * __cdecl memmove(void *, const void *, size_t); | ||
PALIMPORT void * __cdecl memchr(const void *, int, size_t); | ||
PALIMPORT long long int __cdecl atoll(const char *) THROW_DECL; | ||
PALIMPORT long long int __cdecl atoll(const char *) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
; | ||
PALIMPORT size_t __cdecl strlen(const char *); | ||
PALIMPORT int __cdecl strcmp(const char*, const char *); | ||
PALIMPORT int __cdecl strncmp(const char*, const char *, size_t); | ||
|
@@ -4028,14 +4034,14 @@ PALIMPORT int __cdecl _wtoi(const WCHAR *); | |
|
||
#ifdef __cplusplus | ||
extern "C++" { | ||
inline WCHAR *PAL_wcschr(WCHAR *_S, WCHAR _C) | ||
{return ((WCHAR *)PAL_wcschr((const WCHAR *)_S, _C)); } | ||
inline WCHAR *PAL_wcsrchr(WCHAR *_S, WCHAR _C) | ||
{return ((WCHAR *)PAL_wcsrchr((const WCHAR *)_S, _C)); } | ||
inline WCHAR *PAL_wcspbrk(WCHAR *_S, const WCHAR *_P) | ||
{return ((WCHAR *)PAL_wcspbrk((const WCHAR *)_S, _P)); } | ||
inline WCHAR *PAL_wcsstr(WCHAR *_S, const WCHAR *_P) | ||
{return ((WCHAR *)PAL_wcsstr((const WCHAR *)_S, _P)); } | ||
inline WCHAR *PAL_wcschr(WCHAR* S, WCHAR C) | ||
{return ((WCHAR *)PAL_wcschr((const WCHAR *)S, C)); } | ||
inline WCHAR *PAL_wcsrchr(WCHAR* S, WCHAR C) | ||
{return ((WCHAR *)PAL_wcsrchr((const WCHAR *)S, C)); } | ||
inline WCHAR *PAL_wcspbrk(WCHAR* S, const WCHAR* P) | ||
{return ((WCHAR *)PAL_wcspbrk((const WCHAR *)S, P)); } | ||
inline WCHAR *PAL_wcsstr(WCHAR* S, const WCHAR* P) | ||
{return ((WCHAR *)PAL_wcsstr((const WCHAR *)S, P)); } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
#endif | ||
|
||
|
@@ -4107,9 +4113,17 @@ PALIMPORT double __cdecl acosh(double); | |
PALIMPORT double __cdecl asin(double); | ||
PALIMPORT double __cdecl asinh(double); | ||
PALIMPORT double __cdecl atan(double) THROW_DECL; | ||
PALIMPORT double __cdecl atanh(double) THROW_DECL; | ||
PALIMPORT double __cdecl atanh(double) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
; | ||
PALIMPORT double __cdecl atan2(double, double); | ||
PALIMPORT double __cdecl cbrt(double) THROW_DECL; | ||
PALIMPORT double __cdecl cbrt(double) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
; | ||
PALIMPORT double __cdecl ceil(double); | ||
PALIMPORT double __cdecl cos(double); | ||
PALIMPORT double __cdecl cosh(double); | ||
|
@@ -4138,10 +4152,22 @@ PALIMPORT float __cdecl acosf(float); | |
PALIMPORT float __cdecl acoshf(float); | ||
PALIMPORT float __cdecl asinf(float); | ||
PALIMPORT float __cdecl asinhf(float); | ||
PALIMPORT float __cdecl atanf(float) THROW_DECL; | ||
PALIMPORT float __cdecl atanhf(float) THROW_DECL; | ||
PALIMPORT float __cdecl atanf(float) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of these do not have |
||
; | ||
PALIMPORT float __cdecl atanhf(float) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
; | ||
PALIMPORT float __cdecl atan2f(float, float); | ||
PALIMPORT float __cdecl cbrtf(float) THROW_DECL; | ||
PALIMPORT float __cdecl cbrtf(float) | ||
#ifndef __sun | ||
THROW_DECL | ||
#endif | ||
; | ||
PALIMPORT float __cdecl ceilf(float); | ||
PALIMPORT float __cdecl cosf(float); | ||
PALIMPORT float __cdecl coshf(float); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smadala, I have appended the error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you wanted to notify @sdmaclea instead