source: rtems/cpukit/libdl/rtl-find-file.h @ 4408603

5
Last change on this file since 4408603 was d4edbdbc, checked in by Sebastian Huber <sebastian.huber@…>, on 03/20/15 at 13:09:26

Replace www.rtems.com with www.rtems.org

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *  COPYRIGHT (c) 2012-2013 Chris Johns <chrisj@rtems.org>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.org/license/LICENSE.
7 */
8/**
9 * @file
10 *
11 * @ingroup rtems_rtl
12 *
13 * @brief RTEMS Run-Time Linker Object Support.
14 */
15
16#if !defined (_RTEMS_RTL_FIND_FILE_H_)
17#define _RTEMS_RTL_FIND_FILE_H_
18
19#include <rtems.h>
20#include <rtems/chain.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif /* __cplusplus */
25
26/**
27 * Find a file on disk given a name and a path.
28 *
29 * @param name The file name to find. Can be relative or absolute.
30 * @param paths The paths to search.
31 * @param file_name Place the full path in this location if found.
32 * @param size The size of the file if found as returned by the 'stat' call.
33 * @retval true The file was found.
34 * @retval false The file was not found.
35 */
36bool rtems_rtl_find_file (const char*  name,
37                          const char*  paths,
38                          const char** file_name,
39                          size_t*      size);
40
41#ifdef __cplusplus
42}
43#endif /* __cplusplus */
44
45#endif
Note: See TracBrowser for help on using the repository browser.