diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-04 15:13:41 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-03-21 15:46:48 -0300 |
commit | 1894e219dc530d7074085e95ffe3c1e66cebc072 (patch) | |
tree | 38f725283bca1b4e545d25f0fbff8308e737979b /hurd | |
parent | 855561a1fbc601aa6c373c8a036d472cb52786e7 (diff) | |
download | glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.zip glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.tar.gz glibc-1894e219dc530d7074085e95ffe3c1e66cebc072.tar.bz2 |
Remove eloop-threshold.h
On both Linux and Hurd the __eloop_threshold() is always a constant
(40 and 32 respectively), so there is no need to always call
__sysconf (_SC_SYMLOOP_MAX) for Linux case (!SYMLOOP_MAX). To avoid
a name clash with gnulib, rename the new file min-eloop-threshold.h.
Checked on x86_64-linux-gnu and with a build for x86_64-gnu.
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/lookup-retry.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/lookup-retry.c b/hurd/lookup-retry.c index 6b94a10..ac8925e 100644 --- a/hurd/lookup-retry.c +++ b/hurd/lookup-retry.c @@ -24,7 +24,7 @@ #include <fcntl.h> #include <string.h> #include <_itoa.h> -#include <eloop-threshold.h> +#include <min-eloop-threshold.h> #include <unistd.h> /* Translate the error from dir_lookup into the error the user sees. */ @@ -113,7 +113,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) /* Fall through. */ case FS_RETRY_NORMAL: - if (nloops++ >= __eloop_threshold ()) + if (nloops++ >= MIN_ELOOP_THRESHOLD) { __mach_port_deallocate (__mach_task_self (), *result); err = ELOOP; @@ -207,7 +207,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port) dirport = INIT_PORT_CRDIR; if (*result != MACH_PORT_NULL) __mach_port_deallocate (__mach_task_self (), *result); - if (nloops++ >= __eloop_threshold ()) + if (nloops++ >= MIN_ELOOP_THRESHOLD) { err = ELOOP; goto out; |