libc/arm: open #c/sysstat file with OCEXEC (internal file descriptor)
This commit is contained in:
parent
fb08e3655e
commit
97a55e03a7
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ cpus(void)
|
||||||
char buf[256], *p;
|
char buf[256], *p;
|
||||||
int f, n;
|
int f, n;
|
||||||
|
|
||||||
f = open("#c/sysstat", OREAD);
|
f = open("#c/sysstat", OREAD|OCEXEC);
|
||||||
if(f < 0)
|
if(f < 0)
|
||||||
return -1;
|
return -1;
|
||||||
n = read(f, buf, sizeof(buf)-1);
|
n = read(f, buf, sizeof(buf)-1);
|
||||||
|
|
Loading…
Reference in a new issue