Adding shared memory implementation
Mikael Lund Jepsen, ICCC
mlj at iccc.dk
Fri Jan 16 11:12:02 UTC 2009
Hi all,
This patch adds shm_open() and shm_unlink() to librt.
For my own purposes, I have git'ed uclibc and made the patch from there,
so let me know if you need it in another format.
The included testapp simply creates shared memory area in a parent
process, writes test data to it and opens and verifies the data in a
forked child process.
Thanks,
Mikael
Carmelo AMOROSO skrev:
> Mikael Lund Jepsen, ICCC wrote:
>> Hi all,
>> I cannot see the shm_open / shm_unlink functions implemented in librt.
>> Is there any reason (bloat, ?) for not including these?
>>
> as simply it is reported in uClibc_vs_SuSv3.txt, they are optional and
> simply not implemented until now.
>
>> I've tried taking shm_open.c and shm_unlink.c from newlib and dropped
>> them in librt, and so far it seems to be working as expected. I have
>> not done any extensive tests though.
>>
>> Any interest?
>>
> please post your patches as well test cases for review and inclusion.
>> Thanks
>> Mikael
> cheers,
> carmelo
>> _______________________________________________
>> uClibc mailing list
>> uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc
>>
>
--
Mikael Lund Jepsen, Software Engineer
ICCC A/S, Telegrafvej 5 B, 2750 Ballerup, DENMARK
Phone: +45 44 86 04 00
Direct: +45 44 86 04 25
Fax: +45 44 86 03 99
Email: mlj at iccc.dk <mailto:mlj at iccc.dk>
Web: www.iccc.dk <http://www.iccc.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20090116/9f36cdf7/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iccc.gif
Type: image/gif
Size: 2102 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20090116/9f36cdf7/attachment-0001.gif
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shmtest.c
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20090116/9f36cdf7/attachment-0002.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Add-shm_open.c-and-shm_unlink.c-to-librt.patch
Url: http://lists.busybox.net/pipermail/uclibc/attachments/20090116/9f36cdf7/attachment-0003.diff
More information about the uClibc
mailing list