must include proc before tty.h and socketvar.h