From 96949295a8a469843c738f504ce9412153952d54 Mon Sep 17 00:00:00 2001 From: Dmytro Tokayev <60584648+dtokayev@users.noreply.github.com> Date: Wed, 25 Jun 2025 11:02:49 +0200 Subject: [PATCH] specify read syscall code --- hello-hackers/read/DESCRIPTION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello-hackers/read/DESCRIPTION.md b/hello-hackers/read/DESCRIPTION.md index 578fe92..4df6325 100644 --- a/hello-hackers/read/DESCRIPTION.md +++ b/hello-hackers/read/DESCRIPTION.md @@ -2,7 +2,7 @@ You now know how to output data to stdout using `write`. But how does your program receive input data? It `read`s it from stdin! -Like `write`, `read` is a system call that shunts data around between file descriptors and memory. +Like `write`, `read` is a system call that shunts data around between file descriptors and memory, and its syscall number is `0`. In `read`'s case, it reads some amount of bytes from the provided file descriptor and stores them in memory. The C-style syntax is the same as `write`: