summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-17 16:59:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-17 16:59:37 +0000
commit8ad28737746e5729f5b76d82e7ac7b9bd7073418 (patch)
treee915fb14bdc8d4db313112a560adbb401e921665
parent2004-09-17 Till Strauman <strauman@slac.stanford.edu> (diff)
downloadrtems-8ad28737746e5729f5b76d82e7ac7b9bd7073418.tar.bz2
2004-09-17 Joel Sherrill <joel@OARcorp.com>
PR 677/misc * dumpbuf/dumpbuf.h, fsmount/fsmount.h, rtmonuse/rtmonuse.h, serdbg/serdbg.h, serdbg/serdbgcnf.h, serdbg/termios_printk.h, serdbg/termios_printk_cnf.h, untar/untar.h: Add extern C wrappers.
-rw-r--r--cpukit/libmisc/ChangeLog7
-rw-r--r--cpukit/libmisc/dumpbuf/dumpbuf.h8
-rw-r--r--cpukit/libmisc/fsmount/fsmount.h10
-rw-r--r--cpukit/libmisc/rtmonuse/rtmonuse.h8
-rw-r--r--cpukit/libmisc/serdbg/serdbg.h7
-rw-r--r--cpukit/libmisc/serdbg/serdbgcnf.h8
-rw-r--r--cpukit/libmisc/serdbg/termios_printk.h9
-rw-r--r--cpukit/libmisc/serdbg/termios_printk_cnf.h8
-rw-r--r--cpukit/libmisc/untar/untar.h6
9 files changed, 71 insertions, 0 deletions
diff --git a/cpukit/libmisc/ChangeLog b/cpukit/libmisc/ChangeLog
index 58679722d5..ad72c22e50 100644
--- a/cpukit/libmisc/ChangeLog
+++ b/cpukit/libmisc/ChangeLog
@@ -1,3 +1,10 @@
+2004-09-17 Joel Sherrill <joel@OARcorp.com>
+
+ PR 677/misc
+ * dumpbuf/dumpbuf.h, fsmount/fsmount.h, rtmonuse/rtmonuse.h,
+ serdbg/serdbg.h, serdbg/serdbgcnf.h, serdbg/termios_printk.h,
+ serdbg/termios_printk_cnf.h, untar/untar.h: Add extern C wrappers.
+
2003-12-11 Joel Sherrill <joel@OARcorp.com>
PR 540/rtems_misc
diff --git a/cpukit/libmisc/dumpbuf/dumpbuf.h b/cpukit/libmisc/dumpbuf/dumpbuf.h
index bcdf4d56ee..965d1297d0 100644
--- a/cpukit/libmisc/dumpbuf/dumpbuf.h
+++ b/cpukit/libmisc/dumpbuf/dumpbuf.h
@@ -12,10 +12,18 @@
#ifndef __DUMP_BUFFER_h
#define __DUMP_BUFFER_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void Dump_Buffer(
unsigned char *buffer,
int length
);
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */
diff --git a/cpukit/libmisc/fsmount/fsmount.h b/cpukit/libmisc/fsmount/fsmount.h
index 18192df3ef..5c65998ae0 100644
--- a/cpukit/libmisc/fsmount/fsmount.h
+++ b/cpukit/libmisc/fsmount/fsmount.h
@@ -21,12 +21,18 @@
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 02.07.03 creation doe |
\*===============================================================*/
+
#ifndef _FSMOUNT_H
#define _FSMOUNT_H
+
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* bits to define, what errors will cause reporting (via printf) and
* abort of mount processing
@@ -68,4 +74,8 @@ int rtems_fsmount
| 0, if success, -1 and errno if failed |
\*=========================================================================*/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FSMOUNT_H */
diff --git a/cpukit/libmisc/rtmonuse/rtmonuse.h b/cpukit/libmisc/rtmonuse/rtmonuse.h
index f0580a4f0b..6add6402e6 100644
--- a/cpukit/libmisc/rtmonuse/rtmonuse.h
+++ b/cpukit/libmisc/rtmonuse/rtmonuse.h
@@ -5,6 +5,10 @@
#ifndef __RATE_MONOTONIC_USAGE_h
#define __RATE_MONOTONIC_USAGE_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void Period_usage_Initialize( void );
void Period_usage_Reset( void );
@@ -15,4 +19,8 @@ void Period_usage_Update(
void Period_usage_Dump( void );
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/cpukit/libmisc/serdbg/serdbg.h b/cpukit/libmisc/serdbg/serdbg.h
index 3cc95b5b96..41f8743324 100644
--- a/cpukit/libmisc/serdbg/serdbg.h
+++ b/cpukit/libmisc/serdbg/serdbg.h
@@ -25,6 +25,9 @@
#include <rtems.h>
#include <termios.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef struct {
unsigned32 baudrate; /* debug baud rate, e.g. 57600 */
void (*callout)(void); /* callout pointer during polling */
@@ -171,4 +174,8 @@ int getDebugChar
| received character |
\*=========================================================================*/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _SERDBG_H */
diff --git a/cpukit/libmisc/serdbg/serdbgcnf.h b/cpukit/libmisc/serdbg/serdbgcnf.h
index c03f56d9b0..4063fa6025 100644
--- a/cpukit/libmisc/serdbg/serdbgcnf.h
+++ b/cpukit/libmisc/serdbg/serdbgcnf.h
@@ -24,6 +24,10 @@
#include "serdbg.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef CONFIGURE_INIT
/*
@@ -78,4 +82,8 @@ int serdbg_init(void) {
#endif /* CONFIGURE_INIT */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _SERDBGCNF_H */
diff --git a/cpukit/libmisc/serdbg/termios_printk.h b/cpukit/libmisc/serdbg/termios_printk.h
index 51446aca4b..0357d94486 100644
--- a/cpukit/libmisc/serdbg/termios_printk.h
+++ b/cpukit/libmisc/serdbg/termios_printk.h
@@ -25,6 +25,10 @@
#include <rtems.h>
#include <termios.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
unsigned32 baudrate; /* debug baud rate, e.g. 57600 */
void (*callout)(void); /* callout pointer during polling */
@@ -92,4 +96,9 @@ int termios_printk_open
| Return Value: |
| 0 on success, -1 and errno otherwise |
\*=========================================================================*/
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _TERMIOS_PRINTK_H */
diff --git a/cpukit/libmisc/serdbg/termios_printk_cnf.h b/cpukit/libmisc/serdbg/termios_printk_cnf.h
index 73ad1e112e..7c0291b30f 100644
--- a/cpukit/libmisc/serdbg/termios_printk_cnf.h
+++ b/cpukit/libmisc/serdbg/termios_printk_cnf.h
@@ -24,6 +24,10 @@
#include "termios_printk.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef CONFIGURE_INIT
/*
@@ -67,4 +71,8 @@ int termios_printk_init(void) {
#endif /* CONFIGURE_INIT */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _TERMIOS_PRINTK_CNF_H */
diff --git a/cpukit/libmisc/untar/untar.h b/cpukit/libmisc/untar/untar.h
index 69c4d41ddf..bd6e202e9d 100644
--- a/cpukit/libmisc/untar/untar.h
+++ b/cpukit/libmisc/untar/untar.h
@@ -11,6 +11,9 @@
#ifndef __UNTAR_H__
#define __UNTAR_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
#define UNTAR_SUCCESSFUL 0
#define UNTAR_FAIL 1
@@ -21,5 +24,8 @@
int Untar_FromMemory(unsigned char *tar_buf, unsigned long size);
int Untar_FromFile(char *tar_name);
+#ifdef __cplusplus
+}
+#endif
#endif /* __UNTAR_H__ */