71 lines
2 KiB
C
71 lines
2 KiB
C
|
/*
|
||
|
* Copyright (C) 2001-2003 Hewlett-Packard Co.
|
||
|
* Contributed by Stephane Eranian <eranian@hpl.hp.com>
|
||
|
*
|
||
|
* This file is part of the ELILO, the EFI Linux boot loader.
|
||
|
*
|
||
|
* ELILO is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2, or (at your option)
|
||
|
* any later version.
|
||
|
*
|
||
|
* ELILO is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with ELILO; see the file COPYING. If not, write to the Free
|
||
|
* Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||
|
* 02111-1307, USA.
|
||
|
*
|
||
|
* Please check out the elilo.txt for complete documentation on how
|
||
|
* to use this program.
|
||
|
*/
|
||
|
|
||
|
#ifndef __FS_EXT2FS_PRIVATE_H__
|
||
|
#define __FS_EXT2FS_PRIVATE_H__
|
||
|
|
||
|
/*
|
||
|
* Implement the Linux kernel internal data types
|
||
|
* used by ext2
|
||
|
*/
|
||
|
typedef UINT32 __u32;
|
||
|
typedef INT32 __s32;
|
||
|
typedef UINT16 __u16;
|
||
|
typedef INT16 __s16;
|
||
|
typedef UINT8 __u8;
|
||
|
typedef INT8 __s8;
|
||
|
typedef UINT32 uid_t;
|
||
|
typedef UINT32 gid_t;
|
||
|
|
||
|
/*
|
||
|
* Get some constant from linux/stat.h
|
||
|
*/
|
||
|
#define S_IFMT 00170000
|
||
|
#define S_IFSOCK 0140000
|
||
|
#define S_IFLNK 0120000
|
||
|
#define S_IFREG 0100000
|
||
|
#define S_IFBLK 0060000
|
||
|
#define S_IFDIR 0040000
|
||
|
#define S_IFCHR 0020000
|
||
|
#define S_IFIFO 0010000
|
||
|
#define S_ISUID 0004000
|
||
|
#define S_ISGID 0002000
|
||
|
#define S_ISVTX 0001000
|
||
|
|
||
|
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
|
||
|
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||
|
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||
|
#define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
||
|
#define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
||
|
#define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
|
||
|
#define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
|
||
|
|
||
|
|
||
|
#include "fs/ext2_fs.h"
|
||
|
#include "fs/ext2_fs_sb.h"
|
||
|
#include "fs/ext2_fs_i.h"
|
||
|
|
||
|
#endif /* __FS_EXT2FS_PRIVATE_H__*/
|