Skip to content
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

How to build Pal for System.IO.File, Path and Directory #23

Open
sorainnosia opened this issue Apr 24, 2022 · 3 comments
Open

How to build Pal for System.IO.File, Path and Directory #23

sorainnosia opened this issue Apr 24, 2022 · 3 comments

Comments

@sorainnosia
Copy link

To expose some of the functions?

@MichalStrehovsky
Copy link
Owner

Using the same strategy as the other PAL implementation - DllImport into the underlying operating system apis or into the C standard library (DllImport into libc or msvcrt.dll)

@sorainnosia
Copy link
Author

Using the same strategy as the other PAL implementation - DllImport into the underlying operating system apis or into the C standard library (DllImport into libc or msvcrt.dll)

is there a way to know the Dll filename and system apis call?

@MichalStrehovsky
Copy link
Owner

That depends on the operating system and API you need. E.g. on Windows this would be somewhere around https://docs.microsoft.com/en-us/windows/win32/fileio/creating-and-opening-files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants