dirent.h

来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· C头文件 代码 · 共 53 行

H
53
字号
#ifndef _SYS_DIRENT_H# define _SYS_DIRENT_H#ifdef __cplusplusextern "C" {#endif/* * This file was written to be compatible with the BSD directory * routines, so it looks like it.  But it was written from scratch. * Sean Eric Fagan, sef@Kithrup.COM * *  Copied to RTEMS configuration without modification. */typedef struct _dirdesc {	int	dd_fd;	long	dd_loc;	long	dd_size;	char	*dd_buf;	int	dd_len;	long	dd_seek;} DIR;# define __dirfd(dp)	((dp)->dd_fd)DIR *opendir(const char *);struct dirent *readdir(DIR *);void rewinddir(DIR *);int closedir(DIR *);void seekdir(DIR *dir, long loc);long telldir(DIR *dir);#include <sys/types.h>#include <limits.h>struct dirent {	long	d_ino;	off_t	d_off;	unsigned short	d_reclen;	/* we need better syntax for variable-sized arrays */	unsigned short	d_namlen;	char		d_name[NAME_MAX + 1];};#ifdef __cplusplus}#endif #endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?