[RFC][PATCH] fix varargs usage in prctl syscall

Hans-Christian Egtvedt hans-christian.egtvedt at atmel.com
Mon Dec 8 15:55:39 UTC 2008


Hi all,

I'd like some feedback on the attached patch. The one I've attached now
will individually handle the prctl calls which uses arg2 and those who
do not. Checked up against Linux v2.6.27.

The solution is bad since it is locked against those prctl calls
available for a given kernel version. But there is (AFAIK) no way
of detecting the number of arguments given to prctl.

The way uClibc does it today is wrong, and does not work on AVR32
architecture.

For the record, prctl uses only arg2 at most, and there are some calls
which does not use arguments (see list in patch).

-- 
Best regards,
Hans-Christian Egtvedt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uClibc-0.9.30-fix-varargs-in-prctl-syscall.patch
Type: text/x-patch
Size: 909 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20081208/dbd0f60f/attachment-0002.bin 


More information about the uClibc mailing list