X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fos.h;h=049b248c5b016fe59e050cac153300202b071889;hb=9dbaebcf9f401c5dcea762e34a3dc8ed10760623;hp=2bf4bdb1b8369a48b3c3f6ec89d8889b97bd685c;hpb=470135be276b2d92c6da464c68839202d4ff0d08;p=u-boot diff --git a/include/os.h b/include/os.h index 2bf4bdb1b8..049b248c5b 100644 --- a/include/os.h +++ b/include/os.h @@ -240,6 +240,26 @@ const char *os_dirent_get_typename(enum os_dirent_t type); */ int os_get_filesize(const char *fname, loff_t *size); +/** + * Write a character to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param ch Character to write + */ +void os_putc(int ch); + +/** + * Write a string to the controlling OS terminal + * + * This bypasses the U-Boot console support and writes directly to the OS + * stdout file descriptor. + * + * @param str String to write (note that \n is not appended) + */ +void os_puts(const char *str); + /** * Write the sandbox RAM buffer to a existing file *