FreeNOS
Data Structures | Macros | Typedefs | Functions
dirent.h File Reference
#include <Macros.h>
#include <Types.h>
#include "sys/types.h"
#include "string.h"

Go to the source code of this file.

Data Structures

struct  dirent
 Represents a directory entry. More...
 
struct  DIR
 A type representing a directory stream. More...
 

Macros

#define DT_UNKNOWN   0
 The file type is unknown. More...
 
#define DT_FIFO   1
 This is a named pipe (FIFO). More...
 
#define DT_CHR   2
 This is a character device. More...
 
#define DT_DIR   4
 This is a directory. More...
 
#define DT_BLK   6
 This is a block device. More...
 
#define DT_REG   8
 This is a regular file. More...
 
#define DT_LNK   10
 This is a symbolic link. More...
 
#define DT_SOCK   12
 This is a Unix domain socket. More...
 
#define DIRLEN   64
 Maximum length of a directory entry name. More...
 

Typedefs

typedef struct DIR DIR
 A type representing a directory stream. More...
 

Functions

C DIRopendir (const char *dirname)
 Open directory associated with file descriptor. More...
 
C struct direntreaddir (DIR *dirp)
 Read a directory. More...
 
C int closedir (DIR *dirp)
 Close a directory stream. More...