Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

mydirent.h

00001 /*  dirent.h
00002 
00003     Definitions for POSIX directory operations.
00004 
00005 */
00006 
00007 /*
00008  *      C/C++ Run Time Library - Version 11.0
00009  *
00010  *      Copyright (c) 1991, 2002 by Borland Software Corporation
00011  *      All Rights Reserved.
00012  *
00013 
00014   $Id: mydirent.h,v 1.1.1.1 2004/01/22 16:25:08 majo Exp $
00015 
00016   $Log: mydirent.h,v $
00017   Revision 1.1.1.1  2004/01/22 16:25:08  majo
00018   initial release
00019 
00020  */
00021 
00022 #ifndef __DIRENT_H
00023 #define __DIRENT_H
00024 
00025 #include <windows.h>  /* For WIN32_FIND_DATA */
00026 
00027 #pragma pack(push, 1)
00028 
00029 #ifdef FG_NAMESPACE
00030 namespace fgl {
00031 #endif
00032 
00033 
00037 struct dirent
00038 {
00039     char        d_name[260];
00040 };
00041 
00042 
00047 typedef struct
00048 {
00049     unsigned long _d_hdir;              /* directory handle */
00050     char         *_d_dirname;           /* directory name */
00051     unsigned      _d_magic;             /* magic cookie for verifying handle */
00052     unsigned      _d_nfiles;            /* no. of files remaining in buf */
00053     char          _d_buf[sizeof(WIN32_FIND_DATA)];  /* buffer for a single file */
00054 } DIR;
00055 
00056 
00057 
00058 /* Prototypes.
00059  */
00060 DIR             * opendir  (const char *__dirname);
00061 struct dirent   * readdir  (DIR *__dir);
00062 int               closedir (DIR *__dir);
00063 void              rewinddir(DIR *__dir);
00064 
00065 #define S_ISDIR
00066 
00067 #ifdef FG_NAMESPACE
00068 }
00069 #endif
00070 
00071 
00072 /* restore default packing */
00073 #pragma pack(pop)
00074 
00075 #endif  /* __DIRENT_H */
00076 

Generated on Wed Feb 9 11:31:35 2005 for OpenGUI by  doxygen 1.4.0