apue.h a little change and add lock.c