Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/elf/elf_load.c

    rbb9ec2d rdc0d8b52  
    4141#include <stdio.h>
    4242#include <stdlib.h>
    43 #include <vfs/vfs.h>
    4443
    4544#ifdef CONFIG_RTLD
     
    5150/** Load ELF program.
    5251 *
    53  * @param file File handle
     52 * @param file_name File name
    5453 * @param info Place to store ELF program information
    5554 * @return EOK on success or non-zero error code
    5655 */
    57 int elf_load(int file, elf_info_t *info)
     56int elf_load(const char *file_name, elf_info_t *info)
    5857{
    5958#ifdef CONFIG_RTLD
     
    6261        int rc;
    6362
    64         rc = elf_load_file(file, 0, 0, &info->finfo);
     63        rc = elf_load_file(file_name, 0, 0, &info->finfo);
    6564        if (rc != EE_OK) {
    6665                DPRINTF("Failed to load executable '%s'.\n", file_name);
Note: See TracChangeset for help on using the changeset viewer.