Remove fopen mode/open flags table comment in file.asm (was only there for convenience while creating fopen base)
This commit is contained in:
15
file.asm
15
file.asm
@ -20,21 +20,6 @@ section .text
|
||||
|
||||
;----- fopen(const char *filename, const char mode) -----;
|
||||
; return value: pointer to file or value < 0 (neg errno) if file failed to open
|
||||
; ┌─────────────┬───────────────────────────────┐
|
||||
; │fopen() mode │ open() flags │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ r │ O_RDONLY │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ w │ O_WRONLY | O_CREAT | O_TRUNC │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ a │ O_WRONLY | O_CREAT | O_APPEND │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ R │ O_RDWR │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ W │ O_RDWR | O_CREAT | O_TRUNC │
|
||||
; ├─────────────┼───────────────────────────────┤
|
||||
; │ A │ O_RDWR | O_CREAT | O_APPEND │
|
||||
; └─────────────┴───────────────────────────────┘
|
||||
fopen:
|
||||
push rbp
|
||||
mov rbp, rsp
|
||||
|
Reference in New Issue
Block a user