I found the list of syscalls for x86-64 mode (with arguments): http://filippo.io/linux-syscall-table/ but where can I get detailed description of this syscalls?
For example below, which flags can be used for 'open' syscall except 0102o (rw, create), in other cases: read only, write only, etc.
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
Based on source (may be) https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/fs/open.c how to understand it, which (list of all for open) flags can be used?