RTEMS 6.1-rc1
Functions
rtl-find-file.c File Reference

RTEMS Run-Time Linker Error. More...

#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <rtems/libio_.h>
#include <rtems/rtl/rtl.h>
#include "rtl-find-file.h"
#include "rtl-error.h"
#include "rtl-string.h"
#include <rtems/rtl/rtl-trace.h>

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 Error.

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.