if function or stack are NULL, make sure errno is set to EINVAL
if function or stack are NULL, make sure errno is set to EINVAL

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc