orphan
[debian/elilo] / fs / ext2_private.h
1 /*
2  *  Copyright (C) 2001-2003 Hewlett-Packard Co.
3  *      Contributed by Stephane Eranian <eranian@hpl.hp.com>
4  *
5  * This file is part of the ELILO, the EFI Linux boot loader.
6  *
7  *  ELILO is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2, or (at your option)
10  *  any later version.
11  *
12  *  ELILO 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 ELILO; see the file COPYING.  If not, write to the Free
19  *  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20  *  02111-1307, USA.
21  *
22  * Please check out the elilo.txt for complete documentation on how
23  * to use this program.
24  */
25
26 #ifndef __FS_EXT2FS_PRIVATE_H__
27 #define __FS_EXT2FS_PRIVATE_H__
28
29 /*
30  * Implement the Linux kernel internal data types
31  * used by ext2
32  */
33 typedef UINT32 __u32;
34 typedef INT32  __s32;
35 typedef UINT16 __u16;
36 typedef INT16  __s16;
37 typedef UINT8   __u8;
38 typedef INT8    __s8;
39 typedef UINT32  uid_t;  
40 typedef UINT32  gid_t;
41
42 /*
43  * Get some constant from linux/stat.h
44  */
45 #define S_IFMT  00170000
46 #define S_IFSOCK 0140000
47 #define S_IFLNK  0120000
48 #define S_IFREG  0100000
49 #define S_IFBLK  0060000
50 #define S_IFDIR  0040000
51 #define S_IFCHR  0020000
52 #define S_IFIFO  0010000
53 #define S_ISUID  0004000
54 #define S_ISGID  0002000
55 #define S_ISVTX  0001000
56
57 #define S_ISLNK(m)      (((m) & S_IFMT) == S_IFLNK)
58 #define S_ISREG(m)      (((m) & S_IFMT) == S_IFREG)
59 #define S_ISDIR(m)      (((m) & S_IFMT) == S_IFDIR)
60 #define S_ISCHR(m)      (((m) & S_IFMT) == S_IFCHR)
61 #define S_ISBLK(m)      (((m) & S_IFMT) == S_IFBLK)
62 #define S_ISFIFO(m)     (((m) & S_IFMT) == S_IFIFO)
63 #define S_ISSOCK(m)     (((m) & S_IFMT) == S_IFSOCK)
64
65
66 #include "fs/ext2_fs.h"
67 #include "fs/ext2_fs_sb.h"
68 #include "fs/ext2_fs_i.h"
69
70 #endif /* __FS_EXT2FS_PRIVATE_H__*/