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.
 
#define DT_FIFO   1
 This is a named pipe (FIFO).
 
#define DT_CHR   2
 This is a character device.
 
#define DT_DIR   4
 This is a directory.
 
#define DT_BLK   6
 This is a block device.
 
#define DT_REG   8
 This is a regular file.
 
#define DT_LNK   10
 This is a symbolic link.
 
#define DT_SOCK   12
 This is a Unix domain socket.
 
#define DIRLEN   64
 Maximum length of a directory entry name.
 

Typedefs

typedef struct DIR DIR
 A type representing a directory stream.
 

Functions

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