Main Page | Data Structures | File List | Globals | Related Pages

loader.c File Reference

User program data loading. More...

#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include <exec2obj.h>
#include <loader.h>
#include <elf.h>


Detailed Description

User program data loading.

Implementings reading of user program data from the exec2obj apps.

Author:
Lee Salzman (lsalzman)

Hassaan Khan (hkhan)


Function Documentation

int getbytes const char *  filename,
int  offset,
int  size,
char *  buf
 

Copies data from a file into a buffer.

Parameters:
filename the name of the file to copy data from
offset the location in the file to begin copying from
size the number of bytes to be copied
buf the buffer to copy the data into
Returns:
returns the number of bytes copied on succes; -1 on failure


Generated on Fri Apr 9 21:59:16 2004 for 15-410 Project 3 by doxygen 1.3.2