Go to the source code of this file.
Data Structures | |
| struct | cpio_header |
| A CPIO archive header. More... | |
Defines | |
| #define | CPIO_MAGIC "070701" |
| CPIO magic. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER) | |
| void | cpio_set_field (char *field, unsigned long value) |
| Set field within a CPIO header. | |
Variables | |
| struct cpio_header | packed |
| A CPIO archive header. | |
Definition in file cpio.h.
| #define CPIO_MAGIC "070701" |
| FILE_LICENCE | ( | GPL2_OR_LATER | ) |
| void cpio_set_field | ( | char * | field, | |
| unsigned long | value | |||
| ) |
Set field within a CPIO header.
| field | Field within CPIO header | |
| value | Value to set |
Definition at line 37 of file cpio.c.
References memcpy, and snprintf().
Referenced by bzimage_load_initrd().
00037 { 00038 char buf[9]; 00039 00040 snprintf ( buf, sizeof ( buf ), "%08lx", value ); 00041 memcpy ( field, buf, 8 ); 00042 }
| struct cpio_header packed |
A CPIO archive header.
All field are hexadecimal ASCII numbers padded with '0' on the left to the full width of the field.
1.5.7.1