diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-12-13 03:40:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-12-13 03:40:19 +0000 |
commit | 495818ceb43678769e35c5ec0a0dc2a27eb62111 (patch) | |
tree | 5408ca4ddda3557ce2ff757a4b12617bd25f08fa /nis/nis_intern.h | |
parent | 122484e4cd78c0748c8f90e5ebeee9c9fa28ebf4 (diff) | |
download | glibc-495818ceb43678769e35c5ec0a0dc2a27eb62111.tar.gz glibc-495818ceb43678769e35c5ec0a0dc2a27eb62111.tar.xz glibc-495818ceb43678769e35c5ec0a0dc2a27eb62111.zip |
Update.
2001-12-12 Ulrich Drepper <drepper@redhat.com> * nis/nis_findserv.c (__nis_findfastest_with_timeout): Mostly the code from __nis_findfastest. Take timeout value from parameter. (__nis_findfastest): Call __nis_findfastest_with_timeout repeatedly. * nis/nis_intern.h: Define parameters controlling __nis_findfastest. Patch by Alexander Belopolsky <alexb@rentec.com>. * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix typo in last patch.
Diffstat (limited to 'nis/nis_intern.h')
-rw-r--r-- | nis/nis_intern.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/nis/nis_intern.h b/nis/nis_intern.h index 53413eaae5..29a80a9188 100644 --- a/nis/nis_intern.h +++ b/nis/nis_intern.h @@ -1,4 +1,4 @@ -/* Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. +/* Copyright (c) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997. @@ -22,6 +22,22 @@ #define __NIS_INTERN_H #include <features.h> +/* Configurable parameters for pinging NIS servers: */ + +/* Number of retries. */ +#ifndef __NIS_PING_RETRY +# define __NIS_PING_RETRY 2 +#endif +/* Initial timeout in seconds. */ +#ifndef __NIS_PING_TIMEOUT_START +# define __NIS_PING_TIMEOUT_START 3 +#endif +/* Timeout increment for retries in seconds. */ +#ifndef __NIS_PING_TIMEOUT_INCREMENT +# define __NIS_PING_TIMEOUT_INCREMENT 3 +#endif + + __BEGIN_DECLS struct nis_cb |