• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2014 Fujitsu Ltd.
3  * Author: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it would be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * You should have received a copy of the GNU General Public License along
14  * with this program; if not, write the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef READDIR_H
19 #define READDIR_H
20 
21 #include <limits.h>
22 
23 struct old_linux_dirent {
24 	long  d_ino;			/* inode number */
25 	off_t d_off;			/* offset to this old_linux_dirent */
26 	unsigned short d_reclen;	/* length of this d_name */
27 	char  d_name[NAME_MAX+1];	/* filename (null-terminated) */
28 };
29 
30 #endif /* READDIR_H */
31