aboutsummaryrefslogtreecommitdiff
path: root/support/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-08-24 16:12:24 -0300
committerMichael Hudson-Doyle <michael.hudson@canonical.com>2021-09-21 22:26:26 +1200
commit5ad589d63bc2d9b1fc3d9f32144acaebb85e0803 (patch)
tree550836a1896f7c46d62bcb9c1a41a13a1e0ba2f7 /support/Makefile
parent8b8a1d0b7375c547ae905917a03743ed6759c5bc (diff)
downloadglibc-5ad589d63bc2d9b1fc3d9f32144acaebb85e0803.tar.xz
glibc-5ad589d63bc2d9b1fc3d9f32144acaebb85e0803.zip
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. (cherry picked from commit e814f4b04ee413a7bb3dfa43e74c8fb4abf58359)
Diffstat (limited to 'support/Makefile')
-rw-r--r--support/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/Makefile b/support/Makefile
index ef2b1a980a..2a0731796f 100644
--- a/support/Makefile
+++ b/support/Makefile
@@ -66,6 +66,7 @@ libsupport-routines = \
support_path_support_time64 \
support_process_state \
support_ptrace \
+ support-open-dev-null-range \
support_openpty \
support_paths \
support_quote_blob \
@@ -265,6 +266,7 @@ tests = \
tst-support_capture_subprocess \
tst-support_descriptors \
tst-support_format_dns_packet \
+ tst-support-open-dev-null-range \
tst-support-process_state \
tst-support_quote_blob \
tst-support_quote_string \