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

Add an API for shared memory APIs #797

Open
notgull opened this issue Aug 27, 2023 · 1 comment
Open

Add an API for shared memory APIs #797

notgull opened this issue Aug 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@notgull
Copy link
Contributor

notgull commented Aug 27, 2023

softbuffer currently uses shmget, shmctl, and other shared memory APIs. It's the only thing left preventing us from switching from nix to rustix.

@sunfishcode sunfishcode added the enhancement New feature or request label Aug 27, 2023
@sunfishcode
Copy link
Member

sunfishcode commented Aug 31, 2023

At a glance, the specific items needed seem to be:

  • shmat
  • shmdt
  • shmget
  • shmctl
  • ShmAtFlags bitflags for SHM_* for shmat
  • ShmGetFlags bitflags for SHM_* and IPC_* for shmget
  • ShmIdDs type to correspond to struct shmid_ds
  • ShmCmd enum for the SHM_* and IPC_* that can be used with shmctl

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

No branches or pull requests

2 participants