[PATCH 1/2] Filesystem: Add and use rtems_filesystem_chmod()

2013-09-11 Thread Sebastian Huber
Implement POSIX requirements in the high-level file system layer. --- cpukit/libcsupport/include/rtems/libio_.h |5 +++ cpukit/libcsupport/src/chmod.c|2 +- cpukit/libcsupport/src/fchmod.c | 49 - cpukit/libfs/src/imfs/imfs_fchmod.c

[PATCH 2/2] Filesystem: Change rtems_filesystem_chown()

2013-09-11 Thread Sebastian Huber
Implement POSIX requirements in the high-level file system layer. Use common implementation for all change owner variants. --- cpukit/libcsupport/include/rtems/libio_.h |5 +-- cpukit/libcsupport/src/chown.c| 25 -- cpukit/libcsupport/src/fchown.c | 52 ++

RE: Coverity CID: 1063861

2013-09-11 Thread Joel Sherrill
The issues coverity spots are often hard to figure out the root cause. Sometimes it is obvious but I know Chris and I struggled with at least one the last time we and through this drill. Don't get discouraged. :) "Rempel, Cynthia" wrote: > >From: Chr

Re: Coverity CID: 1063861

2013-09-11 Thread Gedare Bloom
Thanks Cynthia. This looks OK to me. Chris? -Gedare On Tue, Sep 10, 2013 at 11:30 PM, Rempel, Cynthia wrote: >> >>From: Chris Johns [chr...@rtems.org] >>Sent: Tuesday, September 10, 2013 2:53 PM >>To: Gedare Bloom >>Cc: Rempel, Cynthia; rtems-devel@rtems.o

Static vs dynamic resource allocation

2013-09-11 Thread Wendell Silva
Dears, I'm creating an API following the same "convention" (ORKID like) as RTEMS classic API does. That is: - xxx_initialize() - xxx_create() - xxx_ident() etc. In the xxx_initialize() function what is better: a) to use malloc/calloc functions to allocate the object list, limited by some

[PATCH 3/6] libmm-libbsp-shared. Files shared between all target BSPs and low-level implementations for libmm. These shared files contain mm.h which is a link between high-level score api and low-leve

2013-09-11 Thread Hesham AL-Matary
--- c/src/lib/libbsp/shared/include/mm.h | 36 +++ c/src/lib/libbsp/shared/src/no_memorymanagement.c | 21 + 2 files changed, 57 insertions(+) create mode 100644 c/src/lib/libbsp/shared/include/mm.h create mode 100644 c/src/lib/libbsp/shared/src/no_me

[PATCH 6/6] libmm-test-cases. mmtest1 defines some memory regions and call libmm API to apply attributes for these regions. mmtest2 defines memory regions with attributes, set it up, and trigger some

2013-09-11 Thread Hesham AL-Matary
--- testsuites/libtests/Makefile.am | 3 +- testsuites/libtests/configure.ac| 2 + testsuites/libtests/mmtest1/Makefile.am | 18 +++ testsuites/libtests/mmtest1/init.c | 45 ++ testsuites/libtests/mmtest1/mmtest1.doc | 1 + testsuites/libtests/mmtest1/mm

[PATCH 2/6] arm-cp15-new-definitions New definitions for arm-cp15 Fault Status Register and ARMv6 control register.

2013-09-11 Thread Hesham AL-Matary
--- c/src/lib/libcpu/arm/shared/include/arm-cp15.h | 21 + 1 file changed, 21 insertions(+) diff --git a/c/src/lib/libcpu/arm/shared/include/arm-cp15.h b/c/src/lib/libcpu/arm/shared/include/arm-cp15.h index 0117a5e..badf96e 100644 --- a/c/src/lib/libcpu/arm/shared/include/arm

[PATCH 4/6] libmm-libbsp-arm-shared. libmm low-level implementation that can be shared between many ARM targets. mminit.c contains initialization function for arm-cp15 and setup page tables. After tha

2013-09-11 Thread Hesham AL-Matary
--- .../lib/libbsp/arm/shared/include/arm-cp15-start.h | 11 -- c/src/lib/libbsp/arm/shared/mm.c | 46 ++ c/src/lib/libbsp/arm/shared/mminit.c | 27 + 3 files changed, 80 insertions(+), 4 deletions(-) create mode 100644 c/src/lib