linux: Extend internal clone3 documentation
commit2fe58919a0bfd1064c59120520116237ba818ed3
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Thu, 12 Jan 2023 13:58:49 +0000 (12 10:58 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Feb 2023 11:42:11 +0000 (1 08:42 -0300)
tree475dba634f1a3e8febcd118adb5772c62b2cabb1
parentff9ffc805f5859f9f1fe3a006967b4cf7b191bb2
linux: Extend internal clone3 documentation

Different than kernel, clone3 returns EINVAL for NULL struct
clone_args or function pointer.  This is similar to clone
interface that return EINVAL for NULL function argument.

It also clean up the Linux clone3.h interface, since it not
currently exported.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
include/clone_internal.h
sysdeps/unix/sysv/linux/clone3.h