[PATCH 2/2] posix: simplify paths and check errors in shm_open

2016-08-28 Thread Gedare Bloom
--- cpukit/posix/src/shmopen.c | 84 +++--- 1 file changed, 49 insertions(+), 35 deletions(-) diff --git a/cpukit/posix/src/shmopen.c b/cpukit/posix/src/shmopen.c index 7823785..cbea88c 100644 --- a/cpukit/posix/src/shmopen.c +++ b/cpukit/posix/src/shmopen.

Re: [PATCH 2/2] posix: simplify paths and check errors in shm_open

2016-08-26 Thread Gedare Bloom
I have added some error checks for the heap-backed shm implementation, and simplified the control flow to get all error checking done before allocating memory. I will eventually send a v2 patch series, but I wanted to show these self-contained fixes. I am looking into mmap support presently. On Fr