1 --- export/src/readline.c 2009-09-23 22:55:51.000000000 +0200
2 +++ ../src/readline.c 2009-09-23 23:04:26.000000000 +0200
4 * POSSIBILITY OF SUCH DAMAGE.
10 #if !defined(lint) && !defined(SCCSID)
11 __RCSID("$NetBSD: readline.c,v 1.85 2009/09/07 21:24:33 christos Exp $");
12 #endif /* not lint && not SCCSID */
22 -#include "readline/readline.h"
23 +#include "editline/readline.h"
25 #include "fcns.h" /* for EL_NUM_FCNS */
27 #include "filecomplete.h"
29 +#if !defined(SIZE_T_MAX)
30 +# define SIZE_T_MAX (size_t)(-1)
33 void rl_prep_terminal(int);
34 void rl_deprep_terminal(void);
37 return (HIST_ENTRY *) NULL;
41 + rl_he.data = (histdata_t) &(ev.num);
47 username_completion_function(const char *text, int state)
49 - struct passwd *pwd, pwres;
59 - while (getpwent_r(&pwres, pwbuf, sizeof(pwbuf), &pwd) == 0
60 - && pwd != NULL && text[0] == pwd->pw_name[0]
61 - && strcmp(text, pwd->pw_name) == 0);
62 + while ((pwd = getpwent())
63 + && pwd != NULL && text[0] == pwd->pw_name[0]
64 + && strcmp(text, pwd->pw_name) == 0);