Use platform specific implementation of GetCurrentProcessId (dotnet/coreclr#23084)
authorMarek Safar <marek.safar@gmail.com>
Fri, 8 Mar 2019 07:27:54 +0000 (08:27 +0100)
committerJan Kotas <jkotas@microsoft.com>
Fri, 8 Mar 2019 07:27:54 +0000 (23:27 -0800)
commit0253754e786b12999e35fe9687f49c0ffd8d3eec
tree05383c85b0797556e1ecfda1f7c8eb99f5a58d32
parenta318ecfc78f1a41abdc89aeb5139810255f02b9d
Use platform specific implementation of GetCurrentProcessId (dotnet/coreclr#23084)

* Use platform specific implementation of GetCurrentProcessId

directly in shared location instead of relying on runtime export

* Move GetCurrentProcessId to Interop class

* Update ES_BUILD_STANDALONE build

Commit migrated from https://github.com/dotnet/coreclr/commit/0fee55abb6b7c742cb487b12706dc54080e9e128
src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj
src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs
src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetPid.cs [new file with mode: 0644]
src/libraries/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetCurrentProcessId.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs