5
Last change
on this file since c130387 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:
925 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 2012 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 Error |
---|
14 | */ |
---|
15 | |
---|
16 | #if !defined (_RTEMS_RTL_ERROR_H_) |
---|
17 | #define _RTEMS_RTL_ERROR_H_ |
---|
18 | |
---|
19 | #ifdef __cplusplus |
---|
20 | extern "C" { |
---|
21 | #endif /* __cplusplus */ |
---|
22 | |
---|
23 | #if __GNUC__ |
---|
24 | #define RTEMS_RTL_PRINTF_ATTR __attribute__((__format__(__printf__,2,3))) |
---|
25 | #else |
---|
26 | #define RTEMS_RTL_PRINTF_ATTR |
---|
27 | #endif |
---|
28 | |
---|
29 | /** |
---|
30 | * Sets the error. |
---|
31 | * |
---|
32 | * Assumes the RTL has been locked. |
---|
33 | * |
---|
34 | * @param error The errno error number. |
---|
35 | * @param format The error format string. |
---|
36 | * @param ... The variable arguments that depend on the format string. |
---|
37 | */ |
---|
38 | void rtems_rtl_set_error (int error, const char* format, ...) RTEMS_RTL_PRINTF_ATTR; |
---|
39 | |
---|
40 | #ifdef __cplusplus |
---|
41 | } |
---|
42 | #endif /* __cplusplus */ |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.