Document shm.c, part 1 of 2