[PATCH] librt: Add shm_open and shm_unlink + testcase

Carmelo Amoroso carmelo73 at gmail.com
Wed Feb 4 15:47:47 UTC 2009


Mikael Lund Jepsen, ICCC wrote:
> Hi all,
> I've made a number of changes since my original post, taking both Joakim
> and Bernards changes into consideration.
> I hope they address their concerns properly. Most importantly, I now
> malloc a buffer of an appropriate size instead of statically allocating
> one as in the original newlib implementation.
> 
> The test code compiles fine within the test suite (make check), but I
> seem unable to test the exact compile made by the suite, as I am cross
> compiling for arm.
in cross compialation, you must go in two steps:

first build:

make UCLIBC_ONLY=y TEST_INSTALLED_UCLIBC=y test_compile

then install tests on the target (look at nptl branch Makefile.in
where there is a istall_test target not available on trunk... likely I'll add it too)

and on target run

make UCLIBC_ONLY=y run

> Uploading the test app to my target does not work as the lib paths are
> then of course wrong.
you should compile tests with TEST_INSTALLED_UCLIBC=y so that the INTERP
entry in the ELF will looks like /lib/ld-uClibc.so.0 instead on pointing
to the full path on the build machine

 Compiling "manually" with my toolchain (i.e. not
> using the test suite make system) works fine - and also passes the test
> when run on my target. Am I missing something in the way I compile/setup
> the test suite?
> 
> For convenience, as requested by Bernard:
>   text    data     bss     dec     hex filename
>    264       0       0     264     108 librt/shm_open.os
>    172       0       0     172      ac librt/shm_unlink.os
> 
> Please take a look and let me know if I should change anything.
> Thanks,
> Mikael
> 

Cheers,
Carmelo
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc



More information about the uClibc mailing list