O'Reilly logo
  • Ivan Petrov thinks this is interesting:

(if O_NONBLOCK was given to open( ); see "Flags for open( )") and there is no data to read, the read( ) call will return −1, and set errno to EAGAI

From

Cover of Linux System Programming

Note

non-blocking reads