Closed predefine closed 10 months ago
https://github.com/klange/toaruos/blob/e24cdc168170d0fa4c49d150376c09a6924fae23/apps/init.c#L47-L51
I believe you are mistakenly interpreting the arguments to syscall_open. The second argument is the flags value, with 1 being O_WRONLY.
syscall_open
1
O_WRONLY
sorry, i think it was fd
https://github.com/klange/toaruos/blob/e24cdc168170d0fa4c49d150376c09a6924fae23/apps/init.c#L47-L51