Hi,

You're right.
Current getcontext returns -1 after setting errno as ENOSYS.
The solution has become easier and simpler. I just tested and verified it.

I will submit a new patch soon after changing the title and commit messages.
If you think that we need a feature for libc version comparison for the
future usage, I will submit it too as an extra patch.

Thanks for the advise.

Regards,

Honggyu Kim


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, October 23, 2013 7:55 PM
To: Honggyu Kim
Cc: [email protected]
Subject: Re: [LTP] [PATCH v2] getcontext01: fix to check libc version for
ARM

Hi!
> getcontext function is implemented from libc-2.17 in ARM.
> Currently, getcontext01 goes to TFAIL because getcontext just returns 
> -1 in the previous libc for ARM.
> This patch makes getcontext01 as TCONF when libc version is less than 
> 2.17.

Does the setcontext() set errno to ENOSYS after the failure? If so it would
be much easier (and more general solution) to just add a test for errno ==
ENOSYS and return TCONF if so.

--
Cyril Hrubis
[email protected]


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to