Remove fopen mode/open flags table comment in file.asm (was only there for convenience while creating fopen base)

This commit is contained in:
2025-06-25 21:40:19 +02:00
parent 58cd2cc034
commit 45a62dff93

View File

@ -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