Make redbean unix.open default to O_RDONLY

This commit is contained in:
Justine Tunney 2022-05-12 09:43:01 -07:00
parent ec6e0fa5f4
commit 0f6251f4d2
2 changed files with 3 additions and 3 deletions

View file

@ -1493,7 +1493,7 @@ UNIX MODULE
`flags` should have one of:
- `O_RDONLY`: open for reading
- `O_RDONLY`: open for reading (default)
- `O_WRONLY`: open for writing
- `O_RDWR`: open for reading and writing