32 lines
632 B
C
32 lines
632 B
C
/*
|
|
* Copyright (c) 2007, 2008, 2009, ETH Zurich.
|
|
* All rights reserved.
|
|
*
|
|
* This file is distributed under the terms in the attached LICENSE file.
|
|
* If you do not find this file, copies can be found by writing to:
|
|
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
|
|
*/
|
|
|
|
#ifndef DIRENT_H_
|
|
#define DIRENT_H_
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#ifndef MAXNAMLEN
|
|
#define MAXNAMLEN 512
|
|
#endif
|
|
|
|
struct dirent {
|
|
// long d_ino;
|
|
// off_t d_off;
|
|
// unsigned short d_reclen;
|
|
char d_name[MAXNAMLEN + 1];
|
|
};
|
|
|
|
typedef struct {
|
|
struct dirent dirent;
|
|
void *vh; // really a vfs_handle_t
|
|
} DIR;
|
|
|
|
#endif
|