中的stat.h標頭有cat.c什么用?
在這里你有 cat.c
https://github.com/mit-pdos/xv6-riscv/blob/riscv/user/cat.c
在這里你有 stat.h
https://github.com/mit-pdos/xv6-riscv/blob/riscv/kernel/stat.h
我沒有看到在statstruct 中有任何直接使用,cat.c所以我想知道是否有間接使用。
uj5u.com熱心網友回復:
在此提交中添加它可能是因為user.h使用了struct stat *資料型別
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/386842.html
上一篇:關于C中SIMD的說明
下一篇:Argv不適用于終端上的字符指標
