免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5981 | 回复: 1
打印 上一主题 下一主题

请问FILE数据类型是在那个头文件中定义的? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-19 11:40 |只看该作者 |倒序浏览
FILE *fopen(const char *path, const char *mode);


请问FILE数据类型是在那个头文件中定义的?
它的struct结构是什么。

论坛徽章:
0
2 [报告]
发表于 2010-11-19 11:48 |只看该作者
struct file {
564         struct list_head        f_list;
565         struct dentry           *f_dentry;
566         struct vfsmount         *f_vfsmnt;
567         struct file_operations  *f_op;
568         atomic_t                f_count;
569         unsigned int            f_flags;
570         mode_t                  f_mode;
571         loff_t                  f_pos;
572         unsigned long           f_reada, f_ramax, f_raend, f_ralen, f_rawin;
573         struct fown_struct      f_owner;
574         unsigned int            f_uid, f_gid;
575         int                     f_error;
576
577         unsigned long           f_version;
578
579         /* needed for tty driver, and maybe others */
580         void                    *private_data;
581
582         /* preallocated helper kiobuf to speedup O_DIRECT */
583         struct kiobuf           *f_iobuf;
584         long                    f_iobuf_lock;
585 };

http://bbs.chinaunix.net/thread-629542-1-1.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP