









在 xv6 中,系统调用的返回值的类型是uint64,但是出错却返回 -1 如: https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/sysproc.c#LL38-L49C2
而用户态文件夹下定义的系统调用声明却又返回 int,如: https://github.com/mit-pdos/xv6-riscv/blob/riscv/user/user.h#L4-L24
想请教一下大家,这是何解?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。