int errno()
If the last call done on this port failed, errno will return an integer describing what went wrong. Refer to your unix manual for further information.