]> git.ipfire.org Git - thirdparty/glibc.git/commit
support: Add support_open_dev_null_range
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 24 Aug 2021 19:12:24 +0000 (16:12 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 26 Aug 2021 20:13:45 +0000 (17:13 -0300)
commite814f4b04ee413a7bb3dfa43e74c8fb4abf58359
treed83648696fae2c7a8ee71da52297bed7dafe06c6
parent5aa359d33163bde660fec9b26e23cfb93d63ecde
support: Add support_open_dev_null_range

It returns a range of file descriptor referring to the '/dev/null'
pathname.  The function takes care of restarting the open range
if a file descriptor is found within the specified range and
also increases RLIMIT_NOFILE if required.

Checked on x86_64-linux-gnu.
support/Makefile
support/support-open-dev-null-range.c [new file with mode: 0644]
support/support.h
support/tst-support-open-dev-null-range.c [new file with mode: 0644]