cpio.h File Reference

CPIO archives. More...

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.


Detailed Description

CPIO archives.

Definition in file cpio.h.


Define Documentation

#define CPIO_MAGIC   "070701"

CPIO magic.

Definition at line 49 of file cpio.h.

Referenced by bzimage_load_initrd().


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

void cpio_set_field ( char *  field,
unsigned long  value 
)

Set field within a CPIO header.

Parameters:
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 }


Variable Documentation

A CPIO archive header.

All field are hexadecimal ASCII numbers padded with '0' on the left to the full width of the field.


Generated on Tue Apr 6 20:01:48 2010 for gPXE by  doxygen 1.5.7.1