committing untested ring buffer code, need to fix shmget