When I was programming the porth.porth program to eventually write the compiled asm to a file.
I encountered a requirement to set the permission mask when using the openat syscall to open a output file for writing.
When I could only pass 3 of the 4 arguments, I ended up with a file I didn't have write permission to open again. The next time I attempted to run the compiled porth compiler, I was denied permission to open the output file.
When I was programming the porth.porth program to eventually write the compiled asm to a file.
I encountered a requirement to set the permission mask when using the
openat
syscall to open a output file for writing.When I could only pass 3 of the 4 arguments, I ended up with a file I didn't have write permission to open again. The next time I attempted to run the compiled porth compiler, I was denied permission to open the output file.