tsoding / porth

It's like Forth but in Python
629 stars 50 forks source link

Change the openat macro to use the syscall intrinsic for 4 argument syscalls #141

Open mjz19910 opened 2 years ago

mjz19910 commented 2 years ago

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.