2 libc of DJGPP 2.03 does not offer a pw_gecos entry,
3 so this version from DJGPP 2.04 CVS tree is supplied.
4 This file will become superflous and will be removed
5 from the distribution as soon as DJGPP 2.04 has been
9 /* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
10 /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
16 static char passwd
[] = "";
17 static char slash
[] = "/";
18 static char shell
[] = "sh";
21 getpwnam(const char *name
)
23 static struct passwd rv
;
24 rv
.pw_name
= getlogin();
25 if (strcmp(rv
.pw_name
, name
) != 0)
29 rv
.pw_dir
= getenv("HOME");
32 rv
.pw_shell
= getenv("SHELL");
34 rv
.pw_shell
= getenv("COMSPEC");
37 rv
.pw_gecos
= getlogin();
38 rv
.pw_passwd
= passwd
;