PHP 8.0.30
Preview: readdir.h Size: 1.04 KB
//opt/alt/php44/usr/include/php/TSRM/readdir.h

#ifndef READDIR_H
#define READDIR_H


/*
 * Structures and types used to implement opendir/readdir/closedir
 * on Windows 95/NT.
 */

#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>


/* struct dirent - same as Unix */

struct dirent {
	long d_ino;					/* inode (always 1 in WIN32) */
	off_t d_off;				/* offset to this dirent */
	unsigned short d_reclen;	/* length of d_name */
	char d_name[_MAX_FNAME + 1];	/* filename (null terminated) */
};


/* typedef DIR - not the same as Unix */
typedef struct {
	long handle;				/* _findfirst/_findnext handle */
	short offset;				/* offset into directory */
	short finished;				/* 1 if there are not more files */
	struct _finddata_t fileinfo;	/* from _findfirst/_findnext */
	char *dir;					/* the dir we are reading */
	struct dirent dent;			/* the dirent to return */
} DIR;

/* Function prototypes */
DIR *opendir(const char *);
struct dirent *readdir(DIR *);
int readdir_r(DIR *, struct dirent *, struct dirent **);
int closedir(DIR *);
void rewinddir(DIR *);


#endif /* READDIR_H */

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
16 B lrw-r--r-- 2023-05-22 16:41:26
Edit Download
1.04 KB lrw-r--r-- 2023-05-22 16:41:26
Edit Download
4.28 KB lrw-r--r-- 2023-05-22 16:41:26
Edit Download
32 B lrw-r--r-- 2023-05-22 16:41:27
Edit Download
223 B lrw-r--r-- 2023-05-22 16:41:27
Edit Download
295 B lrw-r--r-- 2023-05-22 16:41:27
Edit Download
1.07 KB lrw-r--r-- 2023-05-22 16:41:27
Edit Download
1.28 KB lrw-r--r-- 2023-05-22 16:41:27
Edit Download
115 B lrw-r--r-- 2023-05-22 16:41:27
Edit Download
9.31 KB lrw-r--r-- 2023-05-22 16:41:27
Edit Download
2.92 KB lrw-r--r-- 2023-05-22 16:41:27
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).