您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

Dirent结构的成员

Dirent结构的成员

该结构struct dirent是指目录条目。

http://www.gnu.org/software/libc/manual/html_node/Directory- Entries.html

在linux中,它定义为:

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 file sy@R_419_2354@ types */
    char           d_name[256]; /* filename */
};

参考: man readdir

或者只是在包含目录中查找“ dirent.h”。

其他 2022/1/1 18:16:15 有385人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