File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / main / php_scandir.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:11 2013 UTC (10 years, 11 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: /* 
    2:    +----------------------------------------------------------------------+
    3:    | PHP Version 5                                                        |
    4:    +----------------------------------------------------------------------+
    5:    | Copyright (c) 1997-2013 The PHP Group                                |
    6:    +----------------------------------------------------------------------+
    7:    | This source file is subject to version 3.01 of the PHP license,      |
    8:    | that is bundled with this package in the file LICENSE, and is        |
    9:    | available through the world-wide-web at the following url:           |
   10:    | http://www.php.net/license/3_01.txt                                  |
   11:    | If you did not receive a copy of the PHP license and are unable to   |
   12:    | obtain it through the world-wide-web, please send a note to          |
   13:    | license@php.net so we can mail you a copy immediately.               |
   14:    +----------------------------------------------------------------------+
   15:    | Authors: Shane Caraveo <shane@caraveo.com>                           |
   16:    |          Ilia Alshanetsky  <ilia@prohost.org>                        |
   17:    +----------------------------------------------------------------------+
   18: */
   19: 
   20: /* $Id: php_scandir.h,v 1.1.1.3 2013/07/22 01:32:11 misho Exp $ */
   21: 
   22: #ifndef PHP_SCANDIR_H
   23: #define PHP_SCANDIR_H
   24: 
   25: #include <sys/types.h>
   26: 
   27: #ifdef HAVE_SYS_DIR_H
   28: #include <sys/dir.h>
   29: #endif
   30: 
   31: #ifdef PHP_WIN32
   32: #include "config.w32.h"
   33: #include "win32/readdir.h"
   34: #else
   35: #include <php_config.h>
   36: #endif
   37: 
   38: #ifdef HAVE_DIRENT_H
   39: #include <dirent.h>
   40: #endif
   41: 
   42: #ifdef HAVE_SCANDIR
   43: #define php_scandir		scandir
   44: #else
   45: PHPAPI 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));
   46: #endif
   47: 
   48: #ifdef HAVE_ALPHASORT
   49: #define php_alphasort	alphasort
   50: #else
   51: PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b);
   52: #endif
   53: 
   54: #endif /* PHP_SCANDIR_H */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>