POK(kernelpart)
Main Page
Data Structures
Files
File List
Globals
cpio.h
Go to the documentation of this file.
1
/*
2
* POK header
3
*
4
* The following file is a part of the POK project. Any modification should
5
* made according to the POK licence. You CANNOT use this file or a part of
6
* this file is this part of a file for your own project
7
*
8
* For more information on the POK licence, please see our LICENCE FILE
9
*
10
* Please follow the coding guidelines described in doc/CODING_GUIDELINES
11
*
12
* Copyright (c) 2007-2009 POK team
13
*
14
* Created by julien on Thu Jan 15 23:34:13 2009
15
*/
16
17
18
#ifndef __POK_KERNEL_CPIO_H__
19
#define __POK_KERNEL_CPIO_H__
20
21
enum
cpio_format
22
{
23
CPIO_BIN_FMT
,
24
CPIO_ODC_FMT
,
25
CPIO_NEWC_FMT
,
26
CPIO_CRC_FMT
,
27
CPIO_TAR_FMT
,
28
CPIO_USTAR_FMT
,
29
CPIO_HPBIN_FMT
,
30
CPIO_HPODC_FMT
31
};
32
33
struct
cpio_bin_header
34
{
35
unsigned
short
c_magic
;
36
unsigned
short
c_dev
;
37
unsigned
short
c_ino
;
38
unsigned
short
c_mode
;
39
unsigned
short
c_uid
;
40
unsigned
short
c_gid
;
41
unsigned
short
c_nlink
;
42
unsigned
short
c_rdev
;
43
unsigned
short
c_mtime
[2];
44
unsigned
short
c_namesize
;
45
unsigned
short
c_filesize
[2];
46
};
47
48
struct
cpio_file
49
{
50
int
cpio_fmt
;
51
void
*
cpio_addr
;
52
void
*
curr_header
;
53
void
*
curr_fileaddr
;
54
unsigned
int
curr_filesz
;
55
char
*
curr_filename
;
56
unsigned
int
curr_filename_len
;
57
int (*
next_header
)(
struct
cpio_file
*cpio);
58
};
59
60
int
cpio_open
(
struct
cpio_file
*cpio,
void
*file);
61
char
*
cpio_get_filename
(
struct
cpio_file
*cpio);
62
int
cpio_next_file
(
struct
cpio_file
*cpio);
63
void
*
cpio_get_fileaddr
(
struct
cpio_file
*cpio);
64
65
#endif
/* __POK_KERNEL_CPIO_H__ */
66
kernel
include
core
cpio.h
Generated on Fri Jun 1 2012 19:07:12 for POK(kernelpart) by
1.8.1