]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
file.c: Add realpath() stub.
authorFelipe Huici <felipe.huici@neclab.eu>
Tue, 3 Sep 2019 09:47:56 +0000 (11:47 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 3 Sep 2019 18:50:56 +0000 (21:50 +0300)
Add stub for realpath() needed by the upcoming Micropython port.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
file.c

diff --git a/file.c b/file.c
index 3fdf99a8c1f4dc453ca3c6fa829f098f2c50903f..156667920151c487528a446cd6e3039afceb2858 100644 (file)
--- a/file.c
+++ b/file.c
@@ -47,6 +47,7 @@
 #include <sys/stat.h>
 #include <errno.h>
 #undef errno
+#include <stdlib.h>
 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;
+}