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) {
|
defcode("(open)", openfile) {
|
||||||
int flags = pop();
|
int flags = pop();
|
||||||
char *name = (char*) pop();
|
char *name = (char*) pop();
|
||||||
int fd = open(name, flags);
|
int fd = open(name, flags, 0644);
|
||||||
push(fd);
|
push(fd);
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue