From: Felipe Huici Date: Tue, 3 Sep 2019 09:47:56 +0000 (+0200) Subject: file.c: Add realpath() stub. X-Git-Tag: RELEASE-0.4~45 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5e42693d7ff5ad2babb476d4aa0203178d11b6ff;p=unikraft%2Flibs%2Fnewlib.git file.c: Add realpath() stub. Add stub for realpath() needed by the upcoming Micropython port. Signed-off-by: Felipe Huici Reviewed-by: Costin Lupu --- diff --git a/file.c b/file.c index 3fdf99a..1566679 100644 --- a/file.c +++ b/file.c @@ -47,6 +47,7 @@ #include #include #undef errno +#include extern int errno; #define STDIN_FILENO 0 /* standard input file descriptor */ @@ -117,3 +118,8 @@ int pipe(int pipefd[2] __unused) { return 0; } + +char *realpath(const char *restrict file_name, char *restrict resolved_name) +{ + return 0; +}