diff options
author | Adeel Mujahid <adeelbm@outlook.com> | 2019-02-09 03:24:59 +0200 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2019-02-09 02:24:59 +0100 |
commit | 5bb7eb68035e98e356aba68115e28ed22d3d34aa (patch) | |
tree | 6a2ce545da5c8c32591910ffcb2fe86186894c22 /src/pal/inc/pal.h | |
parent | 8e79024b436f348ea9f96487a6d54067e750f596 (diff) | |
download | coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.gz coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.bz2 coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.zip |
Set visibility option to hidden (#21924)
Diffstat (limited to 'src/pal/inc/pal.h')
-rw-r--r-- | src/pal/inc/pal.h | 92 |
1 files changed, 45 insertions, 47 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 67e39ae44f..3552dea565 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -208,8 +208,6 @@ typedef __builtin_va_list va_list; #define VOID void -#define PUB __attribute__((visibility("default"))) - #else // __GNUC__ typedef char * va_list; @@ -359,7 +357,7 @@ typedef long time_t; PAL_INITIALIZE_ENSURE_STACK_SIZE | \ PAL_INITIALIZE_REGISTER_SIGNALS) -typedef DWORD (PALAPI *PTHREAD_START_ROUTINE)(LPVOID lpThreadParameter); +typedef DWORD (PALAPI_NOEXPORT *PTHREAD_START_ROUTINE)(LPVOID lpThreadParameter); typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE; /******************* PAL-Specific Entrypoints *****************************/ @@ -1577,7 +1575,7 @@ PALAPI ResumeThread( IN HANDLE hThread); -typedef VOID (PALAPI *PAPCFUNC)(ULONG_PTR dwParam); +typedef VOID (PALAPI_NOEXPORT *PAPCFUNC)(ULONG_PTR dwParam); PALIMPORT DWORD @@ -2578,7 +2576,7 @@ OpenFileMappingW( #define OpenFileMapping OpenFileMappingA #endif -typedef INT_PTR (PALAPI *FARPROC)(); +typedef INT_PTR (PALAPI_NOEXPORT *FARPROC)(); PALIMPORT LPVOID @@ -2679,7 +2677,7 @@ Return value: TRUE - success FALSE - failure (incorrect ptr, etc.) --*/ -BOOL +BOOL PALAPI PAL_LOADUnloadPEFile(void * ptr); @@ -2746,7 +2744,7 @@ GetModuleFileNameExW( #define GetModuleFileNameEx GetModuleFileNameExW #endif -// Get base address of the module containing a given symbol +// Get base address of the module containing a given symbol PALAPI LPCVOID PAL_GetSymbolModuleBase(void *symbol); @@ -2802,7 +2800,7 @@ typedef struct _MEMORYSTATUSEX { DWORDLONG ullAvailExtendedVirtual; } MEMORYSTATUSEX, *LPMEMORYSTATUSEX; -PALIMPORT +PALIMPORT BOOL PALAPI GlobalMemoryStatusEx( @@ -3268,7 +3266,7 @@ PAL_nanosleep( #ifndef FEATURE_PAL_SXS -typedef LONG (PALAPI *PTOP_LEVEL_EXCEPTION_FILTER)( +typedef LONG (PALAPI_NOEXPORT *PTOP_LEVEL_EXCEPTION_FILTER)( struct _EXCEPTION_POINTERS *ExceptionInfo); typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; @@ -3280,7 +3278,7 @@ SetUnhandledExceptionFilter( #else // FEATURE_PAL_SXS -typedef EXCEPTION_DISPOSITION (PALAPI *PVECTORED_EXCEPTION_HANDLER)( +typedef EXCEPTION_DISPOSITION (PALAPI_NOEXPORT *PVECTORED_EXCEPTION_HANDLER)( struct _EXCEPTION_POINTERS *ExceptionPointers); #endif // FEATURE_PAL_SXS @@ -4370,62 +4368,62 @@ PALIMPORT int __cdecl toupper(int); #define _TRUNCATE ((size_t)-1) #endif -PALIMPORT errno_t __cdecl memcpy_s(void *, size_t, const void *, size_t) THROW_DECL; +PALIMPORT DLLEXPORT errno_t __cdecl memcpy_s(void *, size_t, const void *, size_t) THROW_DECL; PALIMPORT errno_t __cdecl memmove_s(void *, size_t, const void *, size_t); PALIMPORT char * __cdecl _strlwr(char *); -PALIMPORT int __cdecl _stricmp(const char *, const char *); -PALIMPORT int __cdecl vsprintf_s(char *, size_t, const char *, va_list); +PALIMPORT DLLEXPORT int __cdecl _stricmp(const char *, const char *); +PALIMPORT DLLEXPORT int __cdecl vsprintf_s(char *, size_t, const char *, va_list); PALIMPORT char * __cdecl _gcvt_s(char *, int, double, int); PALIMPORT int __cdecl __iscsym(int); PALIMPORT unsigned char * __cdecl _mbsinc(const unsigned char *); PALIMPORT unsigned char * __cdecl _mbsninc(const unsigned char *, size_t); PALIMPORT unsigned char * __cdecl _mbsdec(const unsigned char *, const unsigned char *); -PALIMPORT int __cdecl _wcsicmp(const WCHAR *, const WCHAR*); +PALIMPORT DLLEXPORT int __cdecl _wcsicmp(const WCHAR *, const WCHAR*); PALIMPORT int __cdecl _wcsnicmp(const WCHAR *, const WCHAR *, size_t); PALIMPORT int __cdecl _vsnprintf(char *, size_t, const char *, va_list); -PALIMPORT int __cdecl _vsnprintf_s(char *, size_t, size_t, const char *, va_list); -PALIMPORT int __cdecl _vsnwprintf_s(WCHAR *, size_t, size_t, const WCHAR *, va_list); -PALIMPORT int __cdecl _snwprintf_s(WCHAR *, size_t, size_t, const WCHAR *, ...); -PALIMPORT int __cdecl _snprintf_s(char *, size_t, size_t, const char *, ...); -PALIMPORT int __cdecl sprintf_s(char *, size_t, const char *, ... ); -PALIMPORT int __cdecl swprintf_s(WCHAR *, size_t, const WCHAR *, ... ); +PALIMPORT DLLEXPORT int __cdecl _vsnprintf_s(char *, size_t, size_t, const char *, va_list); +PALIMPORT DLLEXPORT int __cdecl _vsnwprintf_s(WCHAR *, size_t, size_t, const WCHAR *, va_list); +PALIMPORT DLLEXPORT int __cdecl _snwprintf_s(WCHAR *, size_t, size_t, const WCHAR *, ...); +PALIMPORT DLLEXPORT int __cdecl _snprintf_s(char *, size_t, size_t, const char *, ...); +PALIMPORT DLLEXPORT int __cdecl sprintf_s(char *, size_t, const char *, ... ); +PALIMPORT DLLEXPORT int __cdecl swprintf_s(WCHAR *, size_t, const WCHAR *, ... ); PALIMPORT int __cdecl _snwprintf_s(WCHAR *, size_t, size_t, const WCHAR *, ...); PALIMPORT int __cdecl vswprintf_s( WCHAR *, size_t, const WCHAR *, va_list); -PALIMPORT int __cdecl sscanf_s(const char *, const char *, ...); -PALIMPORT errno_t __cdecl _itow_s(int, WCHAR *, size_t, int); +PALIMPORT DLLEXPORT int __cdecl sscanf_s(const char *, const char *, ...); +PALIMPORT DLLEXPORT errno_t __cdecl _itow_s(int, WCHAR *, size_t, int); -PALIMPORT size_t __cdecl PAL_wcslen(const WCHAR *); -PALIMPORT int __cdecl PAL_wcscmp(const WCHAR*, const WCHAR*); -PALIMPORT int __cdecl PAL_wcsncmp(const WCHAR *, const WCHAR *, size_t); -PALIMPORT WCHAR * __cdecl PAL_wcscat(WCHAR *, const WCHAR *); +PALIMPORT DLLEXPORT size_t __cdecl PAL_wcslen(const WCHAR *); +PALIMPORT DLLEXPORT int __cdecl PAL_wcscmp(const WCHAR*, const WCHAR*); +PALIMPORT DLLEXPORT int __cdecl PAL_wcsncmp(const WCHAR *, const WCHAR *, size_t); +PALIMPORT DLLEXPORT WCHAR * __cdecl PAL_wcscat(WCHAR *, const WCHAR *); PALIMPORT WCHAR * __cdecl PAL_wcsncat(WCHAR *, const WCHAR *, size_t); PALIMPORT WCHAR * __cdecl PAL_wcscpy(WCHAR *, const WCHAR *); PALIMPORT WCHAR * __cdecl PAL_wcsncpy(WCHAR *, const WCHAR *, size_t); -PALIMPORT const WCHAR * __cdecl PAL_wcschr(const WCHAR *, WCHAR); -PALIMPORT const WCHAR * __cdecl PAL_wcsrchr(const WCHAR *, WCHAR); +PALIMPORT DLLEXPORT const WCHAR * __cdecl PAL_wcschr(const WCHAR *, WCHAR); +PALIMPORT DLLEXPORT const WCHAR * __cdecl PAL_wcsrchr(const WCHAR *, WCHAR); PALIMPORT WCHAR _WConst_return * __cdecl PAL_wcspbrk(const WCHAR *, const WCHAR *); -PALIMPORT WCHAR _WConst_return * __cdecl PAL_wcsstr(const WCHAR *, const WCHAR *); +PALIMPORT DLLEXPORT WCHAR _WConst_return * __cdecl PAL_wcsstr(const WCHAR *, const WCHAR *); PALIMPORT WCHAR * __cdecl PAL_wcstok(WCHAR *, const WCHAR *); -PALIMPORT size_t __cdecl PAL_wcscspn(const WCHAR *, const WCHAR *); +PALIMPORT DLLEXPORT size_t __cdecl PAL_wcscspn(const WCHAR *, const WCHAR *); PALIMPORT int __cdecl PAL_swprintf(WCHAR *, const WCHAR *, ...); PALIMPORT int __cdecl PAL_vswprintf(WCHAR *, const WCHAR *, va_list); PALIMPORT int __cdecl PAL_swscanf(const WCHAR *, const WCHAR *, ...); PALIMPORT LONG __cdecl PAL_wcstol(const WCHAR *, WCHAR **, int); -PALIMPORT ULONG __cdecl PAL_wcstoul(const WCHAR *, WCHAR **, int); +PALIMPORT DLLEXPORT ULONG __cdecl PAL_wcstoul(const WCHAR *, WCHAR **, int); PALIMPORT size_t __cdecl PAL_wcsspn (const WCHAR *, const WCHAR *); PALIMPORT double __cdecl PAL_wcstod(const WCHAR *, WCHAR **); PALIMPORT int __cdecl PAL_iswalpha(WCHAR); -PALIMPORT int __cdecl PAL_iswprint(WCHAR); +PALIMPORT DLLEXPORT int __cdecl PAL_iswprint(WCHAR); PALIMPORT int __cdecl PAL_iswupper(WCHAR); -PALIMPORT int __cdecl PAL_iswspace(WCHAR); +PALIMPORT DLLEXPORT int __cdecl PAL_iswspace(WCHAR); PALIMPORT int __cdecl PAL_iswdigit(WCHAR); PALIMPORT int __cdecl PAL_iswxdigit(WCHAR); PALIMPORT WCHAR __cdecl PAL_towlower(WCHAR); PALIMPORT WCHAR __cdecl PAL_towupper(WCHAR); PALIMPORT WCHAR * __cdecl _wcslwr(WCHAR *); -PALIMPORT ULONGLONG _wcstoui64(const WCHAR *, WCHAR **, int); -PALIMPORT errno_t __cdecl _i64tow_s(long long, WCHAR *, size_t, int); +PALIMPORT DLLEXPORT ULONGLONG _wcstoui64(const WCHAR *, WCHAR **, int); +PALIMPORT DLLEXPORT errno_t __cdecl _i64tow_s(long long, WCHAR *, size_t, int); PALIMPORT int __cdecl _wtoi(const WCHAR *); #ifdef __cplusplus @@ -4581,9 +4579,9 @@ inline __int64 abs(__int64 _X) { } #endif -PALIMPORT void * __cdecl malloc(size_t); -PALIMPORT void __cdecl free(void *); -PALIMPORT void * __cdecl realloc(void *, size_t); +PALIMPORT DLLEXPORT void * __cdecl malloc(size_t); +PALIMPORT DLLEXPORT void __cdecl free(void *); +PALIMPORT DLLEXPORT void * __cdecl realloc(void *, size_t); PALIMPORT char * __cdecl _strdup(const char *); #if defined(_MSC_VER) @@ -4602,7 +4600,7 @@ PALIMPORT char * __cdecl _strdup(const char *); PALIMPORT PAL_NORETURN void __cdecl exit(int); int __cdecl atexit(void (__cdecl *function)(void)); -PALIMPORT void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)(const void *, const void *)); +PALIMPORT DLLEXPORT void __cdecl qsort(void *, size_t, size_t, int (__cdecl *)(const void *, const void *)); PALIMPORT void * __cdecl bsearch(const void *, const void *, size_t, size_t, int (__cdecl *)(const void *, const void *)); @@ -4630,7 +4628,7 @@ PALIMPORT char * __cdecl ctime(const time_t *); PALIMPORT int __cdecl _open_osfhandle(INT_PTR, int); PALIMPORT int __cdecl _close(int); -PALIMPORT int __cdecl _flushall(); +PALIMPORT DLLEXPORT int __cdecl _flushall(); #ifdef PAL_STDCPP_COMPAT @@ -4663,14 +4661,14 @@ typedef struct _FILE PAL_FILE; PALIMPORT int __cdecl PAL_fclose(PAL_FILE *); PALIMPORT void __cdecl PAL_setbuf(PAL_FILE *, char*); -PALIMPORT int __cdecl PAL_fflush(PAL_FILE *); +PALIMPORT DLLEXPORT int __cdecl PAL_fflush(PAL_FILE *); PALIMPORT size_t __cdecl PAL_fwrite(const void *, size_t, size_t, PAL_FILE *); PALIMPORT size_t __cdecl PAL_fread(void *, size_t, size_t, PAL_FILE *); PALIMPORT char * __cdecl PAL_fgets(char *, int, PAL_FILE *); PALIMPORT int __cdecl PAL_fputs(const char *, PAL_FILE *); PALIMPORT int __cdecl PAL_fputc(int c, PAL_FILE *stream); PALIMPORT int __cdecl PAL_putchar(int c); -PALIMPORT int __cdecl PAL_fprintf(PAL_FILE *, const char *, ...); +PALIMPORT DLLEXPORT int __cdecl PAL_fprintf(PAL_FILE *, const char *, ...); PALIMPORT int __cdecl PAL_vfprintf(PAL_FILE *, const char *, va_list); PALIMPORT int __cdecl PAL_fseek(PAL_FILE *, LONG, int); PALIMPORT LONG __cdecl PAL_ftell(PAL_FILE *); @@ -4682,7 +4680,7 @@ PALIMPORT int __cdecl PAL_fgetc(PAL_FILE *stream); PALIMPORT int __cdecl PAL_ungetc(int c, PAL_FILE *stream); PALIMPORT int __cdecl PAL_setvbuf(PAL_FILE *stream, char *, int, size_t); PALIMPORT WCHAR * __cdecl PAL_fgetws(WCHAR *, int, PAL_FILE *); -PALIMPORT int __cdecl PAL_fwprintf(PAL_FILE *, const WCHAR *, ...); +PALIMPORT DLLEXPORT int __cdecl PAL_fwprintf(PAL_FILE *, const WCHAR *, ...); PALIMPORT int __cdecl PAL_vfwprintf(PAL_FILE *, const WCHAR *, va_list); PALIMPORT int __cdecl PAL_wprintf(const WCHAR*, ...); @@ -4701,7 +4699,7 @@ PALIMPORT PAL_FILE * __cdecl _wfsopen(const WCHAR *, const WCHAR *, int); PALIMPORT int __cdecl rand(void); PALIMPORT void __cdecl srand(unsigned int); -PALIMPORT int __cdecl printf(const char *, ...); +PALIMPORT DLLEXPORT int __cdecl printf(const char *, ...); PALIMPORT int __cdecl vprintf(const char *, va_list); #ifdef _MSC_VER @@ -4710,10 +4708,10 @@ PALIMPORT int __cdecl vprintf(const char *, va_list); #define PAL_get_caller 0 #endif -PALIMPORT PAL_FILE * __cdecl PAL_get_stdout(int caller); +PALIMPORT DLLEXPORT PAL_FILE * __cdecl PAL_get_stdout(int caller); PALIMPORT PAL_FILE * __cdecl PAL_get_stdin(int caller); -PALIMPORT PAL_FILE * __cdecl PAL_get_stderr(int caller); -PALIMPORT int * __cdecl PAL_errno(int caller); +PALIMPORT DLLEXPORT PAL_FILE * __cdecl PAL_get_stderr(int caller); +PALIMPORT DLLEXPORT int * __cdecl PAL_errno(int caller); #ifdef PAL_STDCPP_COMPAT #define PAL_stdout (PAL_get_stdout(PAL_get_caller)) |