gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
dirent.h 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>
Include dependency graph for dirent.h:
This graph shows which files directly or indirectly include this file:

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 /* File type mask */
 
#define S_IFDIR   _S_IFDIR /* Directory */
 
#define S_IFCHR   _S_IFCHR /* Character device */
 
#define S_IFFIFO   _S_IFFIFO /* Pipe */
 
#define S_IFREG   _S_IFREG /* Regular file */
 
#define S_IREAD   _S_IREAD /* Read permission */
 
#define S_IWRITE   _S_IWRITE /* Write permission */
 
#define S_IEXEC   _S_IEXEC /* Execute permission */
 
#define S_IFIFO   _S_IFIFO /* Pipe */
 
#define S_IFBLK   0 /* Block device */
 
#define S_IFLNK   0 /* Link */
 
#define S_IFSOCK   0 /* Socket */
 
#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

◆ _D_ALLOC_NAMLEN

#define _D_ALLOC_NAMLEN (   p)    (PATH_MAX)

Definition at line 227 of file dirent.h.

◆ _D_EXACT_NAMLEN

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

Definition at line 224 of file dirent.h.

◆ _DIRENT_HAVE_D_NAMLEN

#define _DIRENT_HAVE_D_NAMLEN

Definition at line 127 of file dirent.h.

◆ _DIRENT_HAVE_D_TYPE

#define _DIRENT_HAVE_D_TYPE

Definition at line 124 of file dirent.h.

◆ DT_BLK

#define DT_BLK   S_IFBLK

Definition at line 202 of file dirent.h.

◆ DT_CHR

#define DT_CHR   S_IFCHR

Definition at line 201 of file dirent.h.

◆ DT_DIR

#define DT_DIR   S_IFDIR

Definition at line 198 of file dirent.h.

◆ DT_FIFO

#define DT_FIFO   S_IFIFO

Definition at line 199 of file dirent.h.

◆ DT_LNK

#define DT_LNK   S_IFLNK

Definition at line 203 of file dirent.h.

◆ DT_REG

#define DT_REG   S_IFREG

Definition at line 197 of file dirent.h.

◆ DT_SOCK

#define DT_SOCK   S_IFSOCK

Definition at line 200 of file dirent.h.

◆ DT_UNKNOWN

#define DT_UNKNOWN   0

Definition at line 196 of file dirent.h.

◆ DTTOIF

#define DTTOIF (   type)    (type)

Definition at line 207 of file dirent.h.

◆ FILE_ATTRIBUTE_DEVICE

#define FILE_ATTRIBUTE_DEVICE   0x40

Definition at line 131 of file dirent.h.

◆ FILENAME_MAX

#define FILENAME_MAX   MAX_PATH

Definition at line 189 of file dirent.h.

◆ IFTODT

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

Definition at line 206 of file dirent.h.

◆ NAME_MAX

#define NAME_MAX   FILENAME_MAX

Definition at line 192 of file dirent.h.

◆ PATH_MAX

#define PATH_MAX   MAX_PATH

Definition at line 186 of file dirent.h.

◆ S_IEXEC

#define S_IEXEC   _S_IEXEC /* Execute permission */

Definition at line 157 of file dirent.h.

◆ S_IFBLK

#define S_IFBLK   0 /* Block device */

Definition at line 163 of file dirent.h.

◆ S_IFCHR

#define S_IFCHR   _S_IFCHR /* Character device */

Definition at line 142 of file dirent.h.

◆ S_IFDIR

#define S_IFDIR   _S_IFDIR /* Directory */

Definition at line 139 of file dirent.h.

◆ S_IFFIFO

#define S_IFFIFO   _S_IFFIFO /* Pipe */

Definition at line 145 of file dirent.h.

◆ S_IFIFO

#define S_IFIFO   _S_IFIFO /* Pipe */

Definition at line 160 of file dirent.h.

◆ S_IFLNK

#define S_IFLNK   0 /* Link */

Definition at line 166 of file dirent.h.

◆ S_IFMT

