RT-AC66 3.0.0.4.374.130 core
[tomato.git] / release / src-rt-6.x / linux / linux-2.6 / scripts / squashfs / sort.h
blob561c320bfe9ea907bb787b3f160c983effb1e6ec
1 #ifndef SORT_H
2 #define SORT_H
4 /*
5 * Squashfs
7 * Copyright (c) 2002, 2003, 2004, 2005, 2006
8 * Phillip Lougher <phillip@lougher.org.uk>
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2,
13 * or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 * sort.h
27 struct dir_info {
28 char *pathname;
29 unsigned int count;
30 unsigned int directory_count;
31 unsigned int current_count;
32 unsigned int byte_count;
33 char dir_is_ldir;
34 struct dir_ent *dir_ent;
35 struct dir_ent **list;
36 DIR *linuxdir;
39 struct dir_ent {
40 char *name;
41 char *pathname;
42 struct inode_info *inode;
43 struct dir_info *dir;
44 struct dir_info *our_dir;
45 struct old_root_entry_info *data;
48 struct inode_info {
49 unsigned int nlink;
50 struct stat buf;
51 squashfs_inode inode;
52 unsigned int type;
53 unsigned int inode_number;
54 struct inode_info *next;
56 #endif