2003-02-19 17:25:16 +08:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| PHP Version 4 |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Copyright (c) 1997-2003 The PHP Group |
|
|
|
|
+----------------------------------------------------------------------+
|
2003-06-11 04:04:29 +08:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2003-02-19 17:25:16 +08:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-11 04:04:29 +08:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2003-02-19 17:25:16 +08:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
| Authors: Shane Caraveo <shane@caraveo.com> |
|
|
|
|
| Ilia Alshanetsky <ilia@prohost.org> |
|
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
#ifndef PHP_SCANDIR_H
|
|
|
|
#define PHP_SCANDIR_H
|
|
|
|
|
2003-01-28 04:39:31 +08:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2003-09-08 21:14:41 +08:00
|
|
|
#ifdef HAVE_SYS_DIR_H
|
|
|
|
#include <sys/dir.h>
|
|
|
|
#endif
|
|
|
|
|
2003-01-28 04:39:31 +08:00
|
|
|
#ifdef PHP_WIN32
|
2003-01-28 08:42:54 +08:00
|
|
|
#include "config.w32.h"
|
2003-01-28 04:39:31 +08:00
|
|
|
#include "win32/readdir.h"
|
2003-01-28 08:42:54 +08:00
|
|
|
#else
|
|
|
|
#include "php_config.h"
|
2003-01-28 04:39:31 +08:00
|
|
|
#endif
|
|
|
|
|
2003-02-03 07:09:24 +08:00
|
|
|
#ifdef HAVE_DIRENT_H
|
2003-02-19 17:25:16 +08:00
|
|
|
#include <dirent.h>
|
2003-02-03 07:09:24 +08:00
|
|
|
#endif
|
2003-02-20 02:45:51 +08:00
|
|
|
|
|
|
|
#ifdef HAVE_SCANDIR
|
2003-02-19 17:25:16 +08:00
|
|
|
#define php_scandir scandir
|
|
|
|
#else
|
|
|
|
int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b));
|
2003-01-28 04:39:31 +08:00
|
|
|
#endif
|
|
|
|
|
2003-02-19 17:25:16 +08:00
|
|
|
#ifdef HAVE_ALPHASORT
|
|
|
|
#define php_alphasort alphasort
|
|
|
|
#else
|
|
|
|
int php_alphasort(const struct dirent **a, const struct dirent **b);
|
2003-01-28 04:39:31 +08:00
|
|
|
#endif
|
2003-02-19 17:25:16 +08:00
|
|
|
|
|
|
|
#endif /* PHP_SCANDIR_H */
|