extract header file about socket
put errno.h into sockconfig.h