forked from Imagelibrary/rtems
2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk(). * libcsupport/src/putk.c: New file.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk().
|
||||||
|
* libcsupport/src/putk.c: New file.
|
||||||
|
|
||||||
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* posix/src/killinfo.c: Make easier to map coverage data.
|
* posix/src/killinfo.c: Make easier to map coverage data.
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ extern BSP_polling_getchar_function_type BSP_poll_char;
|
|||||||
extern int getchark(void);
|
extern int getchark(void);
|
||||||
extern void vprintk(const char *fmt, va_list ap);
|
extern void vprintk(const char *fmt, va_list ap);
|
||||||
extern void printk(const char *fmt, ...);
|
extern void printk(const char *fmt, ...);
|
||||||
|
extern void putk(const char *s);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This routine is passed into RTEMS reporting functions
|
* This routine is passed into RTEMS reporting functions
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
|
|||||||
BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
|
BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c
|
||||||
|
|
||||||
libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
|
libcsupport_a_SOURCES = src/gxx_wrappers.c src/getchark.c src/printk.c \
|
||||||
src/printk_plugin.c src/vprintk.c \
|
src/printk_plugin.c src/putk.c src/vprintk.c \
|
||||||
$(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
|
$(BSD_LIBC_C_FILES) $(BASE_FS_C_FILES) $(MALLOC_C_FILES) \
|
||||||
$(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
|
$(ERROR_C_FILES) $(ASSOCIATION_C_FILES)
|
||||||
|
|
||||||
|
|||||||
30
cpukit/libcsupport/src/putk.c
Normal file
30
cpukit/libcsupport/src/putk.c
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
/*
|
||||||
|
* COPYRIGHT (c) 1989-2007.
|
||||||
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <rtems/bspIo.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* putk
|
||||||
|
*
|
||||||
|
* Kernel putk (e.g. puts) function requiring minimal infrastrure.
|
||||||
|
*/
|
||||||
|
void putk(const char *s)
|
||||||
|
{
|
||||||
|
const char *p = s;
|
||||||
|
|
||||||
|
for (p=s ; *p ; p++ )
|
||||||
|
BSP_output_char(*p);
|
||||||
|
BSP_output_char('\n');
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user