簡體   English   中英

xv6操作系統的cat.c文件中的stat.h有什么用?

[英]What is the use of stat.h in cat.c file of the xv6 os?

stat.h中的 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

我沒有看到cat.c中的stat結構有任何直接使用,所以我想知道是否有間接使用。

它被添加到這個提交中可能是因為user.h使用了struct stat *數據類型

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM