2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
9 void *open_file(struct ELFNode
*n
, unsigned int *err
)
12 * Our files are already loaded into memory as raw data.
13 * Return a pointer to the beginning of the file.
14 * NULL pointer is a valid result here (on EFI machines the first
15 * module can be located at address 0). This is why error code
16 * is a separate value here.
22 void close_file(void *file
)
24 /* No special action is needed */
27 int read_block(void *file
, unsigned long offset
, void *dest
, unsigned long length
)
29 memcpy(dest
, file
+ offset
, length
);
33 void *load_block(void *file
, unsigned long offset
, unsigned long length
, unsigned int *err
)
39 void free_block(void *addr
)
41 /* No special action is needed */