PATCH] untar: do not exit with error when created directory already exists (fixes #2413).
--- cpukit/libmisc/untar/untar.c | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/libmisc/untar/untar.c b/cpukit/libmisc/untar/untar.c index aed8fed..4591a8b 100644 --- a/cpukit/libmisc/untar/untar.c +++ b/cpukit/libmisc/untar/untar.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -203,6 +204,13 @@ Untar_FromMemory( } } else if (linkflag == DIRTYPE) { if ( mkdir(fname, S_IRWXU | S_IRWXG | S_IRWXO) != 0 ) { +if (errno == EEXIST) { + struct stat stat_buf; + if ( stat(fname, &stat_buf) == 0 ) { +if ( S_ISDIR(stat_buf.st_mode) ) + continue; + } +} printk("Untar: failed to create directory %s\n", fname); retval = UNTAR_FAIL; break; -- 1.9.1 ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
PCI CAN interface emulation updated for QEMU 2.4
Hello everybody, the project implements simple CAN SJA1000 interface emulation with option to connect emulated CAN buses to host system SocketCAN bus. Project has been started by Jin Yang in frame of RTEMS provided GSoC 2013 slot. Code has been cleaned and is maintained to be up-to date with actual QEMU releases. I would be happy to follow suggestions and review for its possible mainlining if there is interrest. If preferred, I send patches inline to QEMU list. Code is available from https://github.com/CTU-IIG/qemu/tree/can-pci The "can-pci" branch has been updated for QEMU-2.4 now. The previous 2.3 support moved on "can-pci-2.3" branch. Older support and support for PCI MF624 data acquisition card can be found on merged branches merged-2.1, merged-2.3 and merged-2.4. https://github.com/CTU-IIG/qemu Documentation https://rtime.felk.cvut.cz/can/can-qemu/ https://devel.rtems.org/wiki/Developer/Simulators/QEMU/CANEmulation Relevant commits commit 2d873a9ed3bcb8301a247f36b77227b1cd9211c0 Author: Pavel Pisa Date: Mon Sep 7 15:24:56 2015 +0200 CAN bus simple SJA1000 PCI card emulation for QEMU The work is based on Jin Yang GSoC 2013 work funded by Google and mentored in frame of RTEMS project GSoC slot donated to QEMU. Rewritten for QEMU-2.0+ versions and architecture cleanup by Pavel Pisa (Czech Technical University in Prague). The core SJA1000 support is independent of provided PCI board. The simple core CAN bus infrastructure is independent as well. Connection to the real host CAN bus network through SocketCAN network interface is available for Linux host system as well. Signed-off-by: Pavel Pisa commit 3eda61e54b947f1508a05f8b67277dd717a8c963 Author: Pavel Pisa Date: Mon Sep 7 15:27:08 2015 +0200 CAN bus Kvaser PCI CAN-S (single SJA1000 channel) emulation added. Signed-off-by: Pavel Pisa Best wishes, Pavel Pisa ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel