source: rtems/testsuites/libtests/dl07/dl-load.h @ 95c1921

5
Last change on this file since 95c1921 was 03139d5b, checked in by Chris Johns <chrisj@…>, on 11/20/18 at 03:56:11

libdl: Add object file dependencies to track references

Tracking references lets us manage when an object file can be
unloaded. If an object file has references to it, it cannot be
unloaded.

Modules that depend on each other cannot be unloaded.

Updates #3605

  • Property mode set to 100644
File size: 468 bytes
Line 
1/*
2 * Copyright (c) 2014, 2018 Chris Johns <chrisj@rtems.org>.  All rights reserved.
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#include <string.h>
10
11#if !defined(_DL_LOAD_H_)
12#define _DL_LOAD_H_
13
14static inline const char* dl_localise_file (const char* file)
15{
16  return (const char*) strstr (file, "testsuites");
17}
18
19int dl_load_test(void);
20
21#endif
Note: See TracBrowser for help on using the repository browser.