[LTP] [PATCH v3] Add new tests for clone and clone3
Petr Vorel
pvorel@suse.cz
Tue Nov 18 15:54:45 CET 2025
Hi Stephen,
...
> > > +/*\
> > > + * This test verifies that clone() fals with EPERM when CAP_SYS_ADMIN
> > s/fals/fails/
> > If new version is needed, could you please use :man2:`clone` ?
> > This will link man clone(2) [2] in our test catalog [3].
> So I'm clear, a lot is new to me here, I should replace "clone()" with
> :man:`clone`
> Will the same work for clone3? i.e. :man:`clone3`?
FYI man2 is for man 2 section, man 3 is for man 3 section:
doc/conf.py
'man2': ('https://man7.org/linux/man-pages/man2/%s.2.html', '%s(2)'),
'man3': ('https://man7.org/linux/man-pages/man3/%s.3.html', '%s(3)'),
i.e. :man2:`clone` leads to man clone(2)
https://man7.org/linux/man-pages/man2/clone.2.html
which describes both syscalls:
clone, __clone2, clone3 - create a child process
But sure man clone3(2) links also works (the same page as man clone(2)).
https://man7.org/linux/man-pages/man2/clone3.2.html
FYI (if you have time) this should generate doc
$ cd doc; make setup && make
which is under ./html/users/test_catalog.html
and online:
https://linux-test-project.readthedocs.io/en/latest/users/test_catalog.html
> I understand the other comments and will implement them, nit or not :).
Thank you!
Kind regards,
Petr
More information about the ltp
mailing list