Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
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>

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)
 
#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 _D_EXACT_NAMLEN(p)
 
#define _D_ALLOC_NAMLEN(p)
 
#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)
Value:
(PATH_MAX + 1)
#define PATH_MAX
Definition dirent.h:156

◆ _D_EXACT_NAMLEN

#define _D_EXACT_NAMLEN ( p)
Value:
((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)
Value:
(type)

◆ FILE_ATTRIBUTE_DEVICE

#define FILE_ATTRIBUTE_DEVICE   0x40

◆ FILENAME_MAX

#define FILENAME_MAX   MAX_PATH

◆ IFTODT

#define IFTODT ( mode)
Value:
((mode) & S_IFMT)
#define S_IFMT
Definition dirent.h:106

◆ 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)
Value:
(((mode) & S_IFMT) == S_IFBLK)
#define S_IFBLK
Definition dirent.h:133

◆ S_ISCHR

#define S_ISCHR ( mode)
Value:
(((mode) & S_IFMT) == S_IFCHR)
#define S_IFCHR
Definition dirent.h:112

◆ S_ISDIR

#define S_ISDIR ( mode)
Value:
(((mode) & S_IFMT) == S_IFDIR)
#define S_IFDIR
Definition dirent.h:109

◆ S_ISFIFO

#define S_ISFIFO ( mode)
Value:
(((mode) & S_IFMT) == S_IFIFO)
#define S_IFIFO
Definition dirent.h:130

◆ S_ISLNK

#define S_ISLNK ( mode)
Value:
(((mode) & S_IFMT) == S_IFLNK)
#define S_IFLNK
Definition dirent.h:136

◆ S_ISREG

#define S_ISREG ( mode)
Value:
(((mode) & S_IFMT) == S_IFREG)
#define S_IFREG
Definition dirent.h:118

◆ S_ISSOCK

#define S_ISSOCK ( mode)
Value:
(((mode) & S_IFMT) == S_IFSOCK)
#define S_IFSOCK
Definition dirent.h:139

◆ 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