diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-11 14:31:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1995-08-11 14:31:29 +0000 |
commit | 4e58d80b9eff1e81b4982b6617763a4344e1eabe (patch) | |
tree | d71089bda3c217fbce325ba6a3dc4e495ec5180e | |
parent | Added flush of output on exit. On some UNIX's using the native library (diff) | |
download | rtems-4e58d80b9eff1e81b4982b6617763a4344e1eabe.tar.bz2 |
Added functions to access the errno of the native system when using the
newlib C library.
-rw-r--r-- | c/src/exec/libcsupport/include/rtems/libcsupport.h | 9 | ||||
-rw-r--r-- | c/src/lib/include/rtems/libcsupport.h | 9 | ||||
-rw-r--r-- | c/src/lib/libc/libcsupport.h | 9 | ||||
-rw-r--r-- | cpukit/libcsupport/include/rtems/libcsupport.h | 9 |
4 files changed, 8 insertions, 28 deletions
diff --git a/c/src/exec/libcsupport/include/rtems/libcsupport.h b/c/src/exec/libcsupport/include/rtems/libcsupport.h index 2b199707f8..063246f4e5 100644 --- a/c/src/exec/libcsupport/include/rtems/libcsupport.h +++ b/c/src/exec/libcsupport/include/rtems/libcsupport.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __cplusplus -extern "C" { -#endif - #include <sys/types.h> void RTEMS_Malloc_Initialize( @@ -39,9 +35,8 @@ extern void libc_init(int reentrant); } #endif -#ifdef __cplusplus -} -#endif +extern int host_errno(void); +extern void fix_syscall_errno(void); #endif /* end of include file */ diff --git a/c/src/lib/include/rtems/libcsupport.h b/c/src/lib/include/rtems/libcsupport.h index 2b199707f8..063246f4e5 100644 --- a/c/src/lib/include/rtems/libcsupport.h +++ b/c/src/lib/include/rtems/libcsupport.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __cplusplus -extern "C" { -#endif - #include <sys/types.h> void RTEMS_Malloc_Initialize( @@ -39,9 +35,8 @@ extern void libc_init(int reentrant); } #endif -#ifdef __cplusplus -} -#endif +extern int host_errno(void); +extern void fix_syscall_errno(void); #endif /* end of include file */ diff --git a/c/src/lib/libc/libcsupport.h b/c/src/lib/libc/libcsupport.h index 2b199707f8..063246f4e5 100644 --- a/c/src/lib/libc/libcsupport.h +++ b/c/src/lib/libc/libcsupport.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __cplusplus -extern "C" { -#endif - #include <sys/types.h> void RTEMS_Malloc_Initialize( @@ -39,9 +35,8 @@ extern void libc_init(int reentrant); } #endif -#ifdef __cplusplus -} -#endif +extern int host_errno(void); +extern void fix_syscall_errno(void); #endif /* end of include file */ diff --git a/cpukit/libcsupport/include/rtems/libcsupport.h b/cpukit/libcsupport/include/rtems/libcsupport.h index 2b199707f8..063246f4e5 100644 --- a/cpukit/libcsupport/include/rtems/libcsupport.h +++ b/cpukit/libcsupport/include/rtems/libcsupport.h @@ -21,10 +21,6 @@ extern "C" { #endif -#ifdef __cplusplus -extern "C" { -#endif - #include <sys/types.h> void RTEMS_Malloc_Initialize( @@ -39,9 +35,8 @@ extern void libc_init(int reentrant); } #endif -#ifdef __cplusplus -} -#endif +extern int host_errno(void); +extern void fix_syscall_errno(void); #endif /* end of include file */ |