pseudo.h revision 11e7b1b6fe39cced2eefa83b6de6cdcd0b4ff1ab
1/* 2 * Create a squashfs filesystem. This is a highly compressed read only filesystem. 3 * 4 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 5 * Phillip Lougher <phillip@lougher.demon.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2, 10 * or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 * pseudo.h 22 */ 23struct pseudo_dev { 24 char type; 25 unsigned int mode; 26 unsigned int uid; 27 unsigned int gid; 28 unsigned int major; 29 unsigned int minor; 30 int pseudo_id; 31 int fd; 32 int child; 33#ifdef USE_TMP_FILE 34 char *filename; 35#endif 36}; 37 38struct pseudo_entry { 39 char *name; 40 char *pathname; 41 struct pseudo *pseudo; 42 struct pseudo_dev *dev; 43}; 44 45struct pseudo { 46 int names; 47 int count; 48 struct pseudo_entry *name; 49}; 50 51extern int read_pseudo_def(struct pseudo **, char *); 52extern int read_pseudo_file(struct pseudo **, char *); 53extern struct pseudo *pseudo_subdir(char *, struct pseudo *); 54extern struct pseudo_entry *pseudo_readdir(struct pseudo *); 55extern struct pseudo_dev *get_pseudo_file(int); 56extern void delete_pseudo_files(); 57