functions would return -1 and set errno to indicate the specific error. POSIX requires that the functions return the error code as the return value of the function instead.