73

学习手记-如何找到man手册中函数参数的类型定义-pikylearnlinux的博客-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13559660/2067847
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
缘起:按着开发板教程学Linux,用到chmod等函数,视频里的实验讲解的倒是仔细。但是,如果没有其它资料支持,只看man的描述,鬼知道这些自定义的类型原始类型是什么呢?举一个简单的例子,chmod:这个mode_t类型显然是重新定义出来的,它的原始类型是什么呢?一步一步来:1)从头文件sys/stat.h入手。路径:/usr/include/sys/stat.h 打开后如下图:2)到bits/t

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK