Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
dirent_win32.h File Reference
#include <windows.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>

Go to the source code of this file.

Classes

struct  dirent
 
struct  DIR
 

Macros

#define WIN32_LEAN_AND_MEAN
 
#define FILE_ATTRIBUTE_DEVICE
 
#define S_IFBLK
 
#define S_IFLNK
 
#define S_IFSOCK
 
#define _DIRENT_HAVE_D_TYPE
 
#define DT_UNKNOWN
 
#define DT_REG
 
#define DT_DIR
 
#define DT_FIFO
 
#define DT_SOCK
 
#define DT_CHR
 
#define DT_BLK
 
#define IFTODT(mode)
 
#define DTTOIF(type)
 
#define S_ISFIFO(mode)
 
#define S_ISDIR(mode)
 
#define S_ISREG(mode)
 
#define S_ISLNK(mode)
 
#define S_ISSOCK(mode)
 
#define S_ISCHR(mode)
 
#define S_ISBLK(mode)
 
#define DIRENT_STRNCPY(dest, src, size)
 
#define DIRENT_SET_ERRNO(x)
 

Typedefs

typedef struct dirent dirent
 
typedef struct DIR DIR
 

Functions

static DIRopendir (const char *dirname)
 
static struct direntreaddir (DIR *dirp)
 
static int closedir (DIR *dirp)
 
static void rewinddir (DIR *dirp)
 

Macro Definition Documentation

#define _DIRENT_HAVE_D_TYPE

Definition at line 122 of file dirent_win32.h.

#define DIRENT_SET_ERRNO (   x)

Definition at line 192 of file dirent_win32.h.

Referenced by closedir(), opendir(), and readdir().

#define DIRENT_STRNCPY (   dest,
  src,
  size 
)

Definition at line 185 of file dirent_win32.h.

Referenced by readdir().

#define DT_BLK

Definition at line 131 of file dirent_win32.h.

#define DT_CHR

Definition at line 130 of file dirent_win32.h.

Referenced by readdir().

#define DT_DIR

Definition at line 127 of file dirent_win32.h.

Referenced by readdir().

#define DT_FIFO

Definition at line 128 of file dirent_win32.h.

#define DT_REG

Definition at line 126 of file dirent_win32.h.

Referenced by us::AutoLoadModulesFromPath(), and readdir().

#define DT_SOCK

Definition at line 129 of file dirent_win32.h.

#define DT_UNKNOWN

Definition at line 125 of file dirent_win32.h.

Referenced by us::AutoLoadModulesFromPath().

#define DTTOIF (   type)

Definition at line 135 of file dirent_win32.h.

#define FILE_ATTRIBUTE_DEVICE

Definition at line 91 of file dirent_win32.h.

Referenced by readdir().

#define IFTODT (   mode)

Definition at line 134 of file dirent_win32.h.

#define S_IFBLK

Definition at line 105 of file dirent_win32.h.

#define S_IFLNK

Definition at line 106 of file dirent_win32.h.

#define S_IFSOCK

Definition at line 107 of file dirent_win32.h.

#define S_ISBLK (   mode)

Definition at line 149 of file dirent_win32.h.

#define S_ISCHR (   mode)

Definition at line 148 of file dirent_win32.h.

#define S_ISDIR (   mode)

Definition at line 144 of file dirent_win32.h.

#define S_ISFIFO (   mode)

Definition at line 143 of file dirent_win32.h.

#define S_ISLNK (   mode)

Definition at line 146 of file dirent_win32.h.

#define S_ISREG (   mode)

Definition at line 145 of file dirent_win32.h.

#define S_ISSOCK (   mode)

Definition at line 147 of file dirent_win32.h.

#define WIN32_LEAN_AND_MEAN

Definition at line 80 of file dirent_win32.h.

Typedef Documentation

typedef struct DIR DIR
typedef struct dirent dirent

Function Documentation

static int closedir ( DIR dirp)
static

Definition at line 323 of file dirent_win32.h.

References DIRENT_SET_ERRNO, INVALID_HANDLE_VALUE, and DIR::search_handle.

Referenced by us::AutoLoadModulesFromPath().

static DIR * opendir ( const char *  dirname)
static
static void rewinddir ( DIR dirp)
static