int errno problem solved.