#define S_IFMT   _S_IFMT /* File type mask */

Definition at line 136 of file dirent.h.

◆ S_IFREG

#define S_IFREG   _S_IFREG /* Regular file */

Definition at line 148 of file dirent.h.

◆ S_IFSOCK

#define S_IFSOCK   0 /* Socket */

Definition at line 169 of file dirent.h.

◆ S_IREAD

#define S_IREAD   _S_IREAD /* Read permission */

Definition at line 151 of file dirent.h.

◆ S_ISBLK

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

Definition at line 221 of file dirent.h.

◆ S_ISCHR

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

Definition at line 220 of file dirent.h.

◆ S_ISDIR

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

Definition at line 216 of file dirent.h.

◆ S_ISFIFO

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

Definition at line 215 of file dirent.h.

◆ S_ISLNK

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

Definition at line 218 of file dirent.h.

◆ S_ISREG

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

Definition at line 217 of file dirent.h.

◆ S_ISSOCK

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

Definition at line 219 of file dirent.h.

◆ S_IWRITE

#define S_IWRITE   _S_IWRITE /* Write permission */

Definition at line 154 of file dirent.h.

◆ wclosedir

#define wclosedir   _wclosedir

Definition at line 265 of file dirent.h.

◆ WDIR

#define WDIR   _WDIR

Definition at line 262 of file dirent.h.

◆ wdirent

#define wdirent   _wdirent

Definition at line 261 of file dirent.h.

◆ wopendir

#define wopendir   _wopendir

Definition at line 263 of file dirent.h.

◆ wreaddir

#define wreaddir   _wreaddir

Definition at line 264 of file dirent.h.

◆ wrewinddir

#define wrewinddir   _wrewinddir

Definition at line 266 of file dirent.h.

Typedef Documentation

◆ _WDIR

typedef struct _WDIR _WDIR

Definition at line 252 of file dirent.h.

◆ _wdirent

typedef struct _wdirent _wdirent

Definition at line 243 of file dirent.h.

◆ DIR

typedef struct DIR DIR

Definition at line 283 of file dirent.h.

◆ dirent

typedef struct dirent dirent

Definition at line 277 of file dirent.h.

Function Documentation

◆ _wclosedir()

static int _wclosedir ( _WDIR dirp)
static

Definition at line 476 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _wopendir()

static _WDIR * _wopendir ( const wchar_t *  dirname)
static

Definition at line 317 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _wreaddir()

static struct _wdirent * _wreaddir ( _WDIR dirp)
static

Definition at line 416 of file dirent.h.

Here is the call graph for this function:

◆ _wrewinddir()

static void _wrewinddir ( _WDIR dirp)
static

Definition at line 511 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closedir()

static int closedir ( DIR dirp)
static

Definition at line 744 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dirent_first()

static WIN32_FIND_DATAW * dirent_first ( _WDIR dirp)
static

Definition at line 527 of file dirent.h.

Here is the caller graph for this function:

◆ dirent_mbstowcs_s()

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

Definition at line 780 of file dirent.h.

Here is the caller graph for this function:

◆ dirent_next()

static WIN32_FIND_DATAW * dirent_next ( _WDIR dirp)
static

Definition at line 552 of file dirent.h.

Here is the caller graph for this function:

◆ dirent_set_errno()

static void dirent_set_errno ( int  error)
static

Definition at line 886 of file dirent.h.

Here is the caller graph for this function:

◆ dirent_wcstombs_s()

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

Definition at line 833 of file dirent.h.

Here is the caller graph for this function:

◆ opendir()

static DIR * opendir ( const char *  dirname)
static

Definition at line 591 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readdir()

static struct dirent * readdir ( DIR dirp)
static

Definition at line 661 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rewinddir()

static void rewinddir ( DIR dirp)
static

Definition at line 771 of file dirent.h.

Here is the call graph for this function:
Here is the caller graph for this function:
gtkIOStream: /tmp/gtkiostream/include/posixForMicrosoft/dirent.h File Reference
GTK+ IOStream  Beta