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

MacOS cannot find functions ... in crate libc #6

Open
freegamerskids opened this issue Mar 29, 2024 · 4 comments
Open

MacOS cannot find functions ... in crate libc #6

freegamerskids opened this issue Mar 29, 2024 · 4 comments

Comments

@freegamerskids
Copy link

process_vm_readv, process_vm_writev and __errno_location are the functions that weren't found. Any help is appreciated.

@ItsEthra
Copy link
Owner

process_vm_readv, process_vm_writev are only available on linux so to fix memory read/write on macos other way is needed. There is a pr to fix __errno_location but author didn't continue with it so I might end up rebasing it and fixing it myself some time later.

@freegamerskids
Copy link
Author

process_vm_readv => mach_vm_read
process_vm_writev => mach_vm_write

Hope this helps.

@ItsEthra
Copy link
Owner

I don't see them in libc docs under x86_64-apple-darwin target. I also do not own a macos device so unless someone wants to make a pr, this will be unresolved. Though I can cfg-out read/write function to fix compilation.

@freegamerskids
Copy link
Author

They aren't defined in libc as they are MacOS specific. There is a crate specifically for mach functions though.

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