87 if ( *
end && ( *
end !=
' ' ) ) {
88 DBGC (
image,
"CPIO %p strange \"mode=\" " 114 memset ( cpio,
'0',
sizeof ( *cpio ) );
size_t cpio_name_len(struct image *image)
Get CPIO image filename.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
unsigned long strtoul(const char *string, char **endp, int base)
Convert string to numeric value.
#define CPIO_ALIGN
CPIO header length alignment.
void cpio_set_field(char *field, unsigned long value)
Set field within a CPIO header.
void * memcpy(void *dest, const void *src, size_t len) __nonnull
pseudo_bit_t value[0x00020]
size_t len
Length of raw file image.
char * strchr(const char *src, int character)
Find character within a string.
size_t strlen(const char *src)
Get length of string.
static void cpio_parse_cmdline(struct image *image, struct cpio_header *cpio)
Parse CPIO image parameters.
#define CPIO_MAGIC
CPIO magic.
const char * image_argument(struct image *image, const char *key)
Find argument within image command line.
uint32_t end
Ending offset.
int snprintf(char *buf, size_t size, const char *fmt,...)
Write a formatted string to a buffer.
void * memset(void *dest, int character, size_t len) __nonnull
size_t cpio_header(struct image *image, struct cpio_header *cpio)
Construct CPIO header for image, if applicable.
static const char * cpio_name(struct image *image)
Get CPIO image name.