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

Safe FFI Wrapper exercise only handles MacOS and Linux #2526

Open
kim-fg opened this issue Dec 20, 2024 · 0 comments
Open

Safe FFI Wrapper exercise only handles MacOS and Linux #2526

kim-fg opened this issue Dec 20, 2024 · 0 comments

Comments

@kim-fg
Copy link

kim-fg commented Dec 20, 2024

In the exercise Safe FFI Wrapper there are "dirent" layouts for MacOS and "NOT MacOS". I'm running all the exercises on windows and I can't assume the layout would be the same on linux and windows. I also cant use std::os::unix::ffi::OsStrExt but i do have access to use std::os::windows::ffi::OsStrExt so I would think there is a specific layout for windows.

Is this something that could be added to the exercise template? The problem I'm having is translating unix calls to windows calls. I understand that the exercises assume you use the playground, but I like to keep my code locally. I also understand windows can be sort of a mess, but it's definitely something one might run into.

I'll be skipping this exercise for now, but I'm grateful for any pointers to relevant windows docs and would at least attempt to add the windows layout as a commit myself if I managed to get it working.

I'm currently using the course to extend my rust knowledge (and i dont have any experience doing syscalls), so I apologize if I've made faulty assumptions.

Thanks in advance.

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

1 participant