fix headers, change the last remnants of the shmop.c code that i obviously used as a base