博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
DIR和dirent结构体
阅读量:7046 次
发布时间:2019-06-28

本文共 568 字,大约阅读时间需要 1 分钟。

DIR结构体类似于FILE,是一个内部结构

  1. struct __dirstream
  2.    {
  3. void *__fd;
  4. char *__data;
  5. int __entry_data;
  6. char *__ptr;
  7. int __entry_ptr;
  8. size_t __allocation;
  9. size_t __size;
  10.     __libc_lock_define (, __lock)
  11.    };
  12. typedef struct __dirstream DIR;

    struct dirent{

    ino_t     d_ino;                                    /*inode number*/

    off_t      d_off;                                    /*offset to the next dirent*/

    unsigned short d_reclen;                /*length of this record*/

    unsigned char d_type ;                    //type of file;not supported by all the file system types;

    char d_name[256];                           //filename

    }

posted on
2015-04-11 11:55 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/guangliang/p/4417298.html

你可能感兴趣的文章
java日历
查看>>
查看linux系统的开机时间/重启历史记录
查看>>
监控页面所有 ajax请求
查看>>
算法系列15天速成——第一天 七大经典排序【上】
查看>>
Javascript之旅——第三站:几个需要注意的运算符
查看>>
我在实习的英文表达
查看>>
多种方法求解八数码问题
查看>>
贪心算法
查看>>
数据流图的画法
查看>>
[SAP ABAP开发技术总结]业务对象和BAPI
查看>>
Win8应用开发 入门篇(三) UX交互导航模式
查看>>
基于Redis的开源分布式服务Codis
查看>>
Linux Shell Scripting Tutorial (LSST) v2.0
查看>>
[控件] CircleView
查看>>
jbpm入门样例
查看>>
在ubuntu下关闭笔记本触摸板
查看>>
PowerPoint在线浏览的几个方案
查看>>
CentOS6.5系统挂载NTFS分区的移动硬盘
查看>>
很具体GC学习笔记
查看>>
【三石jQuery视频教程】03.创建垂直时间表(Timeline)
查看>>