Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

biossums.c File Reference

Detailed Description

Tool for modifying a BIOS image to write the BIOS checksum.

Definition in file biossums.c.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>

Go to the source code of this file.


typedef unsigned char uint8_t


static uint8_t calculateChecksum (uint8_t *pb, size_t cb, size_t iChecksum)
static int fatal (const char *pszFormat,...)
int main (int argc, char **argv)
static const char * name (const char *pszPath)
static int searchHeader (uint8_t *pb, size_t cb, const char *pszHeader, uint8_t **pbHeader)


static uint8_t abBios [64 *1024]
static const char * g_argv0
static FILE * g_pIn = NULL
static FILE * g_pOut = NULL
static const char * g_pszOutFile = NULL

Generated by  Doxygen 1.6.0   Back to index