rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Add an API for shared memory APIs

Open notgull opened this issue 2 years ago • 4 comments

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

notgull avatar Aug 27 '23 22:08 notgull

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

sunfishcode avatar Aug 31 '23 15:08 sunfishcode