예제 #1
0
파일: libc.c 프로젝트: klaesra/osmgopgaver
/***
 * Writes a null terminated string to the polling TTY. This routine is
 * used for kernel messages. User program prints should use the
 * interrupt driven TTY drivers.
 *
 * @param s The null-terminated string to be printed.
 */
void kwrite(char *s)
{
    while(*s) {
        polltty_putchar(*s);
        s++;
    }
}
예제 #2
0
파일: xprintf.c 프로젝트: ttsoftware/OSM
/* output the given char either to the string or to the TTY */
static void printc(char *buf, char c, int flags) {
    if (flags & FLAG_TTY) {
	/* do not output (terminating) zeros to TTY */
	if (c != '\0') polltty_putchar(c); /* synched in k(v)printf */
    } else
	*buf = c;
}
예제 #3
0
파일: syscall.c 프로젝트: kazyka/2aar
int syscall_write(const char *buffer, int length) {
  /* Not a G1 solution! */
  for (int i = 0; i < length; i++, *buffer++) polltty_putchar(*buffer);
  return length;
}