提交 316d6741 编写于 作者: R Rich Felker

fix missing return value warning in faccessat, minor cleanup

clone will pass the return value of the start function to SYS_exit
anyway; there's no need to call the syscall directly.
上级 f0328a56
......@@ -19,7 +19,7 @@ static int checker(void *p)
__syscall(SYS_exit, 1);
ret = __syscall(SYS_faccessat, c->fd, c->filename, c->amode, 0);
__syscall(SYS_write, c->p, &ret, sizeof ret);
__syscall(SYS_exit, 0);
return 0;
}
int faccessat(int fd, const char *filename, int amode, int flag)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册