-
-
Save cygx/89984bc8b82c4609d280 to your computer and use it in GitHub Desktop.
open modes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p6 moar compat p5 C11 | |
:r r < r | |
:rw + +< r+ | |
:ra +a | |
:w -ct w > w | |
:wx -cx wx wx | |
:wr +ct +> w+ | |
:wrx +cx w+x | |
:a -ca wa >> a | |
:ar +ca +>> a+ | |
moar to posix | |
r O_RDONLY | |
- O_WRONLY | |
+ O_RDWR | |
a O_APPEND | |
c O_CREAT | |
x O_EXCL | |
t O_TRUNC | |
moar compat alias | |
w -ct | |
w? -c? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment