Re: [PATCH v2] close_range.2: new page documenting close_range(2)

From: Christian Brauner
Date: Sat Dec 12 2020 - 07:17:18 EST


On Thu, Dec 10, 2020 at 01:24:28AM +0100, Alejandro Colomar (man-pages) wrote:
> Hi Stephen,
>
> A few more comments below.
>
> Michael, please have a look at them too.
>
> Christian, do you have any program that you used to test the syscall
> that could be added as an example program to the page?

As with all non-trivial feature patchsets going through my tree we've
added selftests. :)

tools/testing/selftests/core/close_range_test.c

It should be fairly simply to extract a tinified example from there.

Thanks!
Christian