00001 /***************************** License ********************************** 00002 00003 Copyright (C) 2008 by Communicative Machines 00004 http://www.cmlabs.com All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 ************************************************************************/ 00021 00022 00023 /* 00024 00025 Declaration of POSIX directory browsing functions and types for Win32. 00026 00027 Kevlin Henney (mailto:kevlin@acm.org), March 1997. 00028 00029 Copyright Kevlin Henney, 1997. All rights reserved. 00030 00031 Permission to use, copy, modify, and distribute this software and its 00032 documentation for any purpose is hereby granted without fee, provided 00033 that this copyright and permissions notice appear in all copies and 00034 derivatives, and that no charge may be made for the software and its 00035 documentation except to cover cost of distribution. 00036 00037 */ 00038 00039 #include "standard.h" 00040 #ifdef CYGWIN 00041 // #include <errno.h> 00042 #endif 00043 #include <windows.h> 00044 #include <stdio.h> 00045 #include <stdlib.h> 00046 #include <string.h> 00047 00048 #ifndef DIRENT_INCLUDED 00049 #define DIRENT_INCLUDED 00050 00051 namespace cmlabs { 00052 00053 typedef struct DIR DIR; 00054 00055 struct dirent 00056 { 00057 char *d_name; 00058 }; 00059 00060 DIR *opendir(const char *); 00061 int closedir(DIR *); 00062 struct dirent *readdir(DIR *); 00063 void rewinddir(DIR *); 00064 00065 } // namespace cmlabs 00066 00067 #endif