1/* 2 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#ifndef DIRENT_H_ 11#define DIRENT_H_ 12 13#include <sys/cdefs.h> 14 15#ifndef MAXNAMLEN 16#define MAXNAMLEN 512 17#endif 18 19struct dirent { 20// long d_ino; 21// off_t d_off; 22// unsigned short d_reclen; 23 char d_name[MAXNAMLEN + 1]; 24}; 25 26typedef struct { 27 struct dirent dirent; 28 void *vh; // really a vfs_handle_t 29} DIR; 30 31#endif 32