0

I am newbie for about system calls. In sample code always used int x=read(...) But man page shows different read functions. What is the difference between them? And how to use read(1) instead of read(2)?

zalamon
  • 1
  • 4
  • 2
    There is only one `read` in C, the other is the shell command `read`. – Arkku Sep 28 '16 at 08:50
  • [`read`(1)](https://linux.die.net/man/1/read) is most likely referring to the **bash builtins** command, the other [`read`(2)](https://linux.die.net/man/2/read) is the C function. – dvhh Sep 28 '16 at 08:52

0 Answers0