Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/libc/kio.c

Go to the documentation of this file.
00001 /*  src_experimental/libc/kio.c
00002    CubeOS Version 0.4.90 experimental
00003    Copyright (C) 1999,2000 Holger Kenn
00004 
00005    CubeOS is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or any later version.
00009 
00010    CubeOS is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015  */
00016 
00017 #include <stdio.h>
00018 #include <kio.h>
00019 
00027 /* Interface routines for OS */
00028 #define OK      1
00029 #define CONSOLE 0
00030 
00031 void TTY_outchar (char c);
00032 char TTY_inchar ();
00033 
00034 
00035 /* Internals */
00040 inline char _LIBC_inbyte ()
00041 {
00042         return (TTY_inchar ());
00043 }
00044 
00049 inline void _LIBC_outbyte (char c)
00050 {
00051         TTY_outchar (c);
00052 }
00053 
00058 void LIBC_outstring (char *str)
00059 {
00060         char *ptr;
00061 
00062         ptr = str;
00063         while (ptr[0] != (char) 0)
00064                 TTY_outchar (*ptr++);
00065 
00066 }
00067 
00068 
00073 void _exit (int status)
00074 {
00075         printf ("\n\r **** PROGRAM EXIT ****");
00076         printf ("\n\r **** EXIT CODE %d ****\n\r", status);
00077 }

Generated on Thu Feb 20 15:38:45 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002