[RFC 1/1] Fix varargs in prctl syscall
Mike Frysinger
vapier at gentoo.org
Mon Jul 20 12:50:25 UTC 2009
On Friday 12 September 2008 09:34:14 Hans-Christian Egtvedt wrote:
> prctl is defined to use varargs in the header file, but implemented to use
> varargs in the source.
i'm guessing you meant "not implemented" in the second part ...
> This patch properly handles the variodic argument
> before the syscall is passed to the kernel.
i dont see why this is needed ? are you seeing an actual bug or you just
noticed it and thought you'd fix it ?
afaict, there is nothing wrong here. variodic function calls have the same
calling convention as non-variodic function calls. presumably the kernel isnt
going to check arg2 unless the option is appropriate, and passing along a non-
zero value shouldnt be a problem anyways.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090720/24a88c07/attachment.pgp>
More information about the uClibc
mailing list