module core.c.posix.dirent
C Bindings | Posix Bindings

Code Map

module core.c.posix.dirent;

public import core.c.posix.sys.types;


enum DT_UNKNOWN;
enum DT_FIFO;
enum DT_CHR;
enum DT_DIR;
enum DT_BLK;
enum DT_REG;
enum DT_LNK;
enum DT_SOCK;
enum DT_WHT;

struct dirent
{
public:
	d_ino: ino_t;
	d_off: off_t;
	d_reclen: u16;
	d_type: u8;
	d_name: char[256];
}

struct DIR
{
}

fn readdir(DIR*) dirent*;
fn opendir(const(char)*) DIR*;
fn closedir(DIR*) i32;
fn readdir_r(DIR*, dirent*, dirent**) i32;
fn seekdir(DIR*, c_long);
fn telldir(DIR*) c_long;