RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Functions
rtl-find-file.h File Reference

RTEMS Run-Time Linker Object Support. More...

#include <rtems.h>
#include <rtems/chain.h>

Go to the source code of this file.

Functions

bool rtems_rtl_find_file (const char *name, const char *paths, const char **file_name, size_t *size)
 

Detailed Description

RTEMS Run-Time Linker Object Support.

Function Documentation

◆ rtems_rtl_find_file()

bool rtems_rtl_find_file ( const char *  name,
const char *  paths,
const char **  file_name,
size_t *  size 
)

Find a file on disk given a name and a path.

Parameters
nameThe file name to find. Can be relative or absolute.
pathsThe paths to search.
file_namePlace the full path in this location if found.
sizeThe size of the file if found as returned by the 'stat' call.
Return values
trueThe file was found.
falseThe file was not found.