Skip to content

Instantly share code, notes, and snippets.

View unplugandplay's full-sized avatar
💫

unplugandplay unplugandplay

💫
View GitHub Profile
@unplugandplay
unplugandplay / msqq.rb
Last active May 15, 2019 13:39 — forked from peterc/msqq.rb
Sys V message queues in Ruby on OS X (take one)
# Lightweight library to access the System V message queue functionality on Mac OS X (32 and 64 bit)
# Still quite scrappy and needs to be packaged up properly but.. it works!
# Tested on 2.6.3
require 'fiddle'
class MsgQ
LIBC = Fiddle.dlopen('libc.dylib')
IPC_CREAT = 001000