mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
add filemode to open
This commit is contained in:
parent
b6f99ebaf4
commit
f38e55984f
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ defbinary("%", sar, >>, intptr_t)
|
|||
defcode("(open)", openfile) {
|
||||
int flags = pop();
|
||||
char *name = (char*) pop();
|
||||
int fd = open(name, flags);
|
||||
int fd = open(name, flags, 0644);
|
||||
push(fd);
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue