CASToR  2.0
Tomographic Reconstruction (PET/SPECT/CT)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Macros | Typedefs | Functions
oDirentWin32.hh File Reference
#include <stdio.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <wchar.h>
#include <string.h>
#include <stdlib.h>
#include <malloc.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>

Go to the source code of this file.

Classes

struct  _wdirent
 
struct  _WDIR
 
struct  dirent
 
struct  DIR
 

Macros

#define _DIRENT_HAVE_D_TYPE
 
#define _DIRENT_HAVE_D_NAMLEN
 
#define FILE_ATTRIBUTE_DEVICE   0x40
 
#define S_IFMT   _S_IFMT
 
#define S_IFDIR   _S_IFDIR
 
#define S_IFCHR   _S_IFCHR
 
#define S_IFFIFO   _S_IFFIFO
 
#define S_IFREG   _S_IFREG
 
#define S_IREAD   _S_IREAD
 
#define S_IWRITE   _S_IWRITE
 
#define S_IEXEC   _S_IEXEC
 
#define S_IFIFO   _S_IFIFO
 
#define S_IFBLK   0
 
#define S_IFLNK   0
 
#define S_IFSOCK   0
 
#define S_IRUSR   S_IREAD
 
#define S_IWUSR   S_IWRITE
 
#define S_IXUSR   0
 
#define S_IRGRP   0
 
#define S_IWGRP   0
 
#define S_IXGRP   0
 
#define S_IROTH   0
 
#define S_IWOTH   0
 
#define S_IXOTH   0
 
#define PATH_MAX   MAX_PATH
 
#define FILENAME_MAX   MAX_PATH
 
#define NAME_MAX   FILENAME_MAX
 
#define DT_UNKNOWN   0
 
#define DT_REG   S_IFREG
 
#define DT_DIR   S_IFDIR
 
#define DT_FIFO   S_IFIFO
 
#define DT_SOCK   S_IFSOCK
 
#define DT_CHR   S_IFCHR
 
#define DT_BLK   S_IFBLK
 
#define DT_LNK   S_IFLNK
 
#define IFTODT(mode)   ((mode) & S_IFMT)
 
#define DTTOIF(type)   (type)
 
#define S_ISFIFO(mode)   (((mode) & S_IFMT) == S_IFIFO)
 
#define S_ISDIR(mode)   (((mode) & S_IFMT) == S_IFDIR)
 
#define S_ISREG(mode)   (((mode) & S_IFMT) == S_IFREG)
 
#define S_ISLNK(mode)   (((mode) & S_IFMT) == S_IFLNK)
 
#define S_ISSOCK(mode)   (((mode) & S_IFMT) == S_IFSOCK)
 
#define S_ISCHR(mode)   (((mode) & S_IFMT) == S_IFCHR)
 
#define S_ISBLK(mode)   (((mode) & S_IFMT) == S_IFBLK)
 
#define _D_EXACT_NAMLEN(p)   ((p)->d_namlen)
 
#define _D_ALLOC_NAMLEN(p)   (PATH_MAX)
 
#define wdirent   _wdirent
 
#define WDIR   _WDIR
 
#define wopendir   _wopendir
 
#define wreaddir   _wreaddir
 
#define wclosedir   _wclosedir
 
#define wrewinddir   _wrewinddir
 

Typedefs

typedef struct _wdirent _wdirent
 
typedef struct _WDIR _WDIR
 
typedef struct dirent dirent
 
typedef struct DIR DIR
 

Functions

static _WDIR_wopendir (const wchar_t *dirname)
 
static struct _wdirent_wreaddir (_WDIR *dirp)
 
static int _wclosedir (_WDIR *dirp)
 
static void _wrewinddir (_WDIR *dirp)
 
static DIRopendir (const char *dirname)
 
static struct direntreaddir (DIR *dirp)
 
static int closedir (DIR *dirp)
 
static void rewinddir (DIR *dirp)
 
static WIN32_FIND_DATAW * dirent_first (_WDIR *dirp)
 
static WIN32_FIND_DATAW * dirent_next (_WDIR *dirp)
 
static int dirent_mbstowcs_s (size_t *pReturnValue, wchar_t *wcstr, size_t sizeInWords, const char *mbstr, size_t count)
 
static int dirent_wcstombs_s (size_t *pReturnValue, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count)
 
static void dirent_set_errno (int error)
 

Macro Definition Documentation

#define _D_ALLOC_NAMLEN (   p)    (PATH_MAX)

Definition at line 235 of file oDirentWin32.hh.

#define _D_EXACT_NAMLEN (   p)    ((p)->d_namlen)

Definition at line 232 of file oDirentWin32.hh.

#define _DIRENT_HAVE_D_NAMLEN

Definition at line 66 of file oDirentWin32.hh.

#define _DIRENT_HAVE_D_TYPE

Definition at line 63 of file oDirentWin32.hh.

#define DT_BLK   S_IFBLK

Definition at line 196 of file oDirentWin32.hh.

#define DT_CHR   S_IFCHR

Definition at line 195 of file oDirentWin32.hh.

#define DT_DIR   S_IFDIR

Definition at line 192 of file oDirentWin32.hh.

#define DT_FIFO   S_IFIFO

Definition at line 193 of file oDirentWin32.hh.

#define DT_LNK   S_IFLNK

Definition at line 197 of file oDirentWin32.hh.

#define DT_REG   S_IFREG

Definition at line 191 of file oDirentWin32.hh.

#define DT_SOCK   S_IFSOCK

Definition at line 194 of file oDirentWin32.hh.

#define DT_UNKNOWN   0

Definition at line 190 of file oDirentWin32.hh.

#define DTTOIF (   type)    (type)

Definition at line 201 of file oDirentWin32.hh.

#define FILE_ATTRIBUTE_DEVICE   0x40

Definition at line 70 of file oDirentWin32.hh.

#define FILENAME_MAX   MAX_PATH

Definition at line 183 of file oDirentWin32.hh.

#define IFTODT (   mode)    ((mode) & S_IFMT)

Definition at line 200 of file oDirentWin32.hh.

#define NAME_MAX   FILENAME_MAX

Definition at line 186 of file oDirentWin32.hh.

#define PATH_MAX   MAX_PATH

Definition at line 180 of file oDirentWin32.hh.

#define S_IEXEC   _S_IEXEC

Definition at line 110 of file oDirentWin32.hh.

#define S_IFBLK   0

Definition at line 120 of file oDirentWin32.hh.

#define S_IFCHR   _S_IFCHR

Definition at line 85 of file oDirentWin32.hh.

#define S_IFDIR   _S_IFDIR

Definition at line 80 of file oDirentWin32.hh.

#define S_IFFIFO   _S_IFFIFO

Definition at line 90 of file oDirentWin32.hh.

#define S_IFIFO   _S_IFIFO

Definition at line 115 of file oDirentWin32.hh.

#define S_IFLNK   0

Definition at line 125 of file oDirentWin32.hh.

#define S_IFMT   _S_IFMT

Definition at line 75 of file oDirentWin32.hh.

#define S_IFREG   _S_IFREG

Definition at line 95 of file oDirentWin32.hh.

#define S_IFSOCK   0

Definition at line 130 of file oDirentWin32.hh.

#define S_IREAD   _S_IREAD

Definition at line 100 of file oDirentWin32.hh.

#define S_IRGRP   0

Definition at line 150 of file oDirentWin32.hh.

#define S_IROTH   0

Definition at line 165 of file oDirentWin32.hh.

#define S_IRUSR   S_IREAD

Definition at line 135 of file oDirentWin32.hh.

#define S_ISBLK (   mode)    (((mode) & S_IFMT) == S_IFBLK)

Definition at line 228 of file oDirentWin32.hh.

#define S_ISCHR (   mode)    (((mode) & S_IFMT) == S_IFCHR)

Definition at line 225 of file oDirentWin32.hh.

#define S_ISDIR (   mode)    (((mode) & S_IFMT) == S_IFDIR)

Definition at line 213 of file oDirentWin32.hh.

#define S_ISFIFO (   mode)    (((mode) & S_IFMT) == S_IFIFO)

Definition at line 210 of file oDirentWin32.hh.

#define S_ISLNK (   mode)    (((mode) & S_IFMT) == S_IFLNK)

Definition at line 219 of file oDirentWin32.hh.

#define S_ISREG (   mode)    (((mode) & S_IFMT) == S_IFREG)

Definition at line 216 of file oDirentWin32.hh.

#define S_ISSOCK (   mode)    (((mode) & S_IFMT) == S_IFSOCK)

Definition at line 222 of file oDirentWin32.hh.

#define S_IWGRP   0

Definition at line 155 of file oDirentWin32.hh.

#define S_IWOTH   0

Definition at line 170 of file oDirentWin32.hh.

#define S_IWRITE   _S_IWRITE

Definition at line 105 of file oDirentWin32.hh.

#define S_IWUSR   S_IWRITE

Definition at line 140 of file oDirentWin32.hh.

#define S_IXGRP   0

Definition at line 160 of file oDirentWin32.hh.

#define S_IXOTH   0

Definition at line 175 of file oDirentWin32.hh.

#define S_IXUSR   0

Definition at line 145 of file oDirentWin32.hh.

#define wclosedir   _wclosedir

Definition at line 291 of file oDirentWin32.hh.

#define WDIR   _WDIR

Definition at line 288 of file oDirentWin32.hh.

#define wdirent   _wdirent

Definition at line 287 of file oDirentWin32.hh.

#define wopendir   _wopendir

Definition at line 289 of file oDirentWin32.hh.

#define wreaddir   _wreaddir

Definition at line 290 of file oDirentWin32.hh.

#define wrewinddir   _wrewinddir

Definition at line 292 of file oDirentWin32.hh.

Typedef Documentation

typedef struct _WDIR _WDIR

Definition at line 278 of file oDirentWin32.hh.

typedef struct _wdirent _wdirent

Definition at line 260 of file oDirentWin32.hh.

typedef struct DIR DIR

Definition at line 318 of file oDirentWin32.hh.

typedef struct dirent dirent

Definition at line 312 of file oDirentWin32.hh.

Function Documentation

static int _wclosedir ( _WDIR dirp)
static

Definition at line 511 of file oDirentWin32.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

static _WDIR * _wopendir ( const wchar_t *  dirname)
static

Definition at line 352 of file oDirentWin32.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

static struct _wdirent * _wreaddir ( _WDIR dirp)
static

Definition at line 451 of file oDirentWin32.hh.

Here is the call graph for this function:

static void _wrewinddir ( _WDIR dirp)
static

Definition at line 546 of file oDirentWin32.hh.

Here is the call graph for this function:

Here is the caller graph for this function:

static int closedir ( DIR dirp)
static

Definition at line 779 of file oDirentWin32.hh.

Here is the call graph for this function:

static WIN32_FIND_DATAW * dirent_first ( _WDIR dirp)
static

Definition at line 562 of file oDirentWin32.hh.

Here is the caller graph for this function:

static int dirent_mbstowcs_s ( size_t *  pReturnValue,
wchar_t *  wcstr,
size_t  sizeInWords,
const char *  mbstr,
size_t  count 
)
static

Definition at line 815 of file oDirentWin32.hh.

Here is the caller graph for this function:

static WIN32_FIND_DATAW * dirent_next ( _WDIR dirp)
static

Definition at line 587 of file oDirentWin32.hh.

Here is the caller graph for this function:

static void dirent_set_errno ( int  error)
static

Definition at line 921 of file oDirentWin32.hh.

Here is the caller graph for this function:

static int dirent_wcstombs_s ( size_t *  pReturnValue,
char *  mbstr,
size_t  sizeInBytes,
const wchar_t *  wcstr,
size_t  count 
)
static

Definition at line 868 of file oDirentWin32.hh.

Here is the caller graph for this function:

static DIR * opendir ( const char *  dirname)
static

Definition at line 626 of file oDirentWin32.hh.

Here is the call graph for this function:

static struct dirent * readdir ( DIR dirp)
static

Definition at line 696 of file oDirentWin32.hh.

Here is the call graph for this function:

static void rewinddir ( DIR dirp)
static

Definition at line 806 of file oDirentWin32.hh.

Here is the call graph for this function: