You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
psl-native library appeared at the time of the first version .Net Core 1.0 which had many limitations.
Currently we moved to .Net Core 2.1 and we need to review psl-native library code and remove unneeded p/invokes. Ideally we could remove this library altogether.
We use this native code to create a client SSH process with the needed attributes, and this is not support by DotNet. Also they indicated they would not support it in the future.
Activity
TravisEz13 commentedon May 16, 2018
I reviewed and SetDate is still needed
iSazonov commentedon May 16, 2018
We could use other glibc function (without tm struct) to fix SetDate.
iSazonov commentedon May 16, 2018
I started reviewing and already found APIs not used. Will push PR.
Some APIs use struct-s and we need review this in depth. We should either use .Net API or fix as recommended by CoreFX team or use another Unix API.
Paul Higinbotham (@PaulHigin) Can we remove the unused code?
https://github.com/PowerShell/PowerShell/blob/master/src/libpsl-native/src/createprocess.cpp#L79
PaulHigin commentedon May 17, 2018
Hi Ilya (@iSazonov) This is still needed for Linux platforms for SSH remoting.
https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs#L2368
We use this native code to create a client SSH process with the needed attributes, and this is not support by DotNet. Also they indicated they would not support it in the future.
TravisEz13 commentedon May 17, 2018
Ilya (@iSazonov) I reviewed for structs that cross into managed code and I only found the one and have PR #6881 to fix as DotNet recommended.
dantraMSFT commentedon May 17, 2018
psl-native is also needed for syslog and os_log.
adityapatwardhan commentedon Jun 14, 2018
The native code is going to be moved to its own repo: https://github.com/PowerShell/PowerShell-Native
Please make changes here. I am working on creating builds and setting up CI system for it.