[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/NEWLIB PATCH] Exports lstat and mknod


  • To: gaulthier gain <gaulthier.gain@xxxxxxxxx>, minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Mon, 5 Aug 2019 17:00:13 +0200
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, Sharan.Santhanam@xxxxxxxxx
  • Delivery-date: Mon, 05 Aug 2019 15:00:24 +0000
  • Ironport-phdr: 9a23:cgj/TBKYXhfKG36Wo9mcpTZWNBhigK39O0sv0rFitYgXKvX9rarrMEGX3/hxlliBBdydt6sezbOO7OuwACQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagf79+Ngi6oRnTu8UZgoZuN7s6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gyocKTU37H/YhdBxjKJDoRKuuRp/w5LPYIqIMPZyZ77Rcc8GSWZEWMtaSi5PDZ6mb4YXEuQPI+hYoYn+qVUAoxSxCgujC//gxDJTmn/737c33/g9HQzI3gEtGc8FvnTOrNXyMacfSf64zK7TzTXfbvNW3yr25o7VchA5vPGHQLV9ftbWyUk0CwPFj1OQpZbhPzOIzuQNrnOW4PZ7Ve61k24nthp+riK1xscrk4TEgJ8exFPc9Shh3Yo4KsC0RFR4bNOkCpdcqT+WOolsTs4sW21lvCg3xqcJtJKnZiQG1ZAqywLFZ/GDfIWF5A/oWvyLLjdinn1lfaqyhxO18Ue91OLxTtK00FNWripdldnMq2wN2wTT6seZTvt9+V+s2SiK1w/J6+FEJVo4mrbAK5I72r4wi4EcvV7ZHi/xgEn2jamWeVs4+uWw9ujqbajqqoWfOoJ0kA3yLLoil86lDek2KgQOWnKU+eW41L3t5035R7BKg+Uqnaneq5DaOcUbpqijDw9Rz4Yj8wu/Aiy639QDh3UHNE9Fdwmdg4jzPFHCOOr4Auung1SwjDdrwOjLPrjgApXLL3jDl6zhca9g5EFC1go809Rf6olQCrEAO/LzRlTxuMbXDxAnNQy42eHnCM9y1okGQ2KAHreZML/OsV+P/u8hPumMa5UPuDnnLfgp/ePggmU/mV8Bfammx50XZ2q9Hvl9JUWWf2bjgtMbHmgRpAYxUvHqgkWYUTFPf3ayQ7485jYjBYKoE4jDQoGtgKSf0yuhHp1We2FGBUyNEXrzcYWLResDaCaILcB6iDALS6WhQZc71R6yrA/616ZnLu3M9y0DtJLj0d915+vJmREx6Dx7EcKd0mCTQGFuhW4IQSE507x7oUNn0ViPy7Z3g+FAH9xJ+/xJShs6NYLbz+FiBND9QB/BftOVSFamQ9WpHysxQsg+w9AUYkZ9Hc6vjg3H3yqrHbAVmKKECIYv/a3CjDDNIJNywmvCyKkggkNuTcJOMyXyiadi8xTTBoPT1UqQlqCCaKAd0SHAsm2Omy7GuUBeUQlrFKnIQ30bTk/XtsjioFPPSfmpE7t0HBFGzJupLbBWa9uhqUheWb+3M9PFf2O33WOtHQugzajKdJfgPX8ainaOQHMYmhweqC7VfTM1AT2s9ieHVGRj
  • Ironport-sdr: J78CjHJWNlh3Pfipx8Md1svvxu3Lj1OpDGUwjdB0nYHXiJT8QzzU47677maewdr02t5az8k15b 7f55CjtjvaJg==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Thanks for this v2, Gaulthier!

Reviewed-by: Costin Lupu <costin.lupu@xxxxxxxxx>

On 8/5/19 2:14 PM, gaulthier gain wrote:
> From: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
> 
> This patch exports lstat and mknod declaration and allows to
> support sqlite.
> 
> Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
> ---
>  ...s-stat.h-fix-lstat_mknod-declaration.patch | 26 +++++++++++++++++++
>  1 file changed, 26 insertions(+)
>  create mode 100644 patches/0005-sys-stat.h-fix-lstat_mknod-declaration.patch
> 
> 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
> index 0000000..8c4f102
> --- /dev/null
> +++ b/patches/0005-sys-stat.h-fix-lstat_mknod-declaration.patch
> @@ -0,0 +1,26 @@
> +From 272e94f69597a1f4c789b345976c293ca63f70c5 Mon Sep 17 00:00:00 2001
> +From: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
> +Date: Mon, 5 Aug 2019 08:27:22 +0000
> +Subject: [PATCH] expose lstat/mknod declaration
> +
> +Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
> +---
> + 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
> +
> 

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.