作業系統›Ch10 檔案管理第 12 題/共 28 題
12. strace、System Calls、File Descriptor
#OS-10-012中straceSystem CallsFile Descriptor
The Linux cat command opens the file for reading. On Linux, the strace tool can dump the trace of every system call made by the cat command shown below. Please choose the correct description(s) for system calls used by the cat Linux command.
prompt> strace cat hello
...
open("hello", O_RDONLY|O_LARGEFILE)
read(3, "helloworld\n", 4096)
write(X, "helloworld\n", 11)
helloworld
read(3, "", 4096)
close(3)
...
📄 交大115
▤完整推導請見《WH 資工筆記 · 作業系統》Ch10 檔案管理