pal_unused.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "il2cpp-config.h"
  2. #include "pal_platform.h"
  3. #include "vm/Exception.h"
  4. extern "C"
  5. {
  6. // Items defined in, but never used by mscorlib
  7. // We ensure that we implement all System.Native P/Invokes internally so we need implementations, but they don't have to do anything
  8. IL2CPP_EXPORT void mono_pal_init();
  9. IL2CPP_EXPORT int32_t SystemNative_FStat2(intptr_t fd, struct FileStatus* output);
  10. IL2CPP_EXPORT int32_t SystemNative_UTime(const char* path, void* time);
  11. IL2CPP_EXPORT int32_t GlobalizationNative_GetTimeZoneDisplayName(Il2CppChar* localeName, Il2CppChar* timeZoneId, int32_t type, Il2CppChar* result, int32_t resultLength);
  12. }
  13. void mono_pal_init()
  14. {
  15. }
  16. int32_t SystemNative_FStat2(intptr_t fd, struct FileStatus* output)
  17. {
  18. IL2CPP_NOT_IMPLEMENTED(SystemNative_FStat2);
  19. NOT_SUPPORTED_IL2CPP(SystemNative_FStat2, Not implemented);
  20. return -1;
  21. }
  22. int32_t SystemNative_UTime(const char* path, /* UTimBuf* */ void* time)
  23. {
  24. IL2CPP_NOT_IMPLEMENTED(SystemNative_UTime);
  25. NOT_SUPPORTED_IL2CPP(SystemNative_UTime, Not implemented);
  26. return -1;
  27. }
  28. int32_t GlobalizationNative_GetTimeZoneDisplayName(Il2CppChar* localeName, Il2CppChar* timeZoneId, int32_t type, Il2CppChar* result, int32_t resultLength)
  29. {
  30. IL2CPP_NOT_IMPLEMENTED(GlobalizationNative_GetTimeZoneDisplayName);
  31. NOT_SUPPORTED_IL2CPP(GlobalizationNative_GetTimeZoneDisplayName, Not implemented);
  32. return -1;
  33. }