]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Exports lstat and mknod
authorGaulthier Gain <gaulthier.gain@uliege.be>
Mon, 5 Aug 2019 12:14:28 +0000 (14:14 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 6 Aug 2019 10:21:22 +0000 (12:21 +0200)
This patch exports lstat and mknod declaration and allows to
support sqlite.

Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
patches/0005-sys-stat.h-fix-lstat_mknod-declaration.patch [new file with mode: 0644]

diff --git a/patches/0005-sys-stat.h-fix-lstat_mknod-declaration.patch b/patches/0005-sys-stat.h-fix-lstat_mknod-declaration.patch
new file mode 100644 (file)
index 0000000..8c4f102
--- /dev/null
@@ -0,0 +1,26 @@
+From 272e94f69597a1f4c789b345976c293ca63f70c5 Mon Sep 17 00:00:00 2001
+From: Gaulthier Gain <gaulthier.gain@uliege.be>
+Date: Mon, 5 Aug 2019 08:27:22 +0000
+Subject: [PATCH] expose lstat/mknod declaration
+
+Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
+---
+ newlib/libc/include/sys/stat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
+index a09f2f0..f2a663a 100644
+--- a/newlib/libc/include/sys/stat.h
++++ b/newlib/libc/include/sys/stat.h
+@@ -132,7 +132,7 @@ int _EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __sbuf
+ int   _EXFUN(stat,( const char *__restrict __path, struct stat *__restrict __sbuf ));
+ mode_t        _EXFUN(umask,( mode_t __mask ));
+-#if defined (__SPU__) || defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
++#if defined (__SPU__) || defined(__rtems__) || defined(__Unikraft__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
+ int   _EXFUN(lstat,( const char *__restrict __path, struct stat *__restrict __buf ));
+ int   _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
+ #endif
+-- 
+2.17.1
+