Kodi Documentation
Kodi is an open source media player and entertainment hub.
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:

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 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 + 1)
 
#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
 

Macro Definition Documentation

◆ _D_ALLOC_NAMLEN

#define _D_ALLOC_NAMLEN (   p)    (PATH_MAX + 1)

◆ _D_EXACT_NAMLEN

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

◆ _DIRENT_HAVE_D_NAMLEN

#define _DIRENT_HAVE_D_NAMLEN

◆ _DIRENT_HAVE_D_TYPE

#define _DIRENT_HAVE_D_TYPE

◆ DT_BLK

#define DT_BLK   S_IFBLK

◆ DT_CHR

#define DT_CHR   S_IFCHR

◆ DT_DIR

#define DT_DIR   S_IFDIR

◆ DT_FIFO

#define DT_FIFO   S_IFIFO

◆ DT_REG

#define DT_REG   S_IFREG

◆ DT_SOCK

#define DT_SOCK   S_IFSOCK

◆ DT_UNKNOWN

#define DT_UNKNOWN   0

◆ DTTOIF

#define DTTOIF (   type)    (type)

◆ FILE_ATTRIBUTE_DEVICE

#define FILE_ATTRIBUTE_DEVICE   0x40

◆ FILENAME_MAX

#define FILENAME_MAX   MAX_PATH

◆ IFTODT

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

◆ NAME_MAX

#define NAME_MAX   FILENAME_MAX

◆ PATH_MAX

#define PATH_MAX   MAX_PATH

◆ S_IEXEC

#define S_IEXEC   _S_IEXEC /* Execute permission */

◆ S_IFBLK

#define S_IFBLK   0 /* Block device */

◆ S_IFCHR

#define S_IFCHR   _S_IFCHR /* Character device */

◆ S_IFDIR

#define S_IFDIR   _S_IFDIR /* Directory */

◆ S_IFFIFO

#define S_IFFIFO   _S_IFFIFO /* Pipe */

◆ S_IFIFO

#define S_IFIFO   _S_IFIFO /* Pipe */

◆ S_IFLNK

#define S_IFLNK   0 /* Link */

◆ S_IFMT

#define S_IFMT   _S_IFMT /* File type mask */

◆ S_IFREG

#define S_IFREG   _S_IFREG /* Regular file */

◆ S_IFSOCK

#define S_IFSOCK   0 /* Socket */

◆ S_IREAD

#define S_IREAD   _S_IREAD /* Read permission */

◆ S_ISBLK

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

◆ S_ISCHR

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

◆ S_ISDIR

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

◆ S_ISFIFO

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

◆ S_ISLNK

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

◆ S_ISREG

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

◆ S_ISSOCK

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

◆ S_IWRITE

#define S_IWRITE   _S_IWRITE /* Write permission */

◆ wclosedir

#define wclosedir   _wclosedir

◆ WDIR

#define WDIR   _WDIR

◆ wdirent

#define wdirent   _wdirent

◆ wopendir

#define wopendir   _wopendir

◆ wreaddir

#define wreaddir   _wreaddir

◆ wrewinddir

#define wrewinddir   _wrewinddir

Typedef Documentation

◆ _WDIR

typedef struct _WDIR _WDIR

◆ _wdirent

typedef struct _wdirent _wdirent

◆ DIR

typedef struct DIR DIR

◆ dirent

typedef struct dirent dirent