php-src/main/php_scandir.h

57 lines
1.9 KiB
C
Raw Normal View History

/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_0.txt. |
| 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
#include <sys/types.h>
2003-09-08 21:14:41 +08:00
#ifdef HAVE_SYS_DIR_H
#include <sys/dir.h>
#endif
#ifdef PHP_WIN32
2003-01-28 08:42:54 +08:00
#include "config.w32.h"
#include "win32/readdir.h"
2004-09-30 22:46:03 +08:00
#elif NETWARE
#include "config.nw.h"
2003-01-28 08:42:54 +08:00
#else
#include "php_config.h"
#endif
2003-02-03 07:09:24 +08:00
#ifdef HAVE_DIRENT_H
#include <dirent.h>
2003-02-03 07:09:24 +08:00
#endif
2003-02-20 02:45:51 +08:00
#ifdef HAVE_SCANDIR
#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));
#endif
#ifdef HAVE_ALPHASORT
#define php_alphasort alphasort
#else
int php_alphasort(const struct dirent **a, const struct dirent **b);
#endif
#endif /* PHP_SCANDIR_H */