Synesis Software

Main Page   Modules   Compound List   File List   Compound Members   File Members  

/freelibs/unixem/include/dirent.h

Go to the documentation of this file.
00001 /* 
00002  * File:    dirent.h
00003  *
00004  * Purpose: Declaration of the opendir() API functions and types for the
00005  *          Win32 platform.
00006  *
00007  * Created  19th October 2002
00008  * Updated: 28th June 2004
00009  *
00010  * Home:    http://synesis.com.au/software/
00011  *
00012  * Copyright (c) 2002-2004, Matthew Wilson and Synesis Software
00013  * All rights reserved.
00014  *
00015  * Redistribution and use in source and binary forms, with or without 
00016  * modification, are permitted provided that the following conditions are met:
00017  *
00018  * - Redistributions of source code must retain the above copyright notice, this
00019  *   list of conditions and the following disclaimer. 
00020  * - Redistributions in binary form must reproduce the above copyright notice,
00021  *   this list of conditions and the following disclaimer in the documentation
00022  *   and/or other materials provided with the distribution.
00023  * - Neither the names of Matthew Wilson and Synesis Software nor the names of
00024  *   any contributors may be used to endorse or promote products derived from
00025  *   this software without specific prior written permission.
00026  *
00027  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00028  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00029  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00030  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00031  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00032  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00033  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00034  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00035  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00036  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00037  * POSSIBILITY OF SUCH DAMAGE.
00038  *
00039  * 
00040 
00041 
00047 #ifndef _SYNSOFT_INCL_H_DIRENT
00048 #define _SYNSOFT_INCL_H_DIRENT
00049 
00050 #ifndef _SYNSOFT_DOCUMENTATION_SKIP_SECTION
00051 # define _SYNSOFT_VER_H_DIRENT_MAJOR    2
00052 # define _SYNSOFT_VER_H_DIRENT_MINOR    0
00053 # define _SYNSOFT_VER_H_DIRENT_REVISION 1
00054 # define _SYNSOFT_VER_H_DIRENT_EDIT     17
00055 #endif /* !_SYNSOFT_DOCUMENTATION_SKIP_SECTION */
00056 
00057 /* 
00058 
00069 /* 
00070 
00071 #ifndef WIN32
00072 # error This file is only currently defined for Win32 compilation units
00073 #endif /* WIN32 */
00074 
00075 /* 
00076  * Constants and definitions
00077  */
00078 
00079 #ifndef NAME_MAX
00080 # define NAME_MAX   (260)   
00081 #endif /* !NAME_MAX */
00082 
00083 /* 
00084  * Typedefs
00085  */
00086 
00087 typedef struct dirent_dir   DIR; 
00091 struct dirent
00092 {
00093     char d_name[NAME_MAX + 1];   
00094 };
00095 
00096 /* 
00097  * API functions
00098  */
00099 
00100 #ifdef __cplusplus
00101 extern "C" {
00102 #endif /* __cplusplus */
00103 
00114 DIR             *opendir(const char *name);
00115 
00124 int             closedir(DIR *dir);
00125 
00133 void            rewinddir(DIR *dir);
00134 
00143 struct dirent   *readdir(DIR *dir);
00144 
00145 #ifdef __cplusplus
00146 }
00147 #endif /* __cplusplus */
00148 
00149 /* 
00150 
00153 /* 
00154 
00155 #endif /* _SYNSOFT_INCL_H_DIRENT */
00156 
00157 /* 

UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2001-2003