#include "fprov-if.h"
#include "cfg.h"
#include "global.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <l4/env/errno.h>
#include <l4/names/libnames.h>
#include <l4/generic_fprov/generic_fprov-client.h>
Defines | |
#define | min(x, y) ((x)<(y)?(x):(y)) |
#define | max(x, y) ((x)>(y)?(x):(y)) |
Functions | |
int | load_file (const char *fname_and_arg, l4_threadid_t fprov_id, l4_threadid_t dsm_id, const char *search_path, int contiguous, l4_addr_t *addr, l4_size_t *size, l4dm_dataspace_t *ds) |
Get file from file provider. | |
Variables | |
l4_threadid_t | tftp_id = L4_INVALID_ID |
int load_file | ( | const char * | fname_and_arg, | |
l4_threadid_t | fprov_id, | |||
l4_threadid_t | dsm_id, | |||
const char * | search_path, | |||
int | contiguous, | |||
l4_addr_t * | addr, | |||
l4_size_t * | size, | |||
l4dm_dataspace_t * | ds | |||
) |
Get file from file provider.
fname_and_arg | file name (optional arguments are ignored) | |
search_path | colon delemited paths to try to load the file | |
contiguous | if !=0, ask file provider to create contiguos ds | |
fprov_id | id of file provider | |
dsm_id | id of dataspace manager |
addr | Address the image was loaded to. If NULL, don't attach the image to our address space. | |
size | size (in bytes) of the file as returned by fprov | |
ds | associated dataspace |