stdio: Replace FILE functions with filedescriptor functions
We have defined stdin, stdout and stderr as integer file descriptors,
but normally they should be FILE *. Also fprintf, fputc and fputs take
file descriptors instead of FILE *. As FILE * are inconvenient in the
barebox environment replace the f* functions with the corresponding d*
functions. dprintf is POSIX conform whereas dputc and dputs are barebox
specific, but do not conflict with any stdc function. fgetc is unused
and can be removed without replacing it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 473d6f8 commit 5559bfd2719f0b0795a6ce66b859d879271bb1e4
@Sascha Hauer Sascha Hauer authored on 14 Apr 2016
Showing 5 changed files
View
commands/echo.c
View
common/console.c
View
common/console_common.c
View
common/globalvar.c
View
include/stdio.h