我找到了用于x86-64模式的系统调用列表(带有参数):http : //filippo.io/linux-syscall-table/, 但是在哪里可以获取此系统调用的详细说明?
例如,在下面的示例中,除0102o(rw,create)外,哪些标志可用于“打开”系统调用,在其他情况下:只读,仅写等。
SECTION .data message: db 'Hello, world!',0x0a length: equ $-message fname db "result" fd dq 0 SECTION .text global _start _start: mov rax, 2 ; 'open' syscall mov rdi, fname ; file name mov rsi, 0102o ; read and write mode, create if not mov rdx, 0666o ; permissions set syscall mov [fd], rax mov rax, 1 ; 'write' syscall mov rdi, [fd] ; file descriptor mov rsi, message ; message address mov rdx, length ; message string length syscall mov rax, 3 ; 'close' syscall mov rdi, [fd] ; file descriptor syscall mov rax, 60 mov rdi, 0 syscall
基于源(可能是) https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/open.c 如何理解它,其中(所有列表为开放式) )可以使用标志吗?