0

Are all blocking I/O calls in Linux somehow wrapped around read() and write() (http://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html)?

My use case will then be to intercept these functions calls and execute code before and after them to count how I/O is utilized in a sample program.

Curious
  • 20,870
  • 8
  • 61
  • 146

1 Answers1

0

Are all blocking I/O calls in Linux somehow wrapped around read() and write() (http://www.gnu.org/software/libc/manual/html_node/I_002fO-Primitives.html)?

No. Since you have in mind also socket I/O, cf. Transferring Data (from the same manual):

There are also some I/O modes that are specific to socket operations. In order to specify these modes, you must use the recv and send functions instead of the more generic read and write functions.

Armali
  • 18,255
  • 14
  • 57
  • 171